[[ChangeLog update.]]
[s-roff.git] / ChangeLog
blob59b64d66ddb00e421496480b13565f10b0ad2d2b
1 2004-11-15  Werner LEMBERG  <wl@gnu.org>
3         * NEWS, README, doc/webpage.ms: Updated.
5         * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
7 2004-10-30  Gaius Mulley  <gaius@glam.ac.uk>
9         * src/include/printer.h (printer): Remove virtual function
10         `round_width'.
11         Update all source files.
13         * src/devices/grohtml/post-html.cpp (html_printer): New member
14         function `round_width'.
16 2004-10-20  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
18         * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
19         column key letter suffix.
21 2004-10-14  Werner LEMBERG  <wl@gnu.org>
23         * Makefile.in (check): Depend on `site.exp' and `docheck'.
24         (docheck): Run dejagnu's `runtest' if it exists.
25         (site.exp): Create dejagnu configuration file.
27         * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
29 2004-10-13  Werner LEMBERG  <wl@gnu.org>
31         * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
32         src/devices/grohtml/post-html.cpp (make_val,
33         html_printer::handle_state_assertion): Fix compiler warnings.
35         * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
36         (diversion::diversion): Fix order of initializers.
38         * src/roff/troff/div.h: Don't include `mtsm.h'.
40         * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
41         (environment::environment): Fix order of initializers.
42         (environment::make_tag, environment::construct_format_state): Fix
43         compiler warnings.
45         * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
46         (input_iterator::input_iterator, macro::macro): Fix order of
47         initializers.
49         * src/roff/troff/mtsm.cpp: Include only necessary header files.
50         (state_set::add, state_set::val): Fix compiler warnings.
52         * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
53         (bool_value_state, int_value_state, units_value_state,
54         string_value_state): Remove comma after last element which causes
55         an error with g++ 3.3.3.
57         * src/roff/troff/node.cpp: Include `stringclass.h'.
58         (hline_node::hline_node, vline_node::vline_node,
59         space_char_hmotion_node, left_italic_corrected_node): Fix compiler
60         warnings.
61         (zero_width_node::zero_width_node): Fix order of initializers.
63         * src/roff/troff/node.h: Don't include `mtsm.h'.
64         (hmotion_node): Fix compiler warnings.
66         * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
68 2004-10-12  Gaius Mulley  <gaius@glam.ac.uk>
70         * doc/groff.css: New file.
72         * doc/webpage.ms: Use `groff.css'.
73         Other small fixes.
75         * tmac/an-old.tmac (need_eo_h): New number register.
76         (TH): Emit `.eo.tl' tag after title.
77         (SH): Set `need_eo_h'.
78         (an-trap): Handle `need_eo_h'.
79         (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
81         * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
82         (TL): Always start diversion.
83         Updated.
84         (@AI): Always call `par@reset'.
85         (@AB): Update code for -Thtml.
86         (cov*tl-au-print): Handle -Thtml.
87         (par@reset): Handle `need_eo_tl', `need_eo_h'.
88         (@IP): Simplified.
89         (@IT-html): Removed.
90         (@SH): Set `need_eo_h' for -Thtml.
91         (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
92         Set `need_eo_tl'.
93         (@NH): s/HTML-TAG/HTMl-TAG-NS/.
94         Set `need_eo_h' for -Thtml.
95         (@EQ, @EN): Don't handle -Thtml specially.
96         (par@load-init): Don't handle -Thtml specially.
98         * tmac/www.tmac (www:paraspace): New macro.
99         (HTML-NS, HTML-TAG-NS): Use new `tag' request.
100         (HTML</p>, HTML-TAG-NEXT): New macros.
101         (HnE): Emit tag `.eo.h' instead of break.
102         (HR): s/HTML-NS/HTML/.
103         (www-end-nowhere): End diversion only if `www-html' not set.
104         Emit `.eo.tl' tag.
105         (ULS, ULE): s|HTML|HTML</p>|.
106         (LI): Call `www:paraspace'.
107         (HEAD): New macro.
109 2004-10-11  Gaius Mulley  <gaius@glam.ac.uk>
111         * src/roff/troff/request.h (macro): Make `p' public.
112         New variable `is_a_diversion'.
113         New member function `is_diversion'.
116         * src/devices/grohtml/html.h (simple_output): New member function
117         `force_nl'.
119         * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
120         computation of `total'.
121         (tabs::check_init): New function.
122         (html_table::emit_table_header): Emit style data.
123         (html_table::insert_column): Improved.
125         * src/devices/grohtml/html-table.h: Updated.
127         * src/devices/grohtml/html-text.cpp (html_text::html_text):
128         Initialize `start_space' with TRUE.
129         (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
130         cases.
131         (html_text::flush_text): Set `start_space' flag.
132         (html_text::uses_indent, html_text::remove_para_space,
133         html_text::get_alignment): New functions.
134         (html_text::push_para): Updated.
135         (html_text::do_para): Check for empty argument.
136         Don't set `space_emitted'.
137         (html_text::do_space, html_text::emit_space): Updated.
139         * src/devices/grohtml/html-text.h (tag_definition): New variable
140         `really_issued'.
141         (html_text): New member function `uses_indent', `remove_para_space',
142         `get_alignment'.
144         * src/devices/grohtml/output.cpp (simple_output::force_nl): New
145         function.
146         (simple_output:nl): Always emit `\n'.
148         * src/devices/grohtml/post-html.cpp: Include `string.h'.
149         (BASE_POINT_SIZE): Removed.
150         (base_point_size, head_info): New global variables.
151         (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
152         `is_eo_h'.
153         (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
154         tags, respectively.
155         (page::add_and_encode): Pass additional parameter for tag flag.
156         (assert_pos): New structure.
157         (assert_state): New class.
158         (html_printer): Remove `indentation', `prev_indent'.
159         Add variables `troff_indent', `device_indent', `temp_indent'.
160         Add variables `seen_indent', `next_indent', `seen_pageoffset',
161         `next_pageoffset', `seen_linelenght', `next_linelength',
162         `seen_center', `next_center', `seen_space', `seen_break', `as'.
163         Add member functions `do_check_center', `do_space', `do_head',
164         `get_troff_indent', `restore_troff_indent', `handle_assertion',
165         `handle_state_assertion', `do_end_para', `set_char_and_width'.
166         Change argument to `do_fill' to `char *'.
167         Update constructor.
168         (html_printer::emit_raw): Call `shutdown_table'.
169         Use new functions.
170         (html_printer::do_center): Simplified.
171         (html_printer::do_title): Improved.
172         (html_printer::write_header): Emit one more newline.
173         Use new functions.
174         (html_printer::do_heading, html_printer::do_indent,
175         html_printer::do_eol, html_printer::do_tab_ts,
176         html_printer::do_tab, html_printer::do_tab0,
177         html_printer::calc_po_in, html_printer::next_horiz_pos,
178         html_printer::remove_courier_tabs,
179         html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
180         Updated.
181         (html_printer::do_linelength, html_printer::do_pageoffset,
182         html_printer::do_indentation, html_printer::do_tempindent,
183         html_printer::do_tab_te): Simplified.
184         (html_printer::do_pointsize): Check whether point size is really
185         associated a `.tl' tag.
186         (html_printer::do_break): Rewritten.
187         (html_printer::troff_tag): Improved.
188         (html_printer::flush_globs): Updated.
189         (html_printer::lookahead_for_tables): Handle `is_br'.
190         Use new functions.
191         (html_printer::set_char): Check `sbuf_style.f'.
192         (html_printer::write_navigation): Use string comparison.
193         (html_printer::~html_printer): Emit `head_info'.
194         (html_printer::special): Rewritten.
195         (get_str, make_val): New functions.
196         (main): New option `s' to set the base point size.
198         * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
200 2004-10-10  Gaius Mulley  <gaius@glam.ac.uk>
202         * src/roff/troff/node.cpp: New extern `debug_state'.
203         Include `stringclass.h' and `mtsm.h'.
204         Implement new classes and class members from `node.h'.
205         (real_output_file): Make `fp' public.
206         (troff_output_file): New variables `cur_div_level' and `tag_list'.
207         Update constructors.
208         (troff_output_file::really_print_line): Check whether we should push
209         the current troff state and use the state at the start of the
210         invocation of this diversion.
211         (troff_output_file::add_to_tag_list): New member function.
212         (node::add_char): Handle `glyph_comp_np'.
214         * src/roff/troff/node.h: Include `mtsm.h'.
215         (node): New variables `state', `push_state', `div_nest_level',
216         `is_special'.  Update constructors, all descendants.
217         Pass additional argument to `add_char' member function.
218         New virtual member functions `is_tag', `debug_node',
219         `debug_node_list'.  Update all descendants.
220         (tag_node): New class for handling tags.
221         (output_file): Add variable `state'.
223 2004-10-09  Gaius Mulley  <gaius@glam.ac.uk>
225         * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
226         providing a minimal troff state machine to emit meta tags for the
227         post-grohtml device driver.
229         * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
230         files.
232 2004-10-09  Werner LEMBERG  <wl@gnu.org>
234         * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
236 2004-10-06  Gaius Mulley  <gaius@glam.ac.uk>
238         * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
240         * src/roff/troff/div.h: Include `mtsm.h'.
241         (diversion): New variables `any_chars_added', `needs_push',
242         `saved_seen_break', `saved_seen_space', `saved_seen_eol',
243         `saved_suppress_next_eol', `modified_tag'.
244         New virtual member function `is_diversion'.  Update all descendants.
246         * src/roff/troff/div.cpp (diversion::diversion,
247         macro_diversion::macro_diversion): Updated.
248         (do_divert): Handle `seen_break', `seen_space', `seen_eol',
249         `suppress_next_eol'.
250         (top_level_diversion::space): Handle `curenv->seen_space'.
251         (page_offset): Update tag handling.
252         (space_request, blank_line, flush_output): Don't call `add_html_tag'.
254         * src/roff/troff/env.h (environment): Make `tabs' public.
255         Remove `ignore_next_eol', `emitted_node'.
256         Update `output_line', `output'.
257         New variables `seen_space', `seen_eol', `suppress_next_eol',
258         `seen_break'.
259         New member functions `construct_state', `make_tag',
260         `construct_format_state, `construct_new_line_state,
261         `dump_troff_state'.
262         Remove `add_html_tag', `make_html_tag'.
264         * src/roff/troff/env.cpp: New externs `suppress_push',
265         `get_diversion_state', `global_diverted_space'.
266         (pending_output_line): New variable `was_centered'.
267         Update constructor and all callers.
268         (pending_output_line::output): Call `curenv->construct_format_state'.
269         (environment::environment, environment::copy): Updated.
270         (environment::output): Handle `was_centered'.
271         (environment::add_char): Handle construct and diversion state.
272         (environment::add_node): Handle construct state.
273         (environment::newline): Handle `was_centered'.
274         (environment::output_line): Updated.
275         (environment::possibly_break_line): Updated.
276         Update tag handling.
277         (environment::add_html_tag): Replaced with...
278         (environment::make_tag): New function.
279         (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
280         (environment::dump_troff_state): New debugging function.
281         (environment::construct_state, environment::construct_format_state,
282         environment::construct_new_line_state): New functions.
283         (environment::do_break): Updated.
284         Handle `global_diverted_space'.
285         (environment::handle_tag): Update tag handling.
286         (point_size, fill, do_break_request): Don't call `add_html_tag'.
287         (no_fill): Don't call `add_html_tag'.
288         Set `suppress_next_eol'.
289         (center, right_justify, line_length, indent, temporary_indent,
290         set_tabs):
291         Update tag handling.
293         * src/roff/troff/input.cpp: Don't include `stringclass.h'.
294         (input_iterator): New variables `is_diversion', `diversion_state'.
295         Update constructors.
296         (input_stack): New member functions `get_div_level',
297         `get_diversion_state', `check_end_diversion'.
298         New variables `div_level', `diversion_state'.  Initialize them.
299         (suppress_push, global_diverted_space): New global variables.
300         (input_stack::finish_get, input_stack::finish_peek,
301         input_stack::remove_boundary, input_stack::end_file,
302         input_stack::clear, input_stack::pop_macro): Call
303         `check_end_diversion'.
304         (input_stack::push): Handle `div_level' and `diversion_state'.
305         (get_diversion_state): New function.
306         (diverted_space_node::reread): Handle `global_diverted_space'.
307         (macro::macro): Update constructors.
308         (macro::is_diversion): New function.
309         (macro::operator=): Set `is_a_diversion'.
310         (string_iterator): New member function `is_diversion'.
311         (string_iterator::string_iterator): Update constructors.
312         (string_iterator::fill): Set `div_nest_level'.
313         (macro_iterator): New member function `is_diversion'.
314         (do_if_request): Handle `suppress_push'.
315         (tag, taga): New functions.
316         (init_input_requests): Add `tag' and `taga' requests.
318 2004-10-05  Gaius Mulley  <gaius@glam.ac.uk>
320         * src/include/font.h (font): New member function
321         `get_image_generator'.
322         New variables `unscaled_charwidths' and `image_generator'.
324         * src/libs/libgroff/font.cpp (font::get_width): Always return the
325         character's unscaled width if `font::unscaled_charwidths' is set.
326         (font::get_image_generator): New function.
327         (font::load_desc): Check the `unscaled_charwidths' and
328         `image_generator' keywords.
330         * src/libs/libgroff/fontfile.cpp: Initialize
331         `font::unscaled_charwidths' and `font::image_generator'.
333         * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
335         * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
337         * man/groff_font.man: Document `unscaled_charwidths' and
338         `image_generator'.
340         * src/preproc/html/pre-html.cpp: Include `device.h'.
341         (image_gen): New global variable.
342         (imageList::createPage): Use `image_gen'.
343         (main): Use `image_generator' keyword.
345 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
347         * tmac/html.tmac: Handle \[sqrtex].
349 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
351         * src/include/printer.h (printer): New virtual method `round_width'.
353         * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
354         src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
355         src/devices/grotty/tty.cpp (printer::round_width): New function
356         member.
358         * src/devices/grohtml/post-html.cpp (printer::round_width): New
359         function member.
360         (html_printer::set_numbered_char): Use it.
362 2004-10-03  Gaius Mulley  <gaius@glam.ac.uk>
364         * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
366         * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
368         * configure: Regenerated.
370         * Makefile.in (GHOSTSCRIPT): New variable.
371         (MDEFINES): Add GHOSTSCRIPT.
373 2004-10-03  Werner LEMBERG  <wl@gnu.org>
375         * INSTALL.gen: Updated (taken from texinfo CVS).
377 2004-09-28  Werner LEMBERG  <wl@gnu.org>
379         * NEWS: Updated.
381 2004-09-28  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
383         * tmac/groff_www.man: Revised and updated.
385 2004-09-26  Werner LEMBERG  <wl@gnu.org>
387         Fix \$@ and \$* to handle any number of arguments.
389         * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
390         characters.
392         * src/roff/troff/input.cpp (input_iterator::internal_level):
393         Removed.
394         (input_stack): New member functions `increase_level' and
395         `decrease_level'.
396         (input_stack::get_level): Don't use `internal_level'.
397         (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
398         (end_quote_iterator): Completely removed.
399         (interpolate_arg): Build string for \$@ and \$* which is then
400         pushed onto the input stack.
402 2004-09-23  Keith Marshall  <keith.d.marshall@ntlworld.com>
404         * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
405         2004-09-19.
407 2004-09-23  Werner LEMBERG  <wl@gnu.org>
409         * tmac/an-old.tmac (ne): Using default scaling operator.
411 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
413         This change implements the following features:
415         PORPHANS
416           New numeric register: Defines number of lines following LP, PP,
417           QP, IP or XP, which must be kept together, before any automatic
418           page break.  If insufficient space remains on the current page, a
419           page break is forced before the new paragraph begins.
421         HORPHANS
422           New numeric register: Sets number of lines of following paragraph
423           which must be kept with a heading, defined by NH or SH, before any
424           automatic page break.  If insufficient space remains on the
425           current page, a page break is forced before the heading.
427         GROWPS
428           (Thanks to Joerg van den Hoff, for this idea).
430           New numeric register: Sets the first level of heading (set with
431           NH), which will keep the same point size as body text; e.g. if
432           GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
433           point size specified by \n[PS], but .NH 2 and .NH 1 will have
434           progressively larger point sizes, determined by \n[PSINCR] (see
435           below).
437         PSINCR
438           New numeric register: Sets the point size increment for each level
439           of heading, (set with NH), below the threshold level set by
440           GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
441           then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
442           and all other levels will remain at 10pt, (because \n[PS] = 10).
444         SH
445           Existing macro now accepts a numeric argument, to make heading
446           size match that of NH with same argument value, when the
447           GROWPS/PSINCR feature is enabled.
449         SN-DOT
450           New string, set by NH macro, replaces the existing (undocumented)
451           use of SN, to represent the assigned section number.
453         SN-NO-DOT
454           New string, set by NH macro, represents the assigned section
455           number, but omits the terminal period (periods at intermediate
456           levels are retained).
458         SN
459           String set by NH macro, originally undocumented, now implemented
460           as an alias for SN-DOT (which reproduces original behaviour).
462         * tmac/s.tmac (PORPHANS): New register.
463         (par*start): Use it.
464         (HORPHANS, GROWPS, PSINCR): New registers.
465         (SH-NO-TAG, @SH): Use them.
466         (@NH): Improved.
468 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
470         * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
471         of `Ds' and `De' macros.
473 2004-09-10  Werner LEMBERG  <wl@gnu.org>
475         In tbl, handle \a as an interpreted leader character if in
476         compatibility mode.
478         * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
479         LEADER_CHAR): New macros.
480         (compatible_flag): New declaration.
482         * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
483         LEADER_3, and LEADER_4 to `state'.
484         (table_input::get): Handle `\a'.
486         * src/preproc/tbl/table.cpp (PREFIX): Removed.
487         (LEADER_REG): New macro.
488         (table::init_output): Define LEADER_REG string register if in
489         compatibility mode.
491         * src/preproc/tbl/tbl.man: Document it.
493 2004-08-18  Werner LEMBERG  <wl@gnu.org>
495         * tmac/doc.tmac (An): Fix error message.
497 2004-08-06  Werner LEMBERG  <wl@gnu.org>
499         * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
500         file can't be opened.  UNIX tbl has the same behaviour.
502 2004-08-05  Y T  <doarhop@hotmail.com>
504         * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
505         (DBRead): If in compatibility mode, take into account the text
506         when computing figure boundaries.
508 2004-08-05  Werner LEMBERG  <wl@gnu.org>
510         * src/preproc/soelim/soelim.man: Improved.  Based on suggestions
511         from Tadziu Hoffmann.
513 2004-08-03  Werner LEMBERG  <wl@gnu.org>
515         * doc/meref.me: Document `_M' register.
517 2004-08-03  Martin Husemann  <martin@duskware.de>
519         Make hpftodit work correctly on big-endian systems.
521         * src/utils/hpftodit/hpftodit.cpp (File): New method
522         `get_uint32(char *)'.
523         (entry): New member `orig_value'.
524         (read_tags): Use new method.
525         (output_font_name, read_and_output_pcltypeface, dump_ascii):
526         Updated.
528 2004-08-01  Werner LEMBERG  <wl@gnu.org>
530         * tmac/s.tmac: Undo change 2003-06-29.  The proper macro definitions
531         are already in X11's `macros.t' file.
533 2004-08-01  Jeff Conrad  <jeff_conrad@msn.com>
535         * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
536         Fix casting bug.
537         (read_and_output_pcltypeface): Handle strings with length <= 4.
539 2004-07-27  Egil Kvaleberg  <egil@kvaleberg.no>
541         * tmac/s.tmac (pg@top): Don't save `PO' register.
542         (pg*end-col, pg*end-page): Directly use `PO' register.
544 2004-07-27  Werner LEMBERG  <wl@gnu.org>
546         * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
548         * src/preproc/refer/refer.cpp (output_references): Check for
549         empty hash table.
550         * src/preproc/refer/refer.man: Improve documentation of
551         `bibliography' command.
553 2004-07-26  Werner LEMBERG  <wl@gnu.org>
555         Add requests `fcolor' and `gcolor'.
557         * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
558         New functions.
559         (init_env_requests): Add `fcolor' and `gcolor'.
561         * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
563         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
564         Document new requests.
566 2004-07-24  Werner LEMBERG  <wl@gnu.org>
568         Add support for fractional point sizes in ms macros.  A value for
569         PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
570         by 1000.  For example, `.nr PS 10250' sets the font size to 10.25p.
572         * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
573         PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
575         * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
577 2004-07-19  Werner LEMBERG  <wl@gnu.org>
579         * src/preproc/pic/lex.cpp (for_input): Add member `from'.
580         Update constructor.
581         (do_for, for_input::get, for_input::peek): Handle negative `by'.
582         * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
584 2004-07-08  Thomas Klausner  <wiz@netbsd.org>
586         * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
587         * tmac/groff_mdoc.man: Updated.
589 2004-07-05  Werner LEMBERG  <wl@gnu.org>
591         * doc/groff.texinfo: Further improve documentation of `hcode'.
593 2004-07-04  Sang Dae Yu  <sdyu@bh.knu.ac.kr>
595         Improve appearance of arrows in pic.
597         * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
598         arrow head thin.
599         Use two line segments for drawing non-filled arrow head.
600         (line_object::print, spline_object::print): Shorten line length to
601         avoid arrow sticking.
602         (arc_object::print): Take arrow direction into account.
604 2004-07-03  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
606         * tmac/groff_www.man: Update documentation of .MPIMG.
608 2004-07-03  Werner LEMBERG  <wl@gnu.org>
610         * tmac/an-old.tmac (RI): Always start with font `R'.
611         (RI, IR): Properly end with font `R'.
613 2004-07-02  Paul Eggert  <eggert@cs.ucla.edu>
615         * man/ditroff.man, man/groff_font.man, man/groff_out.man,
616         src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
617         src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
618         Don't pass more than six arguments to .R, .I, .B, etc., for
619         compatibility with traditional troff macros.
621 2004-07-02  Werner LEMBERG  <wl@gnu.org>
623         * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
624         s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
625         Update all users.
626         (PUSH_COMP_MODE): New internal character constant.
627         Update all users.
629         * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
630         PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
631         (token::next, macro::append): Handle PUSH_COMP_MODE.
632         (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
633         POP_GROFFCOMP after each of the decoded arguments to make them
634         independent from the compatibility mode status.
635         (comp_mode): Add `COMP_ENABLE'.
636         (do_define_string, do_define_macro): Handle COMP_ENABLE.
637         (define_string, append_string, define_macro, define_indirect_macro,
638         append_macro, append_indirect_macro): Handle `compatible_flag'.
639         (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
641         * man/groff_diff.man, doc/groff.texinfo: Updated.
643 2004-07-01  Werner LEMBERG  <wl@gnu.org>
645         * doc/groff.texinfo: Improve documentation of `hcode'.
646         Use @documentencoding and convert document to latin-1; to do that
647         make latin characters active and assign proper macros (within a
648         @tex...@end tex environment).
649         * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
650         * doc/Makefile.sub (groff): Ditto.
652 2004-06-29  Werner LEMBERG  <wl@gnu.org>
654         Implement two new conditional operators `F <name>' and `S <name>'
655         which check whether <name> is a valid font or style, respectively.
657         * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
658         (text_file::text_file): Updated.
659         (text_file::error): Don't emit message if `silent' is set.
660         (font::load_font): Add optional third argument (which is directly
661         passed to `load'.
662         (font::load): Add optional second argument to check the header of
663         a font only, without emitting warning or error messages.
664         * src/include/font.h (font): Updated.
666         * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
667         conditionals.
668         * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
669         fourth argument to check a font without mounting.
670         (check_font, check_style): New functions.
671         * src/roff/troff/node.h: Updated.
673         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
674         Updated.
676 2004-06-27  Werner LEMBERG  <wl@gnu.org>
678         Implement new string-valued register `.sty' to return the current
679         style name.
681         * env.cpp (environment::get_style_name_string): New function.
682         (init_env_requests): Add `.sty' register.
683         * env.h (environment): Updated.
684         * node.cpp (font_info): Make `get_style_name' a friend.
685         (get_style_name): New function.
686         * node.h: Updated.
688         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
689         Updated.
691 2004-06-15  Werner LEMBERG  <wl@gnu.org>
693         * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
694         `nospaces' option.
696 2004-06-10  Colin Percival  <colin.percival@wadham.ox.ac.uk>
698         * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
699         and \n[mo] to avoid dependency on current date.
701 2004-06-08  Werner LEMBERG  <wl@gnu.org>
703         * Makefile.sub (install_data): New target.
705 2004-06-04  Werner LEMBERG  <wl@gnu.org>
707         * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
709 2004-06-03  Werner LEMBERG  <wl@gnu.org>
711         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
712         order of libraries.
713         (install_data): Add $(srcdir).
715         * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
716         libraries.
718 2004-06-02  Werner LEMBERG  <wl@gnu.org>
720         * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
721         Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
722         Add test for Xmu library.
723         (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
724         GROFF_APPRESDIR_DEFAULT): New macros.
726         * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
727         and GROFF_APPRESDIR_DEFAULT.
729         * configure: Regenerated.
731         * Makefile.in (appresdir): New variable.
732         (MDEFINES): Add appresdir.
734         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
735         -Xt.
736         (install_data, uninstall_sub): New targets to handle GXditview.ad.
738         * src/utils/indxbib/Makefiles.ub (install_data): Depend on
739         `$(srcdir)/eign', not `eign'.
741         * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
743         * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
744         src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
745         Protect (g)xditview with `\%' to avoid hyphenation.
746         Other minor formatting.
748 2004-06-01  Werner LEMBERG  <wl@gnu.org>
750         Integrate gxditview into groff's standard directory hierarchy.
752         * src/xditview/*: Moved to ...
753         * src/devices/xditview/*: Here.
754         Moved DviChar.h and XFontName.h to src/include.
755         Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
756         Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
757         Moved xtotroff.c to new directory src/utils/xtotroff.
758         Provide proper Makefile.sub files (reusing the stuff from
759         Imakefile.in).
760         DESC renamed to DESC.in.
761         Removed GXDitview-ad.h, INSTALL, Imakefile.in.
762         Converted everything from K&R to ANSI C.
763         Decorated with const where appropriate.
764         Cast string constants with `String' and `char *' where appropriate.
765         Made it compile with C++ (used as a C compiler).
766         Removed other minor compiler warnings.
768         * src/devices/xditview/device.c: Include config.h, string.h, and
769         defs.h.
770         Don't declare `exit', `strtok', `strchr', and `getenv'.
771         (FONTPATH): Remove.
773         * src/devices/xditview/font.c: Don't declare `XParseFontName' and
774         `XFormatFontName'.
776         * src/devices/xditview/xditview.c: Include config.h.
777         Include stdio.h earlier.
778         Protect declaration of `popen' and `pclose' with
779         NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
780         Replace `caddr_t' with `XtPointer'.
781         (MakePromptFunc): New typedef.
782         (DoPrint): Use RETSIGTYPE.
783         (promptfunction): Change type to MakePromptFunc.
784         (MakePrompt): Use MakePromptFunc for third argument.
785         (xmalloc): Removed.
787         * src/devices/xditview/ad2c: Add casts to `String'.
789         * src/include/XFontName.h (XFontNameString): Don't use array
790         notation.
791         Add prototypes for `XParseFontName', `XFormatFontName',
792         `XCompareFontName', and `XCopyFontName'.
794         * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
795         `XFontName.h'.
797         * src/utils/xtotroff/xtotroff.c: Include getopt.h.
798         Don't declare `XParseFontName' and `XFormatFontName'.
799         (xmalloc): Removed.
800         (main): Remove `optind' and `optarg'.
802         * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
803         (to select programs which need X).
804         Make XDEVIDIRS depend on `FORCE'.
805         (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
806         X support).
807         (MDEFINES): Updated.
808         (LIBDIRS): Use XLIBDIRS.
809         (CPROGDIRS): Use XPROGDIRS.
810         (DEVDIRS): Remove font directories for gxditview.
811         (ALLDIRS, DISTDIRS): Add XDEVDIRS.
812         (EXTRADIRS): Remove src/xditview.
814         * Makefile.sub (DISCLEANFILES): Updated.
816         * Makefile.comm (LIBXUTIL): New variable.
817         (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
818         (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
820         * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
822         * aclocal.m4 (GROFF_X11): New function.
824         * configure.ac: Call GROFF_X11.
825         Don't create src/xditview/Imakefile.
826         Don't emit notice how to build gxditview.
828         * configure: Regenerated.
830         * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
832 2004-05-28  Akihiro Sagawa  <sagawa@sohgoh.net>
834         * Makefile.in (CPPFLAGS): Define.
835         (MDEFINES): Add CPPFLAGS.
837 2004-05-27  Werner LEMBERG  <wl@gnu.org>
839         * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
841 2004-05-26  Niklas Edmundsson  <nikke@acc.umu.se>
843         Fix problems with `friend name injections'.
845         * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
846         make_script_box), src/roff/troff/div.h (end_diversions),
847         src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
848         change 2004-04-08.
850 2004-05-25  Bernd Warken  <bwarken@mayn.de>
852         * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
854 2004-05-25  Werner LEMBERG  <wl@gnu.org>
856         * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
857         src/libs/libgroff/color.cpp: Include lib.h.
859 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
861         * PROBLEMS: Update documentation for problems with Sun C++ 5.0
862         through Forte 6u1, and for how to get GNU make on Solaris.
864 2004-05-24  Werner LEMBERG  <wl@gnu.org>
866         * PROBLEMS: Document problems with gcc 3.4.0 on Sun.  Reported
867         by Paul Eggert.
869 2004-05-15  Keith Marshall  <keith.d.marshall@ntlworld.com>
871         * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
872         rule.
874 2005-05-14  Werner LEMBERG  <wl@gnu.org>
876         * REVISION: Set to 2.
878         * aclocal.m4 (GROFF_STDINT_H): Removed.
879         (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
881         * configure.ac: Updated.
882         * configure, src/include/config.hin: Regenerated.
884         * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
885         inttypes.h conditionally.
887 2003-05-13  Werner LEMBERG  <wl@gnu.org>
889 Version 1.19.1 released
890 =======================
892 2004-05-10  Stephen Gildea  <http://www.gildea.com/stephen>
894         * src/preproc/refer/label.y (same_author_last_name,
895         same_author_name): Handle empty sort keys.
897 2004-05-10  Werner LEMBERG  <wl@gnu.org>
899         * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
900         tmac/TODO: Updated.
902         * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
903         doc-str-Lb-librt): Reset font.
904         (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
905         Provide `doc-str-Lb' to reset font.
906         * tmac/groff_mdoc.man: Updated.
908 2004-05-08  Jan Schaumann  <jschauma@netmeister.org>
910         * src/preproc/html/pre-html.cpp (make_message): Make it work for
911         snprintf versions which don't conform to ANSI C 99 (this is,
912         counting the string's trailing null byte in the return value).
914 2004-05-07  Keith Marshall  <keith.d.marshall@ntlworld.com>
916         * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
917         that all implementations of sprintf handle null pointers correctly.
919 2004-05-04  Werner LEMBERG  <wl@gnu.org>
921         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
922         Document `.U' register.
924         * src/roff/troff/env.cpp (environment::mark_last_line)
925         [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
927 2004-05-04  Larry Kollar  <kollar@alltel.net>
929         New read-only register `.U'; it returns 1 in safer mode and 0
930         otherwise.
932         * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
933         register.
935 2004-05-03  Werner LEMBERG  <wl@gnu.org>
937         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
939 2004-04-17  Werner LEMBERG  <wl@gnu.org>
941         * src/include/font.h (font): Use `int' for ch_index.
942         * src/libs/libgroff/font.cpp (font::alloc_ch_index,
943         font::compact): Updated.
945         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
946         warnings.
948         * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
949         (hyphen_word): Fix compiler warnings.
950         * src/roff/troff/input.cpp (get_char_for_escape_name): Return
951         `char'.
952         Update all callers.
953         (get_delim_number, get_line_arg): Change second argument type to
954         `unsigned char'.
955         (macro_header::copy, token::next, do_define_string,
956         do_define_character, substring_request, asciify_macro,
957         unformat_macro, read_size, non_interpreted_node::interpret,
958         while_request, main: Fix compiler warnings.
959         (read_color_draw_node): Initialize `col'.
961         * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
962         `start_col' and `end_col' of type `int'.
963         (vertical_rule): Make `col' of type `int'.
965         * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
966         for EOF.
968         * src/preproc/refer/label.y (uppercase_array, lowercase_array):
969         New arrays.
970         (format_serial): Use them to remove dependency on ASCII.
972         * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
973         compiler warning.
974         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
975         Ditto.
977         * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
978         compiler warnings.
979         (glyph): Change type of `hpos' to `int'.
981         * src/devices/lbp/lbp.cpp (strsep): Removed.  Unused.
982         * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
984         * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
986         * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
988 2004-04-16  Werner LEMBERG  <wl@gnu.org>
990         * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
991         src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
992         src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
993         `double' instead of `float' everywhere.
994         * src/preproc/grn/main.cpp: Use `double' instead of `float'
995         everywhere.
996         (main): Add return value.
997         * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
998         everywhere.
999         Update all user functions.
1001         * src/include/search.h, src/include/ptable.h, src/include/printer.h,
1002         src/preproc/eqn/box.h, src/preproc/pic/object.h,
1003         src/preproc/refer/refer.h, src/preproc/tbl/table.h,
1004         src/preproc/tbl/table.cpp, src/roff/troff/env.h,
1005         src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
1006         src/roff/troff/input.cpp, src/roff/troff/request.h,
1007         src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
1008         declarations.
1010         * src/utils/indxbib/signal.c: Include stdlib.h.
1012 2004-04-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
1014         * tmac/s.tmac (@init, RP): Allow initialization of the PO register
1015         before the first page.
1017 2004-04-14  Thomas Klausner  <wiz@netbsd.org>
1019         * tmac/doc-common (doc-volume-as-*): Use lowercase names.
1020         (doc-operating-system-*): Updated.
1021         * tmac/doc-syms (doc-str-St-*): Various small fixes.
1022         (doc-str-Lb-*): Add more library names.
1024 2004-04-10  Art Haas  <ahaas@airmail.net>
1026         * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
1027         use anonymous type.
1029 2004-04-09  Art Haas  <ahaas@airmail.net>
1031         * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
1033 2004-04-09  Keith Marshall  <keith.d.marshall@ntlworld.com>
1035         * arch/misc/shdeps.sh: Generate better comment for sed script.
1037 2004-04-08  Art Haas  <ahaas@airmail.net>
1039         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1040         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
1041         src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
1042         src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
1043         (polyfill), src/preproc/grn/main.cpp (polyfill),
1044         src/preproc/refer/command.cpp (command_table),
1045         src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
1046         gcc 3.5 doesn't like).
1048 2004-04-08  Werner LEMBERG  <wl@gnu.org>
1050         Removing many compiler warnings.  groff should now compile with
1051         a C++ compiler used for C files also.  [Simple variable renamings
1052         to avoid shadowing aren't logged in detail.]
1054         * src/devices/grodvi/dvi.cpp: Some local variable renamings.
1055         (draw_dvi_printer::draw) ['c']: Enclose in block.
1057         * src/devices/grohtml/post-html.cpp: Some local variable renamings.
1058         (page::add_line): Fix typos.
1059         * src/devices/grohtml/html-text.cpp: Some local variable renamings.
1061         * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
1062         Some local variable renamings.
1063         * src/devices/grolbp/lbp.h: Some local variable renamings.
1065         * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
1066         variable renamings.
1068         * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
1069         Remove redundant local variable declaration.
1070         * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
1071         Don't use `caddr_t' but `void *'.
1072         Enclose functions with `extern "C"' for C++.
1074         * src/libs/libdriver/input.cpp (remember_filename,
1075         remember_source_filename): Use cast for string constant.
1077         * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
1078         src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
1079         src/libs/libgroff/geometry.cpp: Some local variable renamings.
1080         * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
1081         style.
1082         Enclose functions with `extern "C"' for C++.
1083         * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
1084         (needs_quoting): Return `int'.
1085         (quote_arg): Add proper casts to malloc and realloc.
1086         * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
1087         various MS Windows environments.
1088         (spawnvp_wrapper): Add proper cast to malloc.
1090         * src/preproc/eqn/box.h: Remove redundant declarations of
1091         `make_script_box', `make_mark_box' and `make_lineup_box'.
1092         * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
1093         * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
1094         variable renamings.
1096         * src/preproc/grn/hpoint.cpp: Some local variable renamings.
1097         * src/preproc/grn/hgraph.cpp: Some local variable renamings.
1098         (dx, dy): Renamed functions to...
1099         (deltax, deltay): This.
1100         * src/preproc/grn/main.cpp: Some local variable renamings.
1101         (deffont): Add `const'.
1102         (initpic, conv): Use cast for string constant.
1104         * src/preproc/html/pre-html.cpp: Some local variable renamings.
1105         (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
1106         (char_buffer::run_output_filter): Second argument is unused.
1107         * src/preproc/html/pushback.cpp: Some local variable renamings.
1109         * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
1110         * src/preproc/pic/object.cpp: Some local variable renamings.
1112         * src/preproc/refer/label.y (lookup_label): Remove redundant
1113         declaration of local variable.
1115         * src/preproc/soelim.cpp: Remove redundant declaration of
1116         `interpret_lf_args'.
1118         * src/preproc/tbl/main.cpp: Some local variable renamings.
1120         * src/roff/groff/groff.cpp (main): Use cast for string constant.
1121         * src/roff/groff/pipeline.c: Enclose declarations of `error',
1122         `c_fatal', and `i_to_a' with `extern "C"' for C++.
1123         Don't use C++-style comments.
1125         * src/roff/troff/env.h: Remove redundant declaration of `title'.
1126         * src/roff/troff/node.h, src/roff/troff/env.cpp,
1127         src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
1128         renamings.
1129         * src/roff/troff/div.h: Remove redundant declaration of
1130         `end_diversions'.
1131         * src/roff/troff/troff.h: Remove redundant declaration of
1132         `cleanup_and_exit'
1133         * src/roff/troff/input.cpp: Remove redundant declaration of
1134         `handle_first_page_transition' and `process_input_stack'.
1136         * src/utils/hpftodit.cpp: Some local variable renamings.
1138         * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
1139         for C++.
1140         Don't define RETSIGTYPE.
1141         * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
1143         * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
1144         (error): Use `const' in argument.
1145         (main): Remove redundant declaration of `optind'.
1146         Move declaration of `Version_string' to top-level.
1148         * PROBLEMS: Document difficulties compiling signal.c if a C++
1149         compiler is used for C.
1151 2004-04-07  Werner LEMBERG  <wl@gnu.org>
1153         * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
1155 2004-04-06  Keith Marshall  <keith.d.marshall@ntlworld.com>
1157         Make scripts like nroff.sh and neqn.sh portable across various
1158         (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
1159         non-POSIX path separators.  The idea is to extend those scripts to
1160         decide at run-time (of the script) which path separator to use.
1162         * arch/misc/Makefile.sub: New file.
1163         * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
1164         This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
1165         a proper definition of the variable `GROFF_RUNTIME'.
1167         * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
1168         (MDEFINES): Add SH_DEPS_SED_SCRIPT.
1169         (PROGDEPDIRS): New variable.
1170         `FORCE' it.
1171         (PROGDIRS): Add PROGDEPDIRS.
1173         * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
1174         Don't substitute @SEP@ and @BINDIR@.
1175         * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
1176         (PATH): Use GROFF_RUNTIME.
1178         * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
1179         Don't substitute @SEP@ and @BINDIR@.
1180         * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
1181         (PATH): Use GROFF_RUNTIME.
1183 2004-04-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1185         * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
1186         Cygwin which doesn't handle stderr correctly.
1188 2004-03-08  Werner LEMBERG  <wl@gnu.org>
1190         * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
1191         against empty argument.  Problem reported by <cgd@broadcom.com>.
1193 2004-03-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1195         * Makefile.in (SEP): Replaced with...
1196         (RT_SEP, SH_SEP): Separators for the target platform's native path
1197         separator and the build environment, respectively.
1198         (fontpath, tmacpath): Use RT_SEP.
1199         (MDEFINES): Updated.
1201         * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1202         * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1203         * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
1204         * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
1206 2004-03-05  Werner LEMBERG  <wl@gnu.org>
1208         * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200.  This helps to
1209         reduce alignment problems with newer printers which use built-in
1210         TrueType fonts (instead of the older Intellifonts).  The ideal
1211         solution is to provide a second set of groff metric files, but this
1212         is extremely time-consuming to produce, given that HP's metric
1213         files are very rudimentary.
1215 2004-03-01  Werner LEMBERG  <wl@gnu.org>
1217         * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
1218         s/operand/argument/ in error message.
1220 2004-03-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
1222         * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
1223         is in use.
1225 2004-03-01  Antti Kantee  <pooka@netbsd.org>
1227         * tmac/s.tmac (XE): Fix error message.
1229 2004-02-27  Jeff Conrad  <jeff_conrad@msn.com>
1231         * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
1232         New macros.
1234         * src/roff/groff/pipeline.c: Declare strcasecmp.
1235         (run_pipeline) [_WIN32]: Use function name variants which don't
1236         start with `_'.
1237         Fix stream handling.
1239 2004-02-27  Keith Marshall  <keith.d.marshall@ntlworld.com>
1241         * src/include/nonposix.h: Fix declaration of `system_shell_name'.
1242         Declare `spawnvp_wrapper' and macro definitions of spawnvp only
1243         for platforms which use the native Win32 runtime libraries.
1244         (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
1246         * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
1247         QUOTE_ARG_REALLOC_ERROR): Fix string.
1249         * src/preproc/html/pre-html.cpp: Remove declaration of
1250         `spawnvp_wrapper'.
1251         Don't use __MINGW32__.
1252         s/DEBUG_FILE/DEBUG_FILE_DIR/.
1253         (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
1254         (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
1255         (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
1256         calls to `set_redirection' and `WAIT'.
1257         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
1258         Fix calls to `set_redirection' and `save_and_redirect'.
1259         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
1260         to `set_redirection' and `save_and_redirect'.
1261         (usage): Fix message.
1262         (makeTempFiles, main): Use `DEBUG_FILE'.
1264 2004-02-21  Werner LEMBERG  <wl@gnu.org>
1266         * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
1268 2004-02-21  Keith Marshall  <keith.d.marshall@ntlworld.com>
1270         * src/libs/libgroff/quotearg.c: New file, providing proper argument
1271         quoting for MSVC's spawn* and exec* functions.
1272         * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
1273         spawnvp with proper quoting for MSVC.
1275         * src/libs/libgroff/assert.cpp (program_name),
1276         src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
1277         * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
1279         * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
1281         * src/include/error.h (program_name): Declare as `extern "C"'.
1282         * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
1284 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
1286         * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
1287         spawnvp_wrapper.
1288         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
1290 2004-02-20  Jeff Conrad  <jeff_conrad@msn.com>
1292         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
1293         variable.
1294         (sbasename) [__MSDOS__ || ...]: New function.
1295         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
1296         generic algorithm.
1297         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
1298         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
1299         of XXX.
1300         Use STDOUT_FILENO instead of hardcoded file handle.
1301         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
1303 2004-02-19  Werner LEMBERG  <wl@gnu.org>
1305         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
1306         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
1308 2004-02-18  Werner LEMBERG  <wl@gnu.org>
1310         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
1311         new font and mapping files.
1313 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
1314             Keith Marshall  <keith.d.marshall@ntlworld.com>
1316         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
1317         an input pipe.  This is needed for the MSVC compiler to make troff's
1318         `-o' option work.
1320         * src/roff/troff/div.cpp: Include nonposix.h.
1321         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
1323 2004-02-17  Werner LEMBERG  <wl@gnu.org>
1325         * font/devlj4/generate/special.awk: New script.
1326         * font/devlj4/generate/Makefile (S): Use special.awk.
1327         * font/devlj4/*: Regenerated, including the following new files:
1328         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
1329         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
1330         * NEWS: Document new lj4 fonts and revised hpftodit.
1332 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
1334         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
1336 2004-01-25  Werner LEMBERG  <wl@gnu.org>
1338         * src/libs/libgroff/progname.cpp: Replaced with...
1339         * src/libs/libgroff/progname.c: New file.
1340         * src/libs/libgroff/Makefile.sub: Updated accordingly.
1342 2004-01-17  Werner LEMBERG  <wl@gnu.org>
1344         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
1346 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
1348         * font/devlj4/generate/wingdings.map,
1349         font/devlj4/generate/symbol.map: Include unnamed glyphs.
1350         Use groff glyph names where possible.
1351         * src/devices/grolj4/lj4_font.man: Minor updates.
1353 2004-01-13  Werner LEMBERG  <wl@gnu.org>
1355         * tmac/www.tmac (DC): Handle TTY devices.
1357         * doc/webpage.ms: Document viewCVS from ffii.org.
1358         * NEWS, README: Updated.
1360         * src/roff/groff/groff.man: Mention lj4_font man page.
1362         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
1363         variables.
1364         (FONTS): Add SYMBOL and WINGDINGS.
1365         (SYMBOL, WINGDINGS): New targets.
1367 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
1369         * src/devices/grolj4/lj4_font.man: New man page.
1370         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
1371         * src/devices/grolj4.man: Mention lj4_font man page.
1373         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
1374         * src/utils/hpftodit/hpftodit.man: Document it.
1375         (CW): New macro.
1376         Remove details about fonts (which are now in lj4_font.man).
1378         * font/devlj4/generate/symbol.map,
1379         font/devlj4/generate/wingdings.map: New files.
1381 2004-01-12  Werner LEMBERG  <wl@gnu.org>
1383         * README: Mention ffii's viewcvs access.
1385 2004-01-09  Werner LEMBERG  <wl@gnu.org>
1387         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
1389 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
1391         Revert most of the change from 2004-01-03 to better control used
1392         symbol sets.
1394         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
1395         (text_symbol_sets, special_symbol_sets): New arrays.
1396         (symbol_set_table): New global variable.
1397         (read_symbol_sets): Use search order given in the text_symbol_sets
1398         and special_symbol_sets arrays.  If command line flag -a is not
1399         given, search both arrays.
1400         (output_charset): Require x_height_tag only for command line flag -i.
1402 2004-01-06  Werner LEMBERG  <wl@gnu.org>
1404         Implement string-valued registers \n[.m] and \n[.M] to return the
1405         name of the current drawing and background color, respectively.
1407         * src/roff/troff/symbol.h: Moved to...
1408         * src/include/symbol.h: Here.
1409         Small fixes to make it work outside of the `troff' directory.
1410         * src/roff/troff/symbol.cpp: Moved to...
1411         * src/libs/libgroff/symbol.cpp: Here.
1412         Small fixes to make it work outside of the `troff' directory.
1414         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
1415         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
1416         Updated.
1418         * src/include/color.h: Include symbol.h.
1419         (color): Add new field `nm'.
1420         * src/libs/libgroff/color.cpp (color::color): Updated.
1422         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
1423         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
1424         src/roff/troff/reg.cpp: Don't include symbol.h.
1426         * src/roff/troff/env.cpp: Don't include symbol.h.
1427         (environment::get_glyph_color_string,
1428         environment_get_fill_color_string): New member functions.
1429         (init_env_requests): Handle `.m' and `.M' registers.
1430         * src/roff/troff/input.cpp: Don't include symbol.h.
1431         (default_symbol): Moved to symbol.cpp/symbol.h.
1432         (do_glyph_color, do_fill_color, define_color): Pass symbol name
1433         to color constructor.
1434         * src/roff/troff/env.h: Updated.
1436         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1437         Document new registers.
1439 2004-01-05  Werner LEMBERG  <wl@gnu.org>
1441         * src/roff/troff/node.cpp (space_node::get_breakpoints,
1442         space_node::nbreaks): Protect against zero `next' field.
1444 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
1446         In hpftodit, use the symbol sets offered in the TFM.
1448         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
1449         (symbol_set, text_symbol_sets, special_symbol_sets,
1450         symbol_set_table): Removed.
1451         (get_printcode): Removed.
1452         (read_symbol_sets): Initialize `symbol_set' field with
1453         `NO_SYMBOL_SET'.
1454         Simplify code to just use the `kind' value.
1455         (output_charset): Improve output formatting.
1456         (dump_symbols): Simplified.
1458 2004-01-02  Werner LEMBERG  <wl@gnu.org>
1460         * font/devlj4/generate/text.map: Add more MSL numbers.
1462 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
1464         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
1465         (text_symbol_sets): Add more symbol sets.
1466         (debug_flag): New static variable (moved from `main').
1467         (get_printcode, show_symset): New functions.
1468         (main): Remove `debug_flag'.
1469         (output_charset): Use `show_symset'.
1470         (dump_symbols):  Use `show_symset'.
1471         Print symsets for all glyphs.
1472         (read_map): Actually call `unicode_to_ucode_make' but this time
1473         correctly.
1475 2004-01-01  Werner LEMBERG  <wl@gnu.org>
1477         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
1478         Fix placement of comments.
1480 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
1482         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
1483         option `-d' is given.
1484         (output_charset): Improve warning messages to give more information.
1485         (dump_symbols): Make information more precise.
1486         (usage): Updated.
1487         (read_map): Don't call unicode_to_ucode_name; the glyph names must
1488         appear as-is and shouldn't be decomposed.
1490 2003-12-31  Werner LEMBERG  <wl@gnu.org>
1492         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
1493         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
1494         (FONTS): Add TrueType font families Arial and Times New Roman.
1495         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
1496         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
1497         `fl'.
1499 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
1501         * test-groff.in (SEP): Quote value.
1502         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
1503         `tem' to `char*' to avoid deallocation of a pointer to a constant
1504         object which some compilers don't like.
1506 2003-12-31  Werner LEMBERG  <wl@gnu.org>
1508         * font/devlj4/generate (text.map, special.map): Rewritten to work
1509         with the new hpftodit version.
1511 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
1513         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
1514         set and 8bit character code for all glyphs also.
1516 2003-12-30  Werner LEMBERG  <wl@gnu.org>
1518         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
1520 2003-12-29  Werner LEMBERG  <wl@gnu.org>
1522         More fixes for MSVC compiler.
1524         * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
1525         $(SEP).
1527         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
1528         STDERR_FILENO) [_MSC_VER]: Define conditionally.
1529         (getpid) [_MSC_VER]: Remove.
1530         Include direct.h and process.h conditionally.
1532         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
1533         parentheses for a_delete.
1535         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
1537         * test-groff: Replaced with...
1538         * test-groff.in: This new template to handle path separator
1539         properly.
1541         * configure.ac: Check for direct.h and process.h.
1542         Generate test-groff script.
1543         * configure, src/include/config.hin: Regenerated.
1545 2003-12-28  Werner LEMBERG  <wl@gnu.org>
1547         Add integral extension glyph.
1548         Add new option `-x' to afmtodit to suppress use of built-in AGL.
1550         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
1552         * font/devps/generate/textmap: Provide entry for `integralex' to
1553         override (old) PUA value of the AGL.
1554         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
1555         * font/devps/*: Regenerated.
1557         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
1558         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
1560 2003-12-27  Werner LEMBERG  <wl@gnu.org>
1562         Add forgotten `coproduct' symbol (already available for DVI).
1564         * font/devhtml/R.proto, font/devps/generate/textmap,
1565         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
1566         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
1567         U+2210 (\[coproduct]).
1569 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
1571         hpftodit has been extended to handle TrueType metric files and
1572         more glyphs.  See hpftodit.man for more details.
1574         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h, 
1575         ctype.h, and unicode.h.
1576         s/msl/charcode/ everywhere since we now handle Unicode values also.
1577         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
1578         Use it where appropriate.
1579         (MULTIPLIER): Replaced with...
1580         (multiplier): New global static variable.
1581         (scale): Updated.
1582         (tag_type): Add more TFM tags.
1583         (tag_name): New array.
1584         (ENUM_TYPE, FLOAT_TYPE): Removed.
1585         (BYTE_TYPE): New value assigned.
1586         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
1587         (text_symbol_sets, special_symbol_sets): Extended to cover more
1588         sets.
1589         (check_type): Add return value.
1590         (check_units): Add parameters to get ppi and upem values.
1591         Handle TrueType TFM data.
1592         (output_font_name): New function.
1593         (output_charset): Add parameter to handle TFM type.
1594         Handle TrueType TFMs also.
1595         (em_fract): New macro.
1596         (dump_tags): Be much more verbose and handle more tags.
1597         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
1598         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
1599         functions.
1600         (read_map): Add parameter to handle TFM type.
1601         Handle both MSL and Unicode mappings.
1602         (main): Add two new command line options `-a' and `-q'.
1603         Updated to make use of new functions.
1604         (usage): Updated.
1606         * src/utils/hpftodit/hpuni.cpp: New file.
1608         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
1609         Updated.
1611 2003-12-25  Werner LEMBERG  <wl@gnu.org>
1613         * src/include/nonposix.h (read) [_MSC_VER]: Define.
1615 2003-12-24  Werner LEMBERG  <wl@gnu.org>
1617         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
1618         by Michail Vidiassov <master@iaas.msu.ru>.
1620 2003-12-20  Werner LEMBERG  <wl@gnu.org>
1622         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1623         and u0049_0307.
1624         Add missing latin-2 glyphs.
1625         * font/devutf8/R.proto: Add missing latin-2 glyphs.
1627         * tmac/troffrc: Load `composite.tmac' earlier.
1629         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
1630         u00{53,73}_0327, and u0049_0307.
1631         * tmac/X.tmac: Add u00{47,67}_0306.
1632         * tmac/tty-char.tmac: Use composite glyph names for readability.
1634         * NEWS: Updated.
1636         * src/include/unicode.h: Remove `extern' keywords.
1638 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
1640         * tmac/latin5.tmac: New file.
1642 2003-12-19  Werner LEMBERG  <wl@gnu.org>
1644         Add some glyphs needed for Turkish.
1646         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1647         and u0049_0307.
1649         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent. 
1650         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
1651         u00{53,73}_0327, and u0049_0307.
1653 2003-12-18  Werner LEMBERG  <wl@gnu.org>
1655         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
1656         from 2001-10-04.
1657         Remove trailing zeros.
1659 2003-12-17  Werner LEMBERG  <wl@gnu.org>
1661         Make \? transparent to end-of-sentence recognition.
1663         * src/roff/troff/input.cc (non_interpreted_node): Add
1664         `ends_sentence' member function.
1666 2003-12-16  Werner LEMBERG  <wl@gnu.org>
1668         * doc/groff.texinfo: Document `dt' request correctly.
1669         Other minor typographical improvements.
1671 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
1673         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
1675 2003-12-10  Richard Stallman  <rms@gnu.org>
1677         * LICENSE: Better wording.
1679 2003-12-09  Werner LEMBERG  <wl@gnu.org>
1681         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
1682         * configure, NEWS: Updated.
1684 2003-12-08  Werner LEMBERG  <wl@gnu.org>
1686         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
1688 2003-12-07  Bernd Warken  <bwarken@mayn.de>
1690         * LICENSE: Updated.
1692 2003-12-07  Werner LEMBERG  <wl@gnu.org>
1694         * INSTALL: Improved.
1696 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1698         Use path separator character of target platform for compiled-in
1699         default paths.
1701         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
1702         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
1703         * configure: Regenerated.
1704         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
1706 2003-12-05  Werner LEMBERG  <wl@gnu.org>
1708         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
1709         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
1711 2003-12-04  Bernd Warken  <bwarken@mayn.de>
1713         * LICENSE: New file.
1715 2003-12-03  Werner LEMBERG  <wl@gnu.org>
1717         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
1718         ligatures present in AFM files since groff currently only
1719         understands some standard ligatures and nothing else.
1721 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
1723         * src/roff/groff/groff.cpp (main): Don't run the spooler if
1724         option -v is given.
1726         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
1727         messages.
1728         Close stdout copy.
1729         Don't use Unix wait flags.
1731 2003-12-02  Werner LEMBERG  <wl@gnu.org>
1733         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
1734         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
1735         src/roff/troff/uniuni.cpp: Moved to...
1736         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
1737         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
1738         src/libs/libgroff/uniuni.cpp: Here.
1740         * src/include/Makefile.sub.old (HDRS),
1741         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
1742         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
1744 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
1746         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
1747         `DEBUG_FILE'.
1748         Updated all users.
1750 2003-12-01  Werner LEMBERG  <wl@gnu.org>
1752         * groff.texinfo: Document special behaviour of `.vs 0'.
1753         Improve documentation of `cflags' request.
1754         * NEWS: Updated.
1756 2003-11-29  Werner LEMBERG  <wl@gnu.org>
1758         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
1759         * font/devlj4/CORONET: Regenerated.
1761 2003-11-24  Werner LEMBERG  <wl@gnu.org>
1763         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
1764         if processing hyphenation patterns in traditional mode.
1765         Improve error messages.
1767 2003-11-20  Werner LEMBERG  <wl@gnu.org>
1769         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
1770         troff_output_file::put_char): Fix type of local variable `c'.
1772 2003-11-19  Werner LEMBERG  <wl@gnu.org>
1774         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
1775         declarations.
1776         (i_to_a): Removed.  libgroff already provides this function.
1777         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
1779 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
1781         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
1782         HAVE_DECL_SYS_LIST.
1784 2003-11-17  Werner LEMBERG  <wl@gnu.org>
1786         * COPYING: Use correct version.
1788 2003-11-11  Werner LEMBERG  <wl@gnu.org>
1790         LynxOS 4.0.0 doesn't declare vfprintf.
1792         * configure.ac: Check for vfprintf.
1793         * configure: Regenerated.
1794         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
1795         * src/include/config.hin: Regenerated.
1797 2003-11-10  Werner LEMBERG  <wl@gnu.org>
1799         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
1801         * configure.ac: Check for vsnprintf.
1802         * configure: Regenerated.
1803         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
1804         `HAVE_VSNPRINTF'.
1805         * src/include/config.hin: Regenerated.
1807 2003-11-09  Werner LEMBERG  <wl@gnu.org>
1809         * aclocal.m4: Updated syntax to autoconf 2.59.
1810         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
1811         Don't check for gsos2.
1812         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
1813         working abs_top_srcdir and abs_top_builddir.
1815         * configure.ac: Updated syntax to autoconf 2.59.
1816         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
1817         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
1818         * configure: Regenerated.
1820         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
1821         s/@groff_top_builddir@/@abs_top_builddir@/.
1823         * src/roff/groff/pipeline.c (xstrsignal):
1824         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
1826 2003-11-07  Werner LEMBERG  <wl@gnu.org>
1828         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
1829         make start angle smaller than end angle to circumvent a bug in tpic
1830         handling of some versions of dvipdfm (and dvipdfmx).
1832 2003-10-30  Werner LEMBERG  <wl@gnu.org>
1834         * src/devices/grops/grops.man: Improve section on creating EPS.
1836 2003-10-29  Werner LEMBERG  <wl@gnu.org>
1838         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
1839         -P-pletter).
1841 2003-10-28  Werner LEMBERG  <wl@gnu.org>
1843         * doc/groff.texinfo: Fix documentation of `.if'.
1845 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
1847         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
1848         the form `uniXXXX' also.
1850 2003-10-27  Werner LEMBERG  <wl@gnu.org>
1852         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
1853         contrib/pic2graph/pic2graph.sh: Implement secure management of
1854         temporary files.
1855         Pass `-P-pletter' to groff to avoid data outside of the converted
1856         area -- some versions of `convert' (for example 5.3.8) don't check
1857         the bounding box of the image but always use a fixed image size
1858         (letter paper format).
1859         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
1860         contrib/pic2graph/pic2graph.man: Updated.
1862         * src/roff/groff/groff.man: Document $TMP and $TEMP.
1864 2003-10-26  Werner LEMBERG  <wl@gnu.org>
1866         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
1867         troff_output::simple_ellipse, troff_output::simple_arc,
1868         troff_output::simple_line, troff_output::simple_spline,
1869         troff_output::simple_polygon): Insert a space before arguments.
1870         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
1871         latter doesn't produce a node, so the following `.sp -1' would do
1872         the wrong thing.
1873         Don't emit `.sp -1' after \M.  This also doesn't produce a token
1874         (and we don't have to care about compatibility mode).
1875         (troff_output::set_color, troff_output::reset_color): Don't emit
1876         `.sp -1' after \M and \m.
1878         * src/roff/troff/input.cpp (old_have_input): New global variable.
1879         (input_stack::get): Handle `old_have_input'.
1880         (process_input_stack) <token::TOKEN_NEWLINE>: Call
1881         `trapping_blank_line' depending on `old_have_input', not
1882         `have_input'.
1884 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
1886         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
1887         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
1888         default directory names for temporary files.
1889         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
1891         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
1892         [__MSDOS__] (run_pipeline): Honour environment variables.
1893         Don't use `tmpnam' but `tempnam' to work around messy
1894         implementation.
1896         * README.MinGW: New file.
1898 2003-10-16  Werner LEMBERG  <wl@gnu.org>
1900         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
1901         `(*t)->next' without testing validity of `*t'.
1902         (usage): Make it more readable.
1904 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
1906         Make html device run under both MS-DOS and Win32.
1908         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
1909         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
1910         spawn or fork+exec has to be used, and whether parent must sleep
1911         until the child process terminates.  Used in
1912         `char_buffer::run_output_filter'.
1913         (copyofstdoutfd): Removed.
1914         (char_buffer): Replace `write_file_html' and `write_file_troff'
1915         member functions with `emit_troff_output' and `run_output_filter'.
1916         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
1917         macros.
1918         (replaceFd): Replaced with...
1919         (set_redirection): New auxiliary function.
1920         (waitForChild): Replaced with...
1921         (save_and_redirect): New auxiliary function for.
1923         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
1924         functions.
1926 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
1928         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
1929         (GROFF_LIBC): New function.
1930         * configure.ac: Call GROFF_LIBC.
1931         Check for `kill'.
1932         * configure: Regenerated.
1934         * src/include/lib.h: Handle __MINGW32__.
1935         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
1936         Add macro for `pipe'.
1937         Define P_tmpdir.
1939         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
1940         correctly.
1942         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
1943         Implement.
1945 2003-10-13  Werner LEMBERG  <wl@gnu.org>
1947         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
1948         <chuq@chuq.com>.
1950         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
1951         directory.
1953 2003-10-12  Werner LEMBERG  <wl@gnu.org>
1955         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
1956         src/roff/troff/input.cc (usage): Updated.
1958         * NEWS, doc/groff.texinfo: Updated.
1960 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
1962         * src/libs/libgroff/searchpath.cpp
1963         (search_path::open_file_cautious): New function which also handles
1964         `-' as stdin and stdout depending on the access mode.
1965         * src/include/searchpath.h (search_path): Updated.
1967         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
1968         * src/devices/grops/ps.h: Include `searchpath.h'.
1969         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1970         Open resource file with `include_search_path.open_file_cautious'.
1971         * src/devices/grops/grops.man: Document new `-I' switch.
1973         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
1974         (main), src/devices/grolj4/lj4.cpp (main),
1975         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
1977         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
1978         Replaced with...
1979         (include_search_path): New global variable.
1980         (include_path_append): Removed.
1981         (main): Use `include_search_path.command_line_dir' to handle `-I'.
1982         (do_file): Simplify, using new
1983         `include_search_path.open_file_cautious'.
1985         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
1986         parameter.
1987         (main): Pass arguments to `-I' to both troff and devices.
1988         Improve handling of `-V'.
1989         * src/roff/groff/groff.man: Document changes to -I and -V.
1991         * src/roff/troff/input.cpp (include_search_path): New global
1992         variable.
1993         (next_file, source, ps_bbox_request, transparent_file,
1994         process_input_file): Use new
1995         `include_search_path.open_file_cautious'.
1996         (main) Handle `-I' switch.
1997         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
1998         Use new `include_search_path.open_file_cautious'.
1999         * src/roff/troff/node.h: New extern symbol `include_search_path'.
2000         * src/roff/troff/troff.man: Document new `-I' switch.
2002 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
2004         Support multiple calls of .Lb in LIBRARY section.
2006         * tmac/doc-common (doc-in-library-section): New register.
2007         (doc-section-library): New string.
2008         (Sh): Set `doc-in-library-section'.
2009         (Rd): Updated.
2010         * tmac/doc-syms (Lb): Insert breaks before and after arguments
2011         if in LIBRARY section.
2012         * tmac/doc.tmac (doc-save-global-vars): Updated.
2013         * NEWS, tmac/groff_mdoc.man: Updated.
2015 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
2017         * tmac/doc-common (doc-default-operating-system): New variable.
2018         (Os): Use it.
2020 2003-09-08  Werner LEMBERG  <wl@gnu.org>
2022         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
2024 2003-08-31  Werner LEMBERG  <wl@gnu.org>
2026         * contrib/mom/Makefile.sub: Fix last change to make it really work.
2027         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
2028         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
2029         $(DEVFILES) are not empty.
2030         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
2032 2003-08-26  Chuck Silvers  <chuq@chuq.com>
2034         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
2035         with parallel runs of `make'.
2037 2003-08-23  Stephen Gildea  <http://www.gildea.com/stephen>
2039         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
2040         insert SORT_SEP.  With certain combinations of sort specifications,
2041         refer sorted entries in the wrong order.  In particular, entries
2042         with a missing field should be be sorted before all entries that
2043         have that field, before refer looks to the next field.
2045 2003-08-23  Werner LEMBERG  <wl@gnu.org>
2047         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
2048         g++ linker is used.  Reported by Mark J. Reed
2049         <mark.reed@turner.com>.
2051 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
2053         Add key character `x' to tbl which makes tbl call a user-defined
2054         macro on a table cell.
2056         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
2057         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
2058         `set_modifier' after printing the compatibility request.
2059         (set_modifier): Print call to `m->macro' if not empty.
2060         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
2061         `macro'.
2062         (process_format): Implement cases `x' and `X'.
2063         * src/preproc/tbl/tbl.man, NEWS: Updated.
2065 2003-08-15  Werner LEMBERG  <wl@gnu.org>
2067         * doc/groff.texinfo: Minor fixes.
2069 2003-08-09  Werner LEMBERG  <wl@gnu.org>
2071         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
2073 2003-08-07  Werner LEMBERG  <wl@gnu.org>
2075         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
2076         argument list to nothing if there is no file to match.  Use `ls' as
2077         a protection, similar to autoconf.
2079         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
2080         empty argument lists.
2082         * doc/groff.texinfo: Improve documentation how vertical spacing
2083         and line breaks interact.
2084         Other minor fixes.
2086         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
2088 2003-08-03  Werner LEMBERG  <wl@gnu.org>
2090         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
2091         EPS (using eps2eps or similar programs to compute the bounding box).
2093 2003-07-24  Werner LEMBERG  <wl@gnu.org>
2095         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
2096         * doc/texinfo.tex: Updated from texinfo 4.6.
2097         * README.CVS: From now on we need texinfo 4.6.
2099 2003-07-23  Werner LEMBERG  <wl@gnu.org>
2101         Add requests `dei1' and `ami1' for completeness.
2103         * src/roff/troff/input.cc (calling_mode): Remove
2104         CALLING_DISABLE_COMP.
2105         (comp_mode): New enumeration.
2106         (do_define_string, define_string, define_nocomp_string,
2107         append_string, append_nocomp_string): Updated.
2108         (do_define_macro): Add third parameter.
2109         (define_macro, define_nocomp_macro, define_indirect_macro,
2110         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
2111         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
2112         functions.
2113         (ignore): Updated.
2114         (init_input_requests): Add `dei1' and `ami1'.
2116         * tmac/trace.tmac: Handle de1 and am1.
2117         (de): Improve tracing message.
2118         (am): Add missing `do'.
2119         (return): Use de1.
2121         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2122         Document new requests.
2124 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
2126         Add option -G to .MPIMG to insert a gap between text and the image.
2128         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
2129         www-finish-left-ll): Updated.
2130         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
2131         (MPIMG): Make option -L and -R optional.
2132         Implement option -G.
2134 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
2136         * src/devices/grohtml/post-html.cpp
2137         (html_printer::do_file_components): Don't use `stdout' as lvalue
2138         since it can be a macro.
2140 2003-07-22  Werner LEMBERG  <wl@gnu.org>
2142         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
2143         the corresponding test in aclocal.m4.
2145 2003-07-21  Werner LEMBERG  <wl@gnu.org>
2147         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
2148         names but RGB values directly.  Otherwise pnmtopng depends on
2149         an external file `rgb.txt' which maps colour names to values.
2151 2003-07-20  Werner LEMBERG  <wl@gnu.org>
2153         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
2154         * configure, src/include/config.hin: Regenerated.
2156         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
2158 2003-07-19  Werner LEMBERG  <wl@gnu.org>
2160         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
2162 2003-07-18  Werner LEMBERG  <wl@gnu.org>
2164         * *.man: Switch to non-compatibility mode temporarily if GNU
2165         syntax extensions are used in the particular man page.
2167         * PROBLEMS: Add solutions for SGR problems.
2169 2003-07-17  Werner LEMBERG  <wl@gnu.org>
2171         Don't ignore grotty's command line options if \X'tty: sgr ...' is
2172         used to change the drawing scheme.
2174         * src/devives/grotty/tty.cpp (bold_flag_option,
2175         underline_flag_option, italic_flag_option, reverse_flag_option,
2176         bold_underline_mode_option): New global variables.
2177         (update_options): New function.
2178         (tty_printer::special): Call update_options.
2179         (main): Don't set xxx_flag but xxx_flag_option, then call
2180         update_options.
2182 2003-07-14  Werner LEMBERG  <wl@gnu.org>
2184         Make grotty emit proper Unicode box drawing characters for -Tutf8.
2186         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
2187         values.
2188         (hline_char, vline_char): New global variables.
2189         (tty_printer::tty_printer): Initialize them.
2190         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
2191         horizontal and vertical lines.
2192         (crossings): New global array.
2193         (tty_printer::end_page): Use it to determine the proper crossing
2194         character for -Tutf8.
2196 2003-07-12  Werner LEMBERG  <wl@gnu.org>
2198         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
2199         (HTMLDOCFILES): Revert to `pic.html'.
2200         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
2202 2003-07-11  Werner LEMBERG  <wl@gnu.org>
2204         * doc/pic.ms: Improve documentation of absolute coordinates.
2205         Document absolute positioning of pictures.
2207         * NEWS: Add new pic capability.
2209 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
2211         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
2212         Rewritten.
2214 2003-07-07  Werner LEMBERG  <wl@gnu.org>
2216         Implement support for dashed and dotted ellipses in pic.  Based on
2217         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
2219         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
2220         common_output::dashed_ellipse, common_output::dotted_ellipse): New
2221         functions.  Ellipse arcs are approximated with circle arcs.
2222         * src/preproc/pic/common.h (common_output): Updated.
2223         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
2224         functions.
2225         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
2227         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
2229 2003-07-06  Werner LEMBERG  <wl@gnu.org>
2231         Make grotty work on platforms which have unsigned char as the
2232         default for char.  Based on a patch by Thomas Klausner
2233         <wiz@netbsd.org>.
2235         * src/devices/grotty/tty.cpp (schar): New typedef.
2236         Updated calls to declare_ptable and implement_ptable.
2237         (glyph): Use schar for back_color_idx and fore_color_idx.
2238         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
2239         (tty_printer::tty_color, tty_printer::tty_printer,
2240         tty_printer::color_to_idx, tty_printer::put_color): Updated.
2242 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
2244         * src/roff/nroff/nroff.sh: Add option -d for completeness.
2245         * src/roff/nroff/nroff.man: Updated.
2247 2003-07-05  Werner LEMBERG  <wl@gnu.org>
2249         * NEWS, tmac/groff_www.man: Updated.
2250         * doc/Makefile.sub: Updated.
2252 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
2254         Implement support for multiple HTML output files.
2256         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
2257         -j command line option.
2259         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
2260         global variables.
2261         (file): New fields `new_output_file', `require_links',
2262         `output_file_name'.
2263         (file::file): Updated.
2264         (files::set_file_name, files::set_links_required,
2265         files::are_links_required, files::is_new_output_file,
2266         files::file_name, files::next_file_name): New functions.
2267         (header_desc): New fields `no_of_level_one_headings',
2268         `header_filename'.
2269         (header_desc::header_desc): Updated.
2270         (header_desc::write_headings): Handle multiple files.
2271         (html_printer::write_header): Save file name in which header occurs.
2272         (html_printer::determine_header_level): Possibly split files on
2273         level one headings.
2274         (html_printer::do_links, html_printer::troff_tag): Updated.
2275         (html_printer::insert_split_file, html_printer::do_job_name,
2276         html_printer::emit_link, html_printer::write_navigation,
2277         html_printer::do_file_components): New functions.
2278         (html_printer::~html_printer): Handle multiple files.
2279         (main): Handle command line option `-j'.
2281         * src/devices/grohtml/grohtml.man: Updated.
2283         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
2284         which splits file.
2286         * tmac/www.tmac (JOBNAME): New macro.
2287         * tmac/s.tmac (SH-NO-TAG): New macro.
2288         (@SH): Call SH-NO-TAG.
2289         (@NH): Updated.
2291 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
2293         * tmac/groff_mdoc.man: Improve documentation of punctuation
2294         characters.
2296 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
2298         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
2300 2003-07-03  Werner LEMBERG  <wl@gnu.org>
2302         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
2304 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
2306         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
2307         after `/*' and `*/'.
2308         Fix spacing.
2309         (Fn, Fo): Reduce indentation in synopsis.
2311         * tmac/doc-common (doc-check-depth): New macro.
2312         (doc-end-macro, Sh, Ss): Use it.
2313         (Cd): Fix behaviour in synopsis.
2314         (In): Make it parsed and callable.
2315         If not in the synopsis, represent the C header file enclosed in
2316         angle brackets.
2317         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
2318         Use minus, not hyphen.
2320         * tmc/groff_mdoc.man: Updated.
2322 2003-07-01  Werner LEMBERG  <wl@gnu.org>
2324         Integrated grap2graph, contributed by Eric S. Raymond.
2326         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
2327         New files.
2328         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
2329         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
2331 2003-07-01  Colin Watson  <cjwatson@debian.org>
2333         * src/xditview/*.c: Add prototypes, fix return types, add includes.
2334         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
2336 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
2338         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
2340 2003-06-31  Werner LEMBERG  <wl@gnu.org>
2342         * doc/Makefile.sub (CLEANADD): Remove all files created by
2343         running `make groff.{pdf,dvi}'.
2345         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
2346         src/xditview also.
2348 2003-06-30  Werner LEMBERG  <wl@gnu.org>
2350         * Makefile.in (SHELL): Define as @SHELL@.
2351         (mkinstalldirs): Use $(SHELL).
2352         (MDEFINES): Add $(SHELL).
2353         * Makefile.comm (SHELL): Removed.
2355 2003-06-29  Werner LEMBERG  <wl@gnu.org>
2357         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
2358         The X11 documentation files use them.
2359         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
2361 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
2363         * tmac/e.tmac (@C): Handle .ad also.
2365 2003-06-12  Werner LEMBERG  <wl@gnu.org>
2367         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
2369         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
2370         Assign `n' even here.  It is possible to construct a node
2371         immediately following an escape character:
2373           .di xx
2374           \?\\\?a
2375           .br
2376           .di
2377           .xx
2379 2003-06-10  Werner LEMBERG  <wl@gnu.org>
2381         * README.WIN32: Removed.
2382         * MANIFEST: Updated.
2384 2003-06-07  Werner LEMBERG  <wl@gnu.org>
2386         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
2388 2003-06-05  Werner LEMBERG  <wl@gnu.org>
2390         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
2391         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
2393 2003-06-03  Werner LEMBERG  <wl@gnu.org>
2395         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
2396         is done by the calling function.
2398 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
2400         * tmac/X.tmac: Fix definition of `em'.
2402 2003-05-22  Werner LEMBERG  <wl@gnu.org>
2404         * src/roff/troff/input.cc (return_macro_request): Fix detection of
2405         argument.
2407 2003-05-18  Werner LEMBERG  <wl@gnu.org>
2409         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
2410         to make items work which consist only of a tag.
2412 2003-05-17  Werner LEMBERG  <wl@gnu.org>
2414         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
2415         aren't stretched in a tag (this can fail with unformatted boxes).
2416         Instead, insert a break and go back one line.
2418 2003-05-16  Werner LEMBERG  <wl@gnu.org>
2420         * src/roff/troff/input.cc (return_macro_request): If called with
2421         argument pop macro twice.  We need this to trace `return'.
2423         * tmac/trace.tmac: Handle `return'.
2424         Fix typos.
2426         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2427         Document.
2429 2003-05-15  Larry Kollar  <kollar@alltel.net>
2431         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
2432         registers `FPS', `FVS', and `FPD'.
2434 2003-05-15  Werner LEMBERG  <wl@gnu.org>
2436         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
2437         correctly.
2439 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
2441         * tmac/groff_mdoc.man: Slight improvements.
2443 2003-05-03  Werner LEMBERG  <wl@gnu.org>
2445         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
2446         `doc-header-space' after header line if register `cR' is set.
2448 2003-05-02  Werner LEMBERG  <wl@gnu.org>
2450         * TODO: Updated.
2452 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
2454         * tmac/doc-common (Nd): Use \[em].
2456 2003-05-01  Werner LEMBERG  <wl@gnu.org>
2458         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
2459         doc-footer-space): Initialize to 0.5i.
2460         (doc-setup-page-layout): Don't set doc-header-space and
2461         doc-footer-space.
2463 2003-04-30  Werner LEMBERG  <wl@gnu.org>
2465         * REVISION: Set to 1.
2467         * doc/pic.ms: Document possible problems with `figname'.
2469 2003-04-29  Werner LEMBERG  <wl@gnu.org>
2471 Version 1.19 released
2472 =====================
2474         * VERSION: Set to 1.19.
2475         * REVISION: Set to 0.
2476         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
2478         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2479         Define charset as `US-ASCII' in html output.
2481         * tmac/www.tmac (ULE): Add missing scaling indicator.
2483         * win32-diffs: Removed.
2485 2003-04-28  Werner LEMBERG  <wl@gnu.org>
2487         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
2488         `.da' and `.boxa'.
2489         Document how to insert discardable whitespace with `.ss'.
2491 2003-04-27  Werner LEMBERG  <wl@gnu.org>
2493         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
2494         work with plain TeX also.
2496         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
2498 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
2500         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2501         Use a loose DTD.
2503 2003-04-24  Werner LEMBERG  <wl@gnu.org>
2505         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
2506         vbox with positive height and zero depth if in TeX mode.
2508         * NEWS: Document glyph name changes for grodvi and grolj4.
2510 2003-04-23  Werner LEMBERG  <wl@gnu.org>
2512         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
2513         * doc/pic.ms: Fixed.
2515 2003-04-21  Werner LEMBERG  <wl@gnu.org>
2517         HP-UX 10.20 has `snprintf' but it isn't declared.
2519         * configure.ac: Add declaration test for snprintf.
2520         * configure: Regenerated.
2521         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
2522         * src/include/config.hin: Regenerated.
2524 2003-04-19  Werner LEMBERG  <wl@gnu.org>
2526         Add keyword `figname' to pic, specifying the name of the picture
2527         box in TeX mode.  Based on a patch from William J Poser
2528         <wjposer@unagi.cis.upenn.edu>.
2530         * src/preproc/pic/pic.y: New token `FIGNAME'.
2531         (macro_name): New rule of type <str>.
2532         (placeless_element): Handle `FIGNAME'.
2533         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
2534         * src/preproc/pic/main.cpp (graphname): New global variable.
2535         (do_picture): Initialize `graphname'.
2536         * src/preproc/pic/pic.h: Updated.
2537         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
2538         `graphname'.
2539         Simplify TeX code.
2540         (tex_output::text): Beautify output.
2541         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
2542         `shaded' and `outlined' unconditionally.
2543         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
2544         Minor improvements.
2546         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
2547         greater is necessary.
2549 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
2551         Add option -r to soelim to avoid emission of `.lf' lines.
2552         Add option -t to produces TeX comment lines instead of `.lf' lines.
2554         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
2555         and `tex_flag'.
2556         (usage): Updated.
2557         (main): Handle `-r' and `-t'.
2558         (set_location): Handle `raw_flag' and `tex_flag'.
2559         * src/preproc/soelim/soelim.man, NEWS: Updated.
2561 2003-04-17  Werner LEMBERG  <wl@gnu.org>
2563         * tmac/hyphenex.sh: Replaced with...
2564         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
2565         nightmares.
2567         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
2568         if --quiet is used for the configure script.
2569         * configure: Regenerated.
2571 2003-04-16  Werner LEMBERG  <wl@gnu.org>
2573         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
2574         Add `const' to second argument.
2575         (html_printer::add_table_end): Add `const' to argument.
2576         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
2577         `const' to arguments.
2578         * src/devices/grohtml/html-text.h: Updated.
2580         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
2581         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
2582         argument.
2584         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
2585         cast for integer constant.
2587         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
2588         (writeNbytes): Add `const' to first argument.
2589         (writeString): Add `const' to argument.
2590         (char_buffer::can_see): Add `const' to third argument.
2591         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
2592         `const' to argument.
2593         * src/preproc/html/pushback.h: Updated.
2595         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
2596         (include_path_append): Add `const' to argument.
2597         (do_file): Updated.
2599         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
2600         for `value'.
2601         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
2602         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
2603         for `value'.
2604         (unicode_decompose_init::unicode_decompose_init): Updated.
2605         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
2606         for `value'.
2607         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
2608         * src/roff/troff/input.cc (process_startup_file): Add `const' to
2609         argument.
2611         * tmac/hyphenex.sh: Make script more portable by using a here
2612         document.
2614 2003-04-15  Werner LEMBERG  <wl@gnu.org>
2616         Renamed all `*.cc' files to `*.cpp'.
2617         Updated all configuration files, makefiles, and documentation.
2619 2003-04-14  Werner LEMBERG  <wl@gnu.org>
2621         * tmac/hyphenex.sh: Slight improvements.
2623 2003-04-13  Werner LEMBERG  <wl@gnu.org>
2625         * font/devascii/R.proto, font/devcp1037/R.proto,
2626         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
2627         character slots with unnamed glyphs.
2629         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
2630         (an-first): New global variable.
2631         (an-header): Emit vertical space between multiple man pages.
2633 2003-04-11  Werner LEMBERG  <wl@gnu.org>
2635         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
2636         values.
2638 2003-04-10  Werner LEMBERG  <wl@gnu.org>
2640         * PROBLEMS: Revised.
2642 2003-04-10  Bernd Warken  <bwarken@mayn.de>
2644         * doc/webpage.ms: Improved.
2646 2003-04-09  Werner LEMBERG  <wl@gnu.org>
2648         Add register \n[.height] which returns the value of \H.
2649         Add register \n[.slant] which returns the value of \S.
2651         * src/roff/troff/env.cc (init_env_requests): Implement.
2652         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2653         Document.
2655 2003-04-08  Werner LEMBERG  <wl@gnu.org>
2657         * tmac/html.tmac: Move some of the data into html-end.tmac.
2658         Remove most of the character translations for eqn since html fonts
2659         now cover those characters.
2660         Load www.tmac.
2661         * tmac/html-end.tmac: New file.
2662         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
2663         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
2664         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
2666 2003-04-07  Werner LEMBERG  <wl@gnu.org>
2668         * man/groff_out.man: Document negative values of `N' if -Thtml is
2669         used.
2671 2003-04-06  Werner LEMBERG  <wl@gnu.org>
2673         * Makefile.comm (depend.temp): Check location of YTABC.
2675 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2677         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
2678         binary path.
2679         (groff_bin_path): Rename to GROFF_BIN_PATH.
2680         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2681         * doc/Makefile.in (TROFFBIN): New variable for troff
2682         binary path.
2683         (GROFFBIN): New variable for groff binary path.
2684         (groff_bin_path): Rename to GROFF_BIN_PATH.
2685         (TROFF): Use TROFFBIN.
2686         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2687         * doc/Makefile.sub (GROFFBIN): New variable for groff
2688         binary path.
2689         (groff_bin_path): Rename to GROFF_BIN_PATH.
2690         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2692         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
2693         with INSTALL_SCRIPT.
2694         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
2695         * Makefile.dev (all): Depend on DEVSCRIPTS.
2696         (install_dev): Likewise.
2697         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
2698         scripts.
2699         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
2700         (DEVGENSCRIPTS): New variable to hold generated scripts.
2702 2003-04-05  Werner LEMBERG  <wl@gnu.org>
2704         * src/libs/libdriver/input.cc (IntArray::operator[],
2705         IntArray::get_data): Remove meaningless `const' in return value.
2707         * README.CVS: New file.
2709 2003-04-04  Werner LEMBERG  <wl@gnu.org>
2711         Check for stdint.h in C++, not in C.
2713         * aclocal.m4 (GROFF_STDINT_H): New function,
2714         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
2715         AC_CHECK_HEADERS.
2716         * configure, src/include/config.hin: Regenerated.
2717         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
2720         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
2721         with a negative value, representing the width of the unbreakable
2722         space (only for -Thtml).  grohtml then converts this back to
2723         &nbsp; and uses the value of N as its width.
2725         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2726         unbreakable_space_node::tprint): Emit `N-<width>'.
2727         * src/include/printer.h (printer::set_numbered_char): Make it
2728         virtual.
2729         Make members `font_table' and `nfonts' protected instead of private.
2730         * src/devices/grohtml/post-html.cc
2731         (html_printer::set_numbered_char): New member function.
2734         * src/libs/libgroff/maxfilename.cc:
2735         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
2737         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
2738         emit word marker.
2740 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
2742         * man/roff.man: Small fixes.
2744 2003-04-03  Werner LEMBERG  <wl@gnu.org>
2746         Make groff independent from locale's numeric settings.
2748         * configure.ac: Check for `setlocale'.
2749         * configure, src/include/config.hin: Regenerated.
2751         * src/include/lib.h: Handle HAVE_SETLOCALE.
2753         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
2754         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
2755         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
2758         * doc/groff.texinfo: Change dir category to `Typesetting'.
2759         (Man font macros): Mention that there is no space between arguments
2760         of .BI and friends.
2762         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
2763         (*printer::change_color, *printer::change_fill_color): Add missing
2764         `const'.
2766 2003-04-02  Werner LEMBERG  <wl@gnu.org>
2768         * src/devices/grohtml/html-table.cc (html_table::emit_col,
2769         html_table::is_gap): Compute table widths after converting border
2770         positions to avoid rounding errors.
2772 2003-04-01  Werner LEMBERG  <wl@gnu.org>
2774         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
2775         `space_emitted' properly.
2777 2003-03-31  Werner LEMBERG  <wl@gnu.org>
2779         * src/devices/grohtml/html-table.cc: Fix column width calculation.
2780         (html_table::set_linelength): Don't add 1.
2781         (html_table::add_indent): Don't subtract 1.
2783         * tmac/html.tmac: Set default page offset to zero.
2785 2003-03-30  Werner LEMBERG  <wl@gnu.org>
2787         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
2789         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2790         unbreakable_space_node::tprint): New functions.
2791         (troff_output_file): Make space_char_hmotion_mode::tprint and
2792         unbreakable_space_node::tprint to friends.
2793         * src/roff/troff/node.h: Updated.
2795         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
2796         in the HTML standard).
2798 2003-03-29  Werner LEMBERG  <wl@gnu.org>
2800         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
2801         Otherwise, the following code
2803           .di xxx
2804           .ps 10
2805           a
2806           .br
2807           .di
2808           x\*[xxx]
2810         produces `x a' instead of `xa'.  This is a temporary fix, disabling
2811         font changes in diversions for -Thtml.
2813         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
2814         `HTML-TAG'.
2815         (an-do-tag-html): Merge with ...
2816         (an-do-tag): This macro.
2817         Change code slightly to circumvent grohtml bug.
2818         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
2820         * src/devices/grohtml/html-table.cc (html_table::emit_col,
2821         html_table::is_gap): Round `width' properly.
2823         * tmac/html.tmac: Provide some default layout parameters for
2824         grohtml.
2826         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
2827         command.
2829 2003-03-28  Werner LEMBERG  <wl@gnu.org>
2831         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
2833 2003-03-27  Werner LEMBERG  <wl@gnu.org>
2835         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
2836         defined.
2838 2003-03-20  Werner LEMBERG  <wl@gnu.org>
2840         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
2841         `.vs'.
2842         * doc/groff.texinfo: Updated.
2844 2003-03-19  Werner LEMBERG  <wl@gnu.org>
2846         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
2847         TOKEN_END_TRAP>: Reset `have_input'.
2849 2003-03-18  Werner LEMBERG  <wl@gnu.org>
2851         * src/roff/groff/groff.man: Mention groff_trace man page.
2853 2003-03-16  Werner LEMBERG  <wl@gnu.org>
2855         * Makefile.in (LIBEXT): New variable to indicate the file extension
2856         of library files.  Computed heuristically from $(OBJEXT).
2857         (MDEFINES): Add $(LIBEXT).
2858         * Makefile.lib, Makefile.comm: Use it.
2860         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
2861         overlong lines into smaller chunks.
2862         (get_binary): New function.
2863         (main): Use them.
2864         * src/utils/pfbtops/pfbtops.man: Updated.
2866 2003-03-15  Colin Watson  <cjwatson@debian.org>
2868         * src/roff/groff/groff.man: Minor syntax fix.
2870 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
2872         * src/devices/grops/ps.cc (ps_printer::media_set,
2873         ps_printer::~ps_printer): Handle zero paper width and length.
2875 2003-03-13  Werner LEMBERG  <wl@gnu.org>
2877         Add options -p and -l to grodvi.
2879         * src/devices/grodvi/dvi.cc: Include paper.h.
2880         (landscape_flag, user_paper_length, user_paper_width): New global
2881         variables.
2882         (dvi_printer::begin_page): Emit `papersize' special.
2883         Set color after initialization of `cur_h' and `cur_v'.
2884         (main): Add options `-l' and `-p'.
2885         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
2886         * src/devices/grodvi/grodvi.man, NEWS: Updated.
2888         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
2890 2003-03-12  Werner LEMBERG  <wl@gnu.org>
2892         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
2893         * man/groff_tmac.man: This man page.
2894         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
2895         deprecated.
2897         * tmac/X.tmac: Don't load pspic.tmac.
2899 2003-03-11  Werner LEMBERG  <wl@gnu.org>
2901         Make variable `pr' local to libdriver/input.cc.  Based on a patch
2902         by Bernd Warken <bwarken@mayn.de>.
2904         * src/include/driver.h (pr): Removed.
2906         * src/libs/libdriver/input.cc (pr): New global variable.
2907         (do_file): Deallocate `pr'.
2908         * src/libs/libdriver/printer.cc (pr): Removed.
2910         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
2911         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
2912         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
2913         (main): Don't delete `pr'.
2915 2003-03-10  Werner LEMBERG  <wl@gnu.org>
2917         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
2918         * tmac/papersize.tmac: New file.
2919         * tmac/troffrc: Include `papersize.tmac'.
2920         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
2921         * tmac/an-old.tmac: Set LT to LL by default.
2923         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
2924         doc/groff.texinfo: Updated.
2926         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
2927         bug which caused all odd iso papers to have wrong dimensions.
2929         * src/devices/grops/ps.cc (user_paper_width): New global variable.
2930         (main) <'p'>: Set `user_paper_width' also.
2931         (ps_printer::media_width, ps_printer::media_height): Use values
2932         given with option `-p'.
2934 2003-03-09  Werner LEMBERG  <wl@gnu.org>
2936         * src/include/nonposix.h: Provide default for SET_BINARY.
2938         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
2939         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
2940         unconditionally.
2942         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
2943         (main): Treat \r\n as \n.
2945 2003-03-08  Werner LEMBERG  <wl@gnu.org>
2947         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
2948         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
2950 2003-03-07  Werner LEMBERG  <wl@gnu.org>
2952         Added support to access more than 256 glyphs in Type 1 fonts.
2954         * src/devices/grops/ps.cc (subencoding): New structure.
2955         (style): Add `sub' field.
2956         Updated all users.
2957         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
2958         Add `set_subencoding', `get_subfont' and `encode_subfont' member
2959         functions.
2960         Updated all users.
2961         (ps_printer::set_char): Use `set_subencoding'.
2962         (make_subencoding_name): New function.
2963         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
2964         (ps_printer::~ps_printer): Emit subencoding definitions.
2966         * src/devices/grops/psrm.cc (valid_input_table): New array to
2967         properly support EBCDIC.
2968         (white_space): Add `\f'.
2969         (ps_get_line): Change first argument to be of type `string &'.
2970         Updated all callers.
2971         This allows to get lines of arbitrary length.
2972         Use `valid_input_table'.
2973         Remove warning about non-conforming PS line length.  This seems
2974         not to be of great importance -- for example, dvips don't emit
2975         a warning either.
2976         (PS_LINE_MAX): Removed.
2977         (matches_comment): Change first argument to be of type `string &'.
2979         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
2981         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
2982         %AGL_to_unicode, %default_ligatures): New hash tables.
2983         Read all map entries.
2984         Add unencoded characters.
2985         Check for default ligatures if there are no `L' entries.
2986         Print all kern entries.
2987         Print all characters in charset.
2988         * src/utils/afmtodit/afmtodit.man: Updated.
2990         * font/devps/*: Regerated all fonts.
2992         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
2993         of characters, just use `.trin'.  Otherwise the mapping depends
2994         on the font encoding.
2995         * tmac/ps.tmac: Add `fi' and `fl'.
2996         Improve `Fi' and `Fl'.
2997         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
2998         * tmac/Xps.tmac: Fix `em'.
3000         * NEWS: Updated.
3002 2003-03-04  Werner LEMBERG  <wl@gnu.org>
3004         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
3005         `have_input'.
3007 2003-03-03  Werner LEMBERG  <wl@gnu.org>
3009         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
3011         * font/devps/generate/textmap: Remove entry `similarequal'.
3012         * font/devps/symbolmap: Updated.
3014 2003-03-02  Werner LEMBERG  <wl@gnu.org>
3016         * src/libs/libgroff/font.cc (font::load): Fix error message for
3017         bad character type.
3019         * src/devices/grops/grops.man: Improve documentation of the -b
3020         flag.
3022         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
3023         `ascii' and `cp1047'.
3025 2003-03-01  Werner LEMBERG  <wl@gnu.org>
3027         Document composite glyphs and the `composite' request.
3029         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
3031 2003-02-28  Werner LEMBERG  <wl@gnu.org>
3033         * font/devdvi/generate/ec.map: Add some more Unicode entities.
3034         * font/devdvi/*EC: Updated.
3036         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
3037         * tmac/latin1 (latin1-tr): Undo any previous mapping.
3038         * tmac/troffrc: Load `composite.tmac'.
3039         * tmac/Makefile.sub (NORMALFILES): Updated.
3041         * doc/groff.texinfo (Input Encodings): New section.
3042         * NEWS: Updated.
3044 2003-02-27  Werner LEMBERG  <wl@gnu.org>
3046         * doc/texinfo.tex: New version 2003-02-11.06.
3048         * tmac/doc-common (Dt): Don't emit warning for unknown section.
3049         * tmac/groff_mdoc.man: Fix description of `Dt'.
3051 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
3053         * font/devps/prologue.ps: Fix for included Postscript that does
3054         a setpagedevice -- which is now safely ignored.
3056         * NEWS: Updated.
3058         * src/devices/grops/ps.cc: Now sets the page size in the generated
3059         document.  This is done in two ways: Via a %%-comment for gv and
3060         the like, and via a PageSize and setpagedevice for programs that
3061         understands Postscript proper, like ps2pdf.
3063         * src/devices/grops/ps.h: New broken-flag to avoid page size
3064         definition, if required.
3066         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
3068         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
3069         Not really necessary due to the fix in prologue.ps, but cleaner:
3070         Such information does not belong in an .eps file.
3072         * doc/Makefile.sub: See doc/Makefile.in.
3074 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
3076         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
3077         instead of P1 since the latter is broken in some versions of netpbm.
3078         * configure: Updated.
3080 2003-02-26  Larry Kollar  <kollar@alltel.net>
3082         Make man pages more customizable.
3084         * tmac/an-old.tmac (FT): New register holding footer distance from
3085         bottom.
3086         (HF): New string holding the default heading font.
3087         (TH): Handle registers `IN' and `SN' set on the command line.
3088         Use `FT'.
3089         (PT, BT): New strings to customize header and footer lines.
3090         (an-header, an-footer): Use them.
3091         (SH, SS): Use `HF'.
3092         * tmac/groff_man.man: Document changes.
3094         * doc/groff.texinfo: Document man changes.
3095         Document Ultrix extensions of man.
3097 2003-02-26  Werner LEMBERG  <wl@gnu.org>
3099         * src/roff/troff/input.cc (do_width, do_if_request): Reset
3100         `have_input' after changing back to old environment.
3102         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
3103         function up to be defined before first call.  This is necessary to
3104         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
3106         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
3107         the default font directory also.  Based on a patch from James
3108         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
3109         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
3110         * src/utils/afmtodit/afmtodit.man: Document it.
3112         * NEWS: Updated.
3114         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
3116 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
3118         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
3119         (GROFF_PNMTOPS_NOSETPAGE): New macro.
3120         * configure.ac: Use it.
3121         * configure: Regenerated.
3122         * Makefile.in: Updated.
3124         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
3125         (CLEANADD): Add www.tmac-sed.
3126         (pnmtops_nosetpage): Define default.
3127         (install_data): Handle www.tmac-sed and substitute
3128         @PNMTOPS_NOSETPAGE@.
3129         (stamp-sed): Add www.tmac.
3130         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
3131         It now breaks URLs at suitable places.
3132         (www:substring_ok): New register set by...
3133         (www:@test_substring): New macro.
3134         (www:error): New alias to www-error.
3135         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
3136         New macros.
3137         (URL): Use www:url_breaks.
3138         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
3139         (CDS, CDE): New macros.
3141 2003-02-25  Werner LEMBERG  <wl@gnu.org>
3143         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
3144         buffer overflow.
3146 2003-02-24  Werner LEMBERG  <wl@gnu.org>
3148         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
3149         can be negative also.
3151         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
3152         `int16'.
3153         (read_char_table): Avoid negative ascenders.
3154         (output_charset): Add cast.
3155         * font/devlj4/*: Regenerated.
3157         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
3158         possible.
3160         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
3161         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
3162         of `<>'.
3163         * font/devdvi/*: Regenerated.
3165         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
3166         normal width, while the previously used characters (U+2329 and
3167         U+232A) are classified as wide due to canonical equivalence with the
3168         CJK punctuation characters U+3008 and U+3009.
3170         * font/devutf8/R.proto: Updated.
3171         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
3173         * man/groff_char.man: Simplify handling of table traps by
3174         introducing `start block' and `end block' macros.
3175         (Ns, Ne, 2s, 2e, Ds, De): New macros.
3176         (DL): Make it work with Unix troff also.
3177         Fix code values of `la' and `ra'.
3179         * tmac/dvi.tmac: Define `<>' for CW and CWI.
3181 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
3183         * src/devices/grohtml/post-html.cc (element_list::~element_list):
3184         New destructor, fixing a major memory leak.
3186 2003-02-22  Werner LEMBERG  <wl@gnu.org>
3188         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
3189         to be in conformance with Unicode 3.0 and newer.
3191         * font/devlj4/generate/text.map: Add `Eu'.
3192         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
3193         * font/devlj4/S: Regenerated.
3195         * man/groff_char.man: Completely rewritten.
3197         * doc/groff.texinfo: Fix description of request and macro arguments.
3199 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
3201         Valgrind fixes.
3203         * src/devices/grohtml/html-table.cc (html_table::~html_table):
3204         Deallocate `columns' list.
3205         * src/devices/grohtml/post-html.cc (char_block::~char_block):
3206         New destructor.
3207         (text_glob::text_glob_html, text_glob::text_glob_special,
3208         text_glob::text_glob_line, text_glob::text_glob_auto_image,
3209         text_glob::text_glob_tag): Avoid memory leaks.
3210         (text_glob::remember_table): Free memory before reassigning.
3212 2003-02-19  Werner LEMBERG  <wl@gnu.org>
3214         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
3215         alias `hbar'), the Planck constant over two pi.
3217         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
3218         `+e' for position 34.
3219         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
3220         `u2662' and `u2661'.
3221         * font/devdvi/{MI,S}: Regenerated.
3222         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
3223         * font/devlbp/*: Add `hbar' alias.
3224         * font/devlj4/generate/special.map: Ditto.
3225         * font/devlj4/S: Regenerated.
3226         * font/devps/generate/symbolchars: Add `+e'.
3227         * font/devps/generate/textmap: Fix PS name for `-h'.
3228         Add `hbar' alias.
3229         * font/devps/symbolmap: Regenerated.
3231         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
3233         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
3234         `-h', `hbar'.
3235         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
3236         `-h'.
3238         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
3239         `hbar'.
3240         * tmac/tty-char.tmac: Add `+e'.
3242 2003-02-17  Werner LEMBERG  <wl@gnu.org>
3244         Another round trying to really fix problems with `have_input'.
3246         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
3247         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
3249         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
3250         handling if both foreground and background colors are default.
3252         * doc/groff.texinfo (Debugging): Document .lf differences to
3253         AT&T troff.
3255 2003-02-16  Werner LEMBERG  <wl@gnu.org>
3257         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
3258         null-bytes in created string.
3260         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
3261         alias_macro, lookup_request): Improve warning messages.
3263         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
3264         not `strdup'.
3265         Free `last_image_filename'.
3267         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
3268         `buffer'.
3269         (imageList::createPage, imageList::createImage): Use `free', not
3270         `a_delete'.
3271         (imageItem::~imageItem): Free `imageName'.
3272         (addRegDef): Use `strsave', not `strdup'.
3273         (get_resolution): Free `pathp'.
3275 2003-02-15  Werner LEMBERG  <wl@gnu.org>
3277         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
3278         to `dummy'.
3280 2003-02-14  Werner LEMBERG  <wl@gnu.org>
3282         Add memory management for colors to deallocate unnamed colors
3283         properly.
3285         * src/include/color.h (color): New members `free_list' and `next'.
3286         New member functions `new' and `delete'.
3287         Add destructor.
3288         * src/libs/libgroff/color.cc: Implement it.
3290         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
3291         for array size of new operator.
3293         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
3294         redundant comparison.
3296         * src/roff/troff/input.cc (word_space_node::reread,
3297         hmotion_node::reread): Avoid warning about unused parameter.
3298         (reset_output_registers): Remove redundant parameter.
3299         (define_color): Undo change 2003-02-12.
3301         * src/roff/troff/reg.h: Updated.
3303         * src/roff/troff/node.cc (troff_output_file::really_print_line,
3304         output_file::put_filename, real_output_file::really_put_filename,
3305         ascii_output_file::really_print_line,
3306         break_char_node::get_hyphen_list): Avoid warning about unused
3307         parameter.
3308         (suppress_node::tprint): Updated.
3310         * configure.ac: Check declaration for rand() and srand().
3311         * configure: Regenerated.
3313         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
3314         conditionally.
3315         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
3316         and srand().
3318         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
3319         to avoid compiler warnings.
3321         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
3322         unused.
3324         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
3325         is unused.
3326         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
3327         (unused) parameter.
3328         Updated all callers.
3330         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
3331         is unused.
3332         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
3333         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
3335         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
3336         Parameter is unused.
3337         (html_printer::add_table_end): Define parameter conditionally.
3338         * src/devices/grohtml/output.cc (simple_output::special): Parameter
3339         is unused.
3341         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
3342         (lbp_printer::set_char): Last parameter is unused.
3344         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
3346 2003-02-13  Werner LEMBERG  <wl@gnu.org>
3348         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
3349         Make \D'f ...' move horizontally again for backwards compatibility.
3350         Replace it with \D'Fg ...' where appropriate to avoid dependency
3351         on horizontal resolution.
3353         * src/roff/troff/input.cc (do_get_long_name): New function.
3354         (get_long_name): Call it.
3356         (read_draw_node): Handle `\D'Fx ...' by calling ...
3357         (read_color_draw_node): New function.
3359         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
3360         `end'.
3361         Pass it to `do_get_long_name' which is used instead of
3362         `get_long_name'.
3364         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
3365         unnecessary value guard.
3366         (parse_D_command) <'f'>: Add horizontal shift.
3368         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
3369         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3370         (FILL_MAX): Removed.
3372         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3373         Updated.
3375 2003-02-12  Werner LEMBERG  <wl@gnu.org>
3377         * src/roff/troff/input.cc (do_name_test, do_expr_test,
3378         do_zero_width): Push `\n' if closing delimiter is missing.
3380         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
3381         <'F'>: Make \F non-transparent at the beginning of line.
3382         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
3383         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
3384         `have_input'.
3386         (define_color): Free color in case of reassignment.
3388         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
3389         @DefescListEnd): Use @Var, not @var.
3390         Fix all calls.
3392         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
3394         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
3395         `shaded' and `outlined' arrays.
3396         (object_spec::object_spec): Initialize `shaded' and `outlined'.
3397         (graphic_object::set_fill_color, graphic_object::set_outline_color):
3398         Use strsave.
3399         (closed_object::set_fill_color): Ditto.
3400         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
3401         instead of strdup.
3402         (troff_output::reset_color): Use a_delete instead of free.
3403         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
3405 2003-02-11  Werner LEMBERG  <wl@gnu.org>
3407         * doc/groff.texinfo: Improve documentation of `ad'.
3408         Document that \D'f...' is dependent on the horizontal resolution.
3409         * man/groff_diff.man: Improve documentation of \D'f...'.
3411         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
3412         compensating \h'...' for \D'f ...' since the latter no longer moves
3413         current position.
3414         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3416 2003-02-10  Werner LEMBERG  <wl@gnu.org>
3418         Improve error messages for `x F' (and `F') commands.
3420         * src/include/error.h: Add declaration for
3421         `current_source_filename'.
3422         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
3423         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
3424         parameter for source file string.
3425         Updated all callers.
3427         * src/libs/libdriver/input.cc: Add `current_source_filename'.
3428         (remember_source_filename): New function.
3429         (parse_x_command <'F'>, do_file <'F'>): Use it.
3431 2003-02-09  Werner LEMBERG  <wl@gnu.org>
3433         Make grotty not emit warnings about unknown colors more than
3434         necessary.
3436         * src/devices/grotty/tty.cc: Include `ptable.h'.
3437         (TTY_MAX_COLORS): Removed.
3438         (DEFAULT_COLOR_IDX): Defined to -1.
3439         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
3440         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
3441         Change `tty_colors' to be a ptable.
3442         First arg of `put_color' is now `char'.
3443         New functions `make_rgb_string' and `tty_color'.
3444         (tty_printer::tty_printer): Use `tty_color'.
3445         (tty_printer::color_to_idx): Return value is now `char'.
3446         Use `tty_color'.
3448         * src/include/color.h (color): Add `print_color' member function.
3449         * src/libs/libgroff/color.cc (color::print_color): Implement it.
3451 2003-02-08  Werner LEMBERG  <wl@gnu.org>
3453         Valgrind fixes.
3455         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
3456         encoding file.
3458         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
3459         assume that value has been allocated with `new[]', thus use
3460         `a_delete' for deallocation.
3462         * src/libs/libdriver/input.cc (get_integer_arg,
3463         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
3464         where appropriate.
3466         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
3467         * src/libs/libgroff/nametoindex.cc
3468         (character_indexer::named_char_index): Use `new <type>[1]'.
3470         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
3471         <type>[1]'.
3472         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
3473         (split_text): Use `a_delete'.
3475         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
3476         <type>[1]'.
3478         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
3479         harmless memory leak.
3480         (hyphen_trie::read_patterns_file): Initialize `buf'.
3481         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
3482         Initialize `current_fill_color'and `current_glyph_color'.
3483         * src/roff/troff/glyphuni.cc
3484         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
3485         * src/roff/troff/uniuni.cc
3486         (unicode_decompose_init::unicode_decompose_init): Ditto.
3487         * src/roff/troff/uniglyph.cc
3488         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
3490 2003-01-26  Werner LEMBERG  <wl@gnu.org>
3492         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
3493         `access' before calling `unlink'.
3494         (do_file): Handle __EMX__.
3496         * src/include/nonposix.h: Handle __EMX__.
3498         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
3499         (fontpath,tmacpath): Use it.
3500         (MDEFINES): Add it.
3501         Sorted alphabetically.
3503         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
3504         @SEP@.
3505         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
3506         @SEP@.
3508 2003-01-27  Werner LEMBERG  <wl@gnu.org>
3510         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
3511         New files, copied from gnulib.
3512         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
3513         * configure.ac: Updated.
3514         * configure: Regenerated.
3516         * src/include/config.hin: Regenerated.
3517         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
3518         Don't define `strcasecmp' as `strcmp'.
3519         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
3520         Dont define `strncasecmp' as `strncmp'.
3522         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
3523         Removed.
3525 2003-01-26  Werner LEMBERG  <wl@gnu.org>
3527         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
3528         s/unline/unlink/.
3530 2003-01-25  Werner LEMBERG  <wl@gnu.org>
3532         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
3534 2003-01-24  Werner LEMBERG  <wl@gnu.org>
3536         Add US-english hyphenation exceptions (converted from Barbara
3537         Beeton's hyphenation exception log reports which appear irregularly
3538         in TUGBoat).
3540         * tmac/hyphen.us: Updated to latest version.
3541         * tmac/README: Updated.
3542         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
3543         * tmac/troffrc: Load `hyphenex.us'.
3544         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
3545         * doc/groff.texinfo: Updated.
3547 2003-01-23  Werner LEMBERG  <wl@gnu.org>
3549         Improve hyphenation slightly.  This is a first step in redesigning
3550         the hyphenation algorithm to make it more flexible (e.g. allowing
3551         kerns and ligatures between the hyphenation character and the
3552         following character -- while not used normally in English, other
3553         languages like German would benefit).
3555         * src/roff/troff/env.cc (environment::hyphenate_line): Use
3556         assertion instead of if-clause.
3557         Let `get_hyphen_list' return the number of involved characters in
3558         the hyphenation pattern instead of computing it directly (which
3559         often yields too small values).
3560         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
3561         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
3562         parameter.
3564 2003-01-22  Werner LEMBERG  <wl@gnu.org>
3566         Fixing a bug which caused groff to hang if the hyphenation exception
3567         dictionary tried to grow.
3569         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
3570         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
3571         pointer to dictionary.
3573 2003-01-20  Werner LEMBERG  <wl@gnu.org>
3575         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
3576         negative left italic correction.
3577         * src/utils/afmtodit/afmtodit.man: Document it.
3579         * font/devps/generate/Makefile (RFLAG): Add `-m'.
3580         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
3581         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
3583         * NEWS: Updated.
3585 2003-01-16  Werner LEMBERG  <wl@gnu.org>
3587         * NEWS: Updated.
3589 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
3591         * src/preproc/refer/refer.man: Mention REFER environment variable.
3593 2003-01-05  Werner LEMBERG  <wl@gnu.org>
3595         Similar to \[is], the square root glyph (\[sr]) and the square root
3596         extension glyph (\[radicalex]) are now text symbols.  The new
3597         mathematical versions are called \[sqrt] and \[sqrtex],
3598         respectively.
3600         * font/devX*/S: Regenerated.
3601         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
3602         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
3603         * font/devdvi/EX, font/devdvi/S: Regenerated.
3604         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
3605         * font/devlj4/generate/special.map: Add `sqrt'.
3606         * font/devlj4/S: Regenerated.
3607         * font/devps/generate/textmap: Add `sqrt'.
3608         * font/devps/S, font/devps/symbolmap: Regenerated.
3610         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
3611         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
3612         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
3613         overlap horizontally.
3615         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
3616         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
3617         Fix `radicalex'.
3619         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
3620         and `sqrtex' are overlapping glyphs.
3622 2003-01-04  Werner LEMBERG  <wl@gnu.org>
3624         * font/devdvi/generate/texsy.map: Add `is'.
3625         * font/devps/symbolmap: Regenerated.
3626         * font/devdvi/*TC, MI, S: Regenerated.
3628         * tmac/dvi.tmac: Remove `is'.
3630 2003-01-03  Werner LEMBERG  <wl@gnu.org>
3632         `is' is now a text symbol (only relevant for dvi).  The math variant
3633         can be accessed with `integral'.
3635         * font/devX*/S: Regenerated.
3636         * font/devdvi/generate/texex.map: Remove `is'.
3637         * font/devdvi/EX: Updated.
3638         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
3639         * font/devlj4/generate/special.map: Ditto.
3640         * font/devlj4/S: Regenerated.
3641         * font/devps/generate/textmap: Add `integral'.
3642         * font/devps/S: Regenerated.
3644         * tmac/dvi.tmac: Define `is'.
3646         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
3648         * src/preproc/tbl/main.cc (process_format): Fix error message.
3650 2003-01-02  Werner LEMBERG  <wl@gnu.org>
3652         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
3653         * font/devps/textmap: Fix entries for `ne' and `nc'.
3654         * font/devps/symbolmap: Regenerated.
3656         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
3657         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
3658         `38', `58', `78', `-+', `|=', `nc', `ne'.
3660         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
3661         Use `schar' for `aq'.
3662         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
3663         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
3664         * tmac/tty.tmac: Add `ne'.
3666         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
3667         for fallback glyphs.
3669 2002-12-29  Werner LEMBERG  <wl@gnu.org>
3671         Add glyph `|='.
3673         * font/devX*/*: Regenerated.
3674         * font/devdvi/generate/ec.map: Remove `eq'.
3675         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
3676         Assign `|=' to position 39.
3677         * font/devdvi/*EC, S: Regenerated.
3678         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
3679         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
3680         Assign `|=' to position 549.
3681         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
3682         `equalmath'.
3683         Add `uni2243' for `|='.
3685         * tmac/ec.tmac: Add `eq'.
3686         * tmac/dvi.tmac: Add `=~'.
3687         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
3688         `|='.
3690 2002-12-21  Werner LEMBERG  <wl@gnu.org>
3692         * font/devdvi/generate/tc.map: Remove `**'.
3693         * font/devdvi/*TC: Regenerated.
3694         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
3695         `78', `<<', `>>'.
3696         * font/devutf8/NOTES: Updated.
3698         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
3699         Don't give default parameter to `set_macro'.
3700         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
3701         instead of `set_macro'.
3702         (charinfo::setx_macro): Implement it.
3703         (charinfo::set_macro): Don't change `mode'.
3705         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
3706         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
3707         * tmac/dvi.tmac: Define `!=' with `.schar'.
3709 2002-12-20  Werner LEMBERG  <wl@gnu.org>
3711         * font/devX*/S: Regenerated.
3712         * font/devdvi/generate/ec.map: Remove `pl'.
3713         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
3714         * font/devdvi/*{TC,EC}: Regenerated.
3715         * font/devhtml/R.proto: Add `-+'.
3716         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
3717         * font/devlbp/*: Remove `or'.
3718         * font/devlj4/generate/special.map: Remove `or'.
3719         * font/devlj4/S: Regenerated.
3720         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
3721         `seveneighths', `threeeighths'.
3722         Remove `plusmath'.
3723         Replace `minusplus' with `uni2213'.
3724         * font/devps/symbolmap: Regenerated.
3725         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
3726         Add `-+'.
3728         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
3729         function.
3730         * src/roff/troff/node.cc (troff_output_file::put_char_width):
3731         Call glyph_color and fill_color even if tcommand_flag isn't set.
3732         (make_node, node::add_char): Check not ci->is_fallback but
3733         ci->is_normal.
3735         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
3736         * tmac/ec.tmac: Add .rchar entry for `f/'.
3737         Don't remove `12', `14', `34'.
3738         Define `pl' to be always roman.
3739         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
3740         Define `18', `38', `58', `78'.
3741         * tmac/tty.tmac: Add `-+'.
3742         * tmac/dvi.tmac: Define `f/'.
3743         (dvi-frac): Use `f/'.
3744         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
3745         Define `18', `38', `58', `78'.
3747 2002-12-15  Colin Watson  <cjwatson@debian.org>
3749         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
3751 2002-12-10  Werner LEMBERG  <wl@gnu.org>
3753         Add glyph `tno', a textual variant of `no'.
3755         * font/devX*/*: Regenerated.
3756         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
3757         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
3758         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
3759         * font/devdvi/*: Regenerated.
3760         * font/devlbp/*: Add `tno'.
3761         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
3762         * font/devlj4/*: Regenerated.
3763         * font/devps/generate/textmap: Replace `no' with `tno'.
3764         * font/devps/generate/symbolchars: Add `no'.
3765         * font/devps/*: Regenerated.
3767         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
3769         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
3770         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
3772         * NEWS: Updated.
3774         * tmac/dvi.tmac: Replace most `\\' with `\E'.
3775         Add definition for `sd'.
3776         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
3778         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
3780 2002-12-08  Werner LEMBERG  <wl@gnu.org>
3782         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
3783         mode to avoid rounding errors.
3784         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
3786         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
3787         src/roff/troff/troff.man: Improve documentation of -T.
3789 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
3791         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
3792         (run_pipeline) [_WIN32]: Provide working function without `fork'.
3794 2002-12-06  Werner LEMBERG  <wl@gnu.org>
3796         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
3797         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
3798         Scaling Euro.sansserif glyphs down to have the same height as
3799         digits.
3800         Removed unnecessary points; added some extrema.
3802         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
3803         Regenerated.
3805 2002-12-04  Werner LEMBERG  <wl@gnu.org>
3807         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
3808         and `Euro.symbol.bold.slanted'.
3809         Improve some glyph offsets and widths.
3810         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
3811         Regenerated.
3812         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
3813         typo.
3814         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
3815         direcory.
3817         * tmac/europs.tmac: Updated to new glyph indices.
3818         Use Euro.symbol for font familiy `A'.
3820         * doc/groff.texinfo: Minor improvements.
3822 2002-12-02  Werner LEMBERG  <wl@gnu.org>
3824         * font/devdvi/generate.tc.map: s/%O/%0/.
3825         * font/devdvi/*TC: Regenerated.
3827         * src/roff/troff/div.cc (init_div_requests): Sorted.
3829         * tmac/dvi.tmac: Remove `Ye'.
3830         * tmac/ec.tmac: Remove `Ye'.
3831         Add .rchar entry for `de'.
3833         * man/groff.man, man/groff_diff.man: Document register `.pe'.
3834         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
3835         * NEWS: Updated.
3837 2002-11-30  Werner LEMBERG  <wl@gnu.org>
3839         Add PS font for various Euro glyphs.
3841         * font/devps/generate/freeeuro.sfd: New master font file for
3842         pfaedit.
3843         * font/devps/generate/sfdtopfa.pe: New conversion script for
3844         pfaedit.
3845         * font/devps/generate/Makefile (FONTS): Add `EURO'.
3846         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
3847         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
3848         `freeeuro.sfd'.
3849         * font/devps/EURO: Generated from `freeeuro.afm'.
3850         * font/devps/download: Add `freeuro.pfa'.
3851         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
3852         `freeeuro.pfa'.
3854         * tmac/europs.tmac: New file.
3855         * tmac/ps.tmac: Include `europs.tmac'.
3856         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
3858 2002-11-29  Werner LEMBERG  <wl@gnu.org>
3860         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
3861         * font/devdvi/S: Regenerated.
3862         * font/devhtml/R.proto: Fix `CR' and `ci'.
3863         Add `OK'.
3864         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
3865         Remove `bs'.
3866         * font/devps/symbolmap: Regenerated.
3867         * font/devutf8/R.proto: Fix `CR' and `ci'.
3868         Add `OK'.
3869         * font/devutf8/NOTES: Updated.
3871         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
3872         `ci'.
3873         Add `OK'.
3874         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
3876         * tmac/dvi.tmac: Add `lh' and `rh'.
3877         * tmac/Xps.tmac: Fix `lh' and `rh'.
3878         * tmac/X.tmac: Add `OK'.
3879         * tmac/lj4.tmac: Ditto.
3881 2002-11-24  Werner LEMBERG  <wl@gnu.org>
3883         * font/devX*/S: Regenerated.
3884         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
3885         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
3886         * font/devdvi/generate/texsy.map: Remove `or' glyph.
3887         * font/devdvi/S: Regenerated.
3888         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
3889         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
3890         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
3891         `bracketleftbt', `bracketrighttp', `bracketrightex',
3892         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
3893         `braceex', `braceleftex', `bracerightex', `bracerighttp',
3894         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
3895         `rb', and `bv'.
3896         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
3897         * font/devutf8/NOTES: Updated.
3898         * font/devlj4/generate/special.map: Add glyph `braceex'.
3899         * font/devlj4/S: Regenerated.
3901         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
3903 2002-11-14  Werner LEMBERG  <wl@gnu.org>
3905         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
3906         and `vA'.
3907         Fix code for `an'.
3908         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
3910         * doc/texinfo.tex: New version from texinfo 4.3.
3911         * doc/groff.texinfo: Updated for texinfo 4.3.
3912         Use @tie{} where appropriate.
3913         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
3914         * font/devdvi/generate/tc.map: Remove `rn'.
3915         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
3916         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
3917         Fix code for `an'.
3918         * font/devX100/*, font/devX100-12/*, font/devX75/*,
3919         font/devX75-12/*: Regenerated.
3921         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
3922         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
3923         Improve definition of `an'.
3924         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
3925         `ru'.
3926         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
3927         * tmac/X.tmac: Add definition for `or'.
3928         * tmac/Xps.tmac: Undo change 2002-11-05.
3929         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
3931 2002-11-11  Werner LEMBERG  <wl@gnu.org>
3933         * src/roff/troff/node.cc (troff_output_file::put_char): Always
3934         call flush_tbuf.
3936 2002-11-10  Werner LEMBERG  <wl@gnu.org>
3938         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
3939         defines a glyph which is searched after the check for fonts declared
3940         with `.special' (and before the check for all mounted special
3941         fonts).  `fschar' defines a glyph for a particular font which is
3942         searched after the check for fonts declared with `.fspecial' (and
3943         before the check for fonts declared with `.special').  `rfschar'
3944         removes glyphs defined with `fschar'.
3946         * src/roff/troff/token.h (char_mode): New enum.
3947         Declare do_define_character.
3948         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
3949         `mode'.
3950         (charinfo::is_fallback): Updated.
3951         (charinfo::is_special): New method.
3952         * src/roff/troff/input.cc (do_define_character): Add and use
3953         optional second parameter used as a prefix for font-specific glyph
3954         names.
3955         (define_character, define_fallback_character): Updated.
3956         (define_special_character): New function.
3957         (init_input_requests): Add `schar'.
3958         (charinfo::charinfo, charinfo::set_macro): Updated.
3959         * src/roff/troff/node.cc: Include `stringclass.h'.
3960         (make_glyph_node): Handle special glyphs defined with `.schar' and
3961         `.fschar'.
3962         (define_font_special_character, remove_font_special_character): New
3963         functions.
3964         (init_node_requests): Sorted.
3965         Add `fschar' and `rfschar'.
3966         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3967         Document new requests.
3969         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
3970         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
3972 2002-11-08  Werner LEMBERG  <wl@gnu.org>
3974         Added new font `SC' (cmtex10) to devdvi.
3976         * devdvi/generate/Makefile (FONTS): Add `SC'.
3977         (SC): New rule.
3978         * devdvi/generate/textex.map: New map file for cmtex.
3979         * devdvi/SC: New.
3980         * devdvi/Makefile.sub (DEVFILES): Updated.
3981         * tmac/dvi.tmac: Add fspecial entries for SC.
3982         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
3983         found before `S' since the font position of `SC' is lower due to the
3984         gaps in DESC's `font' line.
3985         * tmac/ec.tmac: Add a `special' call.
3986         * NEWS: Updated.
3988         * font/devhtml/R.proto: Remove double entry for `ti'.
3989         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
3990         * tmac/tty-char.tmac: Remove entry for `bq'.
3991         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
3992         * tmac/ec.tmac: Don't remove `aq' glyph.
3993         * tmac/X.tmac: Fix entry for `em'.
3994         Add entries for `fo' and `fc'.
3995         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
3997         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
3998         documentation of `special' and `fspecial' requests.
4000 2002-11-05  Werner LEMBERG  <wl@gnu.org>
4002         * font/devascii/R.proto, font/devcp1047/R.proto,
4003         font/devlatin1/R.proto: Remove entry for `.i'.
4004         * font/devdvi/generate/textt.map: Add entry for `ad'.
4005         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
4006         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
4007         We need this for getting kerning values to compose `/l' and `/L'.
4008         * font/devdvi: Regenerated font definition files for CM fonts.
4009         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
4010         * font/devutf8/R.proto: Ditto.
4011         Remove double entry for `ti'.
4013         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
4014         for (groff) ligatures, `la', and `ra'.
4015         Add "'C", "'c", `IJ', and `ij'.
4016         Remove double entry for `ti'.
4017         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
4018         double entries.
4019         Add "'C", "'c", `IJ', and `ij'.
4020         Fix entries for (groff) ligatures, `la', and `ra'.
4022         * tmac/ps.tmac (ps-achar): New macro.
4023         Define "'c" and "'C".
4024         * tmac/tty.tmac: Add entry for `.i'.
4025         * tmac/X.tmac (X-achar): New macro.
4026         Define "'c", "'C", and `:Y'.
4027         Add entries for `IJ' and `ij'.
4028         * tmac/Xps.tmac (Xps-achar): New macro.
4029         Define "'c" and "'C".
4030         Add entries for `IJ' and `ij'.
4031         * tmac/lbp.tmac (lbp-achar): New macro.
4032         Add fallback characters for all groff ligatures and many other
4033         glyphs.
4034         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
4035         Add entries for `/l' and `/L'.
4036         Define "'c" and "'C".
4037         Add entries for `IJ' and `ij'.
4039 2002-11-02  Larry Kollar  <kollar@alltel.net>
4041         * PROBLEMS: Document how to solve Mac OS X compilation problems.
4043 2002-11-02  Werner LEMBERG  <wl@gnu.org>
4045         Adding support for composite glyphs: \[xxx yyy ...] and the
4046         `composite' request.
4048         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
4049         to Unicode-based glyph names.
4050         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
4051         glyph names to groff glyph names.
4052         * src/roff/troff/uniuni.cc: New file for canonically decomposing
4053         Unicode-based glyph names.
4054         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
4055         for handling Unicode glyph names.
4056         * src/roff/troff/input.cc: Include unicode.h.
4057         (composite_glyph_name): New function.
4058         (token::next) <'['>: Handle Unicode glyph names and composite
4059         glyphs.
4060         (composite_dictionary): New dictionary for the `composite' request.
4061         (composite_request): Implement `composite' request.
4062         (init_input_requests): Add `composite'.
4063         Alphabetically sorted.
4064         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
4065         commented out).
4066         (init_env_requests): Alphabetically sorted.
4067         Removed `tas' and `tar' (already commented out).
4068         * src/roff/troff/Makefile.sub: Updated.
4070 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
4072         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
4073         of options.
4075 2002-10-29  Werner LEMBERG  <wl@gnu.org>
4077         Fix computation of .trunc register.  Additionally, its value (and
4078         the value of the .ne register) is now always set before entering the
4079         trap.
4081         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
4082         `needed_space' before calling `space'.
4083         (top_level_diversion::space): Remove special code for 'sp before the
4084         first page.
4085         Call `begin_page' with the discarded space as a parameter.
4086         (top_level_diversion::begin_page): Add optional parameter to set
4087         `truncated_space'.
4088         * src/roff/troff/div.h: Updated.
4090         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
4091         \n[.ne].
4093         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
4094         (LP): Remove superfluous call to `br'.
4095         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
4096         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4098 2002-10-26  Werner LEMBERG  <wl@gnu.org>
4100         * tmac/doc-ditroff: Remove useless switch/variable -rC.
4101         (doc-setup-header): Don't set page register `%'.
4102         * tmac/doc-nroff: Remove variable `C'.
4103         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
4104         (doc-setup-header): Don't set page register `%'.
4105         Don't call `bp'.
4106         * tmac/doc-common (doc-header): Call `ns'.
4107         (doc-paragraph): Protect .sp with .br so that it survives traps
4108         possibly set by the user.
4109         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4111         * tmac/doc*: Replace ' with . for consistency if no effect.
4113 2002-10-26  Werner LEMBERG  <wl@gnu.org>
4115         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
4116         so that it survives traps possibly set by the user.
4118         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
4119         (troff_output_file::set_font): Call flush_tbuf if necessary.
4120         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
4121         flush_tbuf and do_motion only if necessary.
4122         (troff_output_file::start_special,
4123         troff_output_file::put_char_width, troff_output_file::put_char,
4124         troff_output_file::draw): Updated.
4125         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4126         vmotion_node::tprint): Undo change 2002-10-23.
4128 2002-10-25  Werner LEMBERG  <wl@gnu.org>
4130         * tmac/www.tmac (DC): Fix case of overlapping images.
4132 2002-10-23  Werner LEMBERG  <wl@gnu.org>
4134         * src/roff/troff/node.cc (troff_output_file::fill_color,
4135         troff_output_file::glyph_color): Set current color before testing
4136         color_flag.
4137         (troff_output_file::put_char_width, troff_output_file::put_char,
4138         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
4139         before glyph_color.
4140         (troff_output_file::file_color, troff_output_file::glyph_color):
4141         Call do_motion.
4142         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4143         vmotion_node::tprint): Move first, then call fill_color.
4145 2002-10-20  Werner LEMBERG  <wl@gnu.org>
4147         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
4148         possible to use multiple main macro packages.
4150 2002-10-19  Werner LEMBERG  <wl@gnu.org>
4152         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
4153         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
4154         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
4155         is set.
4156         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
4157         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
4159 2002-10-16  Werner LEMBERG  <wl@gnu.org>
4161         * NEWS, doc/webpage.ms: Updated.
4163 2002-10-14  Werner LEMBERG  <wl@gnu.org>
4165         * src/roff/troff/node.cc (troff_output_file::put_char_width,
4166         troff_output_file::put_char, troff_output_file::fill_color,
4167         troff_output_file::glyph_color): Handle case where color pointer
4168         is null.
4170 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
4172         Add the new -r option to grotty.  It is similar to the -i option
4173         except it tells grotty(1) to use the "reverse video" attribute to
4174         render italic fonts.
4176         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
4177         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
4178         (tty_printer::make_underline, tty_printer::put_color,
4179         tty_printer::end_page): Use it.
4180         (main): Add -r switch.
4181         (usage): Updated.
4182         * src/devices/grotty/grotty.man: Document it.
4184 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
4186         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4187         cast to `unsigned char' to properly read patterns with 8bit
4188         characters.
4190 2002-10-08  Werner LEMBERG  <wl@gnu.org>
4192         * REVISION: Increased to 2.
4194 Version 1.18.1 released
4195 =======================
4197 2002-10-08  Werner LEMBERG  <wl@gnu.org>
4199         * doc/webpage.ms, NEWS: Updated.
4201 2002-10-07  Werner LEMBERG  <wl@gnu.org>
4203         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
4204         suppress additional whitespace after the header.
4206         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
4207         with NetBSD.
4209         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
4211 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
4213         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
4214         (Dt): Use it to improve language localization (especially Russian
4215         and French).
4217 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
4219         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
4220         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
4221         drawing commands.
4222         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
4223         curve type.
4224         Call `picurve' for BSPLINE.
4225         (HGPrintElt): Handle BSPLINE.
4226         * src/preproc/grn/README: Document it.
4228 2002-10-03  Werner LEMBERG  <wl@gnu.org>
4230         * src/roff/troff/node.cc (break_char_node::col): New variable.
4231         Updated constructor.
4232         (space_node::tprint, word_space_node::tprint): Call `fill_color'
4233         unconditionally.
4234         (space_node::space_node): Remove assertion.
4235         (break_char_node::add_self): Pass color argument to space node.
4236         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
4237         Ditto.
4238         * src/roff/troff/env.cc (environment::do_break,
4239         environment::add_padding): Ditto.
4241 2002-10-02  Werner LEMBERG  <wl@gnu.org>
4243         Redesigning color support in troff.  Colors are no longer
4244         represented as separate nodes but are now part of glyph nodes and
4245         friends.  This fixes the current formatting misbehaviour due to the
4246         changes introduced on 2002-09-20.  Some extra code is necessary for
4247         proper grotty support: Without adding color variables to
4248         space-related nodes, the background color would be changed too late.
4250         * src/roff/troff/node.h, src/roff/troff/node.cc:
4251         s/current_pagecolor/current_fill_color/.
4252         s/current_glyphcolor/current_glyph_color/.
4253         (glyph_color_node, fill_color_node): Removed.
4254         (node::get_glyph_color, node::get_fill_color): New virtual member
4255         functions.
4256         (space_node::col): New variable.
4257         Updated constructors of space_node and derived classes accordingly.
4258         (hmotion_node::col): New variable.
4259         Updated constructors of hmotion_node and space_char_hmotion_node
4260         accordingly.
4261         (vmotion_node::col): New variable.
4262         Updated constructor accordingly.
4263         (draw_node::gcol, draw_node::fcol): New variables.
4264         Updated constructor accordingly.
4265         (special_node::gcol, special_node::fcol): New variables.
4266         Updated constructors accordingly.
4267         (troff_output_file::put_char, troff_output_file::put_charwidth,
4268         troff_output_file::draw): Set glyph and fill color.
4269         (troff_output_file::start_special): Set glyph and fill color.
4270         Always set current font.
4271         (troff_output_file::fill_color, troff_output_file::glyph_color):
4272         Don't call `do_motion'.
4273         (glyph_node::gcol, glyph_node::fcol): New variables.
4274         Updated constructors of glyph_node and ligature_node accordingly.
4275         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
4276         member functions.
4277         (glyph_node::merge_glyph_node,
4278         kern_pair_node::add_discretionary_hyphen,
4279         node::add_discretionary_hyphen): Updated.
4280         (break_char_node::merge_self): Updated.
4281         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4282         vmotion_node::tprint): Handle color.
4283         (make_glyph_node, make_node, node::add_char): Updated.
4285         * src/roff/troff/env.cc (environment::space_newline,
4286         environment::space, environment::output_line, environment::do_break,
4287         environment::make_tab_node, environment::add_padding, title):
4288         Updated.
4289         (environment_switch, environment_copy): Don't add color nodes.
4291         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
4292         nothing.
4293         (token::next): Updated.
4294         \m and \M now are as transparent as \s.
4295         (process_input_stack, token::add_to_node_list, token::process,
4296         read_draw_node): Updated.
4297         (charinfo_to_node_list): Don't add color nodes.
4299         * doc/groff.texinfo: Updated.
4301 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
4303         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
4304         strings.
4306 2002-09-27  Colin Watson  <cjwatson@debian.org>
4308         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
4310 2002-09-23  Werner LEMBERG  <wl@gnu.org>
4312         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
4313         appropriate.
4314         (DEFAULT_LINEWIDTH_FACTOR): New macro.
4315         (linewidth_factor): New global variable.
4316         (lbp_printer::set_line_thickness): Fix case for size < 0, using
4317         linewidth_factor.
4318         (long_options): Add -w/--linewidth option.
4319         (usage): Updated.
4320         (main): Handle -w option to set linewidth_factor.
4321         (lbp_printer::lbp_printer): Initialize req_linethickness, not
4322         line_thickness.
4324         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
4326 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
4328         Fixed a bug in the line thickness setting code.
4330         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
4331         variable.
4332         (lbp_printer::set_line_thickness): Pass environment as second
4333         parameter.
4334         Implement it actually.
4335         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
4336         and `set_line_thickness, depending on the current font size.
4338 2002-09-21  Werner LEMBERG  <wl@gnu.org>
4340         Some Debian patches.
4342         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
4343         * src/roff/troff/node.cc (bracket_node::copy): Initialize
4344         `list->last'.
4346 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4348         * configure: Regenerated with autoconf 2.54.
4350 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4352         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
4353         glyph_color.
4354         Rename cur_fill_color to fill_color.
4355         * src/roff/troff/env.cc: Updated.
4357 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4359         * src/roff/troff/env.cc (title): Copy color status after processing
4360         title.
4361         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
4362         fill color nodes to reset colors properly.
4364         * tmac/www.tmac (DC): Fix color handling.
4366         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
4367         * doc/groff.texinfo: Fixing documentation of `tl' request.
4368         * doc/webpage.ms: Updated.
4370 2002-09-19  Werner LEMBERG  <wl@gnu.org>
4372         * src/roff/troff/env.cc (environent_switch, environment_copy):
4373         Emit glyph and fill color nodes to initialize colors properly.
4375 2002-09-17  Colin Watson  <cjwatson@debian.org>
4377         * src/roff/troff/env.cc (environment::set_glyph_color,
4378         environment::set_fill_color): Fix typo which prevented \m[] work
4379         correctly.
4381 2002-09-17  Werner LEMBERG  <wl@gnu.org>
4383         Add left and right italic correction to non-slanted PS fonts.  This
4384         is an experimental feature to improve image rendering of grohtml.
4386         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
4387         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
4388         * font/devps/*: All non-slanted fonts regenerated.
4389         * NEWS: Updated.
4391 2002-09-16  Werner LEMBERG  <wl@gnu.org>
4393         Add a site-specific font directory.
4395         * Makefile.in (localfontdir, legacyfontdir): New variables.
4396         (fontpath): Use them.
4397         (MDEFINES, uninstall_dirs): Updated.
4398         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
4399         Remove `FONTPATH' and `MACROPATH'.
4401         * src/roff/troff/troff.man, NEWS: Updated.
4402         * doc/groff.texinfo (Font Directories): New section.
4403         Other minor fixes.
4405         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
4406         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
4407         src/preproc/grn/grn.man: Minor fixes.
4409         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
4410         Remove unused variable.
4412 2002-09-11  Werner LEMBERG  <wl@gnu.org>
4414         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
4415         * man/groff_out.man: Fix documentation of 'N'.
4417 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
4419         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
4420         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
4421         set.
4422         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
4423         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
4424         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
4425         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
4426         PRE_TAG>: Call `begin' with `FALSE'.
4428 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4430         * src/libs/libgroff/string.cc (string::extract): Fix position of
4431         terminating null byte.
4433 2002-09-08  Werner LEMBERG  <wl@gnu.org>
4435         Add global option `nospaces' to tbl so that leading and trailing
4436         spaces in data items are ignored.
4438         * src/libs/libgroff/string.cc (string::remove_spaces): New member
4439         function to remove leading and trailing spaces.
4440         * src/include/stringclass.h: Updated.
4442         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
4444         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
4445         option.
4446         Fix typo in error messages.
4447         (process_data): Implement `nospaces' option.
4448         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
4450 2002-09-07  Werner LEMBERG  <wl@gnu.org>
4452         * src/include/config.hin: Add `HAVE_ISATTY'.
4453         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
4454         `fname' member.
4455         * src/libs/libgroff/tmpname.cc: Include `time.h'.
4456         * src/libs/libdriver/input.cc (Char): Add `operator==' and
4457         `operator!=' for `char'.
4458         * doc/groff.texinfo: Replace @ifnottex block for top node with
4459         @ifhtml block.
4461 2002-09-06  Werner LEMBERG  <wl@gnu.org>
4463         * doc/Makefile.in (.texinfo.html): Add -I switch.
4464         * doc/groff.texinfo: Add @ifnottex block for top node to make
4465         translation to HTML work.
4467 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
4469         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
4470         (get_papersize, determine_vertical_offset): Removed.
4471         (char_buffer::do_image): Always specify letter size.
4472         (main): Updated.
4473         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
4474         -sPAPERSIZE.
4476 2002-09-05  Werner LEMBERG  <wl@gnu.org>
4478         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
4479         default indentation.
4481 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
4483         * src/preproc/html/pre-html.cc (imageList::createPage): Use
4484         -sPAPERSIZE for gs.
4485         (generateImages): Clean up push-back buffer.
4487 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4489         * doc/groff.texinfo: Minor fixes.
4491 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
4493         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
4494         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
4495         (gsPaper): Removed.
4496         (determine_vertical_offset): Use LETTER_LENGTH.
4497         (createPage): Moved to ...
4498         (imageList::createPage): This.
4499         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
4500         (imageList::getMaxX): New function.
4501         (createImage): Moved to ...
4502         (imageList::createImage): This.
4503         (imageList::createImages): New function.
4504         (generateImages): Read `maxx' directly.
4505         Updated.
4506         (scanArguments): Don't specify `gsPaper' for `-o'.
4507         (makeTempFiles): Call `xtmpfile' with the last argument set to
4508         `TRUE'.
4510 2002-08-24  Werner LEMBERG  <wl@gnu.org>
4512         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
4513         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
4514         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
4515         * src/preproc/html/pushback.cc: Include nonposix.h.
4516         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
4517         conditionally.
4519 2002-08-23  Werner LEMBERG  <wl@gnu.org>
4521         Use $(OBJEXT) for the object file extension.
4523         * Makefile.comm (.SUFFIXES): Add .obj.
4524         (.cc.obj, .c.obj): New implicit rules.
4525         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
4526         (MDEFINES): Add EXEEXT and OBJEXT.
4527         * */Makefile.sub: s/.o/.$(OBJEXT)/.
4529 2002-08-22  Werner LEMBERG  <wl@gnu.org>
4531         * INSTALL: Mention texinfo 4.2 as a prerequisite.
4533 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
4535         * src/devices/grohtml/post-html.cc (colType): Make enum global to
4536         the file.
4537         (html_printer::update_min_max, html_printer::add_table_end): New
4538         methods.
4539         (html_printer::lookahead_for_tables): Use them.
4540         Reset page offset correctly.
4541         (html_printer::~html_printer): Add creation of creator comment up.
4543 2002-08-20  Werner LEMBERG  <wl@gnu.org>
4545         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
4546         * man/groff_tmac.man: Fix typos.
4547         * man/groff_font.man: Minor reordering.
4548         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
4550 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
4552         Avoid endless loops while scanning for tables.
4554         * src/devices/grohtml/post-html.cc (list::insert): Set
4555         ptr->right->left.
4556         (html_printer::next_horiz_pos): Add `text_glob' argument; update
4557         all callers.
4558         Return immediately if that argument is NULL.
4559         (html_printer::calc_nf): Don't test if `g' is NULL.
4560         (html_printer::lookahead_for_tables): Use
4561         `glyphs.move_right_get_data'.
4562         Don't test if `g' is NULL.
4564 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
4566         A better fix, replacing fix 2002-08-15, for increasing SIZE.
4568         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
4569         a pointer.
4570         (char_block::char_block): Allocate `buffer'.
4571         (char_buffer::add_string): Use it.
4573 2002-08-15  Werner LEMBERG  <wl@gnu.org>
4575         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
4576         src/devices/grodvi/grodvi.man: Document default line thickness.
4578 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
4580         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
4581         8192.
4583 2002-08-14  Werner LEMBERG  <wl@gnu.org>
4585         * doc/webpage.ms: Updated.
4587 2002-08-09  Werner LEMBERG  <wl@gnu.org>
4589         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
4590         unbreakable space.
4592 2002-08-08  Aaron Campbell  <aaron@monkey.org>
4594         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
4595         (&& -> &).
4597 2002-08-08  Werner LEMBERG  <wl@gnu.org>
4599         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
4600         tok.next().
4601         (read_gray): Ditto.
4602         Don't push back a space but a newline onto the stack.
4604 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
4606         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
4607         inadvertently.
4609         * src/devices/grohtml/post-html.cc (html_printer::end_font,
4610         html_printer::start_font): Handle them.
4611         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
4612         reset bold and tt.
4613         (html_text::do_bold): Don't reset italic and tt.
4614         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
4615         * font/devhtml/DESC.proto: Add those fonts.
4616         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
4618 2002-08-07  Werner LEMBERG  <wl@gnu.org>
4620         * MORE.STUFF: Added gpresent.
4622         * tmac/trace.tmac: Show nesting level by a corresponding amount of
4623         whitespace before printing the logging message.
4625 2002-07-31  Colin Watson  <cjwatson@debian.org>
4627         * src/devices/grohtml/html-table.cc (html_table::finish_row):
4628         Initialize `n' to zero.  This fixes a segfault on ARM.
4630 2002-07-30  Werner LEMBERG  <wl@gnu.org>
4632         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
4634 2002-07-29  Werner LEMBERG  <wl@gnu.org>
4636         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
4637         final semicolon.
4639 2002-07-28  Colin Watson  <cjwatson@debian.org>
4641         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
4642         `.ps'.
4643         (html_printer::html_printer): Initialize `pointsize'.
4645 2002-07-26  Werner LEMBERG  <wl@gnu.org>
4647         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
4648         gnu.png.
4649         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
4650         (gnu.eps): Add -rle switch to pnmtops.
4651         (distfiles): Add gnu.eps and gnu.png.
4653 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
4655         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
4656         Add `operator!='.
4658 2002-07-24  Werner LEMBERG  <wl@gnu.org>
4660         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
4661         ' \+' but '  *' for sed.
4662         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
4664 2002-07-23  Werner LEMBERG  <wl@gnu.org>
4666         * doc/groff.texinfo: Document `papersize' keyword.
4667         * NEWS, man/groff_font.man: Updated.
4669 2002-07-23  Colin Watson  <cjwatson@debian.org>
4671         Extend papersize keyword to accept more than a single entry.  The
4672         first valid will be used.
4674         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
4675         (font::scan_papersize): Really skip final newline.
4676         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
4678 2002-07-23  Werner LEMBERG  <wl@gnu.org>
4680         * configure.ac: Test for isatty.
4681         * configure: Regenerated.
4682         * src/include/posix.h: Check HAVE_ISATTY.
4683         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
4684         * src/utils/lookbib/lookbib.cc: Include posix.h.
4685         Don't declare isatty.
4687 2002-07-21  Werner LEMBERG  <wl@gnu.org>
4689         * NEWS: Add `output' request.
4691         * REVISION: Increased to 1.
4693 Version 1.18.0 released
4694 =======================
4696 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
4698         Allow internal glyph indices > 0xFF in grohtml for input characters.
4700         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
4701         as parameter.
4702         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
4703         Updated all callers.
4704         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
4705         (html_printer): Updated.
4707 2002-07-19  Werner LEMBERG  <wl@gnu.org>
4709         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
4710         * font/devutf8/R.proto: Adding some missing glyphs.
4711         * font/devutf8/NOTES: Updated.
4713         * tmac/dvi.tmac: Add more composite glyphs.
4714         * tmac/html.tmac: Updated.
4716         * man/groff_char.man: Add `sum' and `product' entities.
4718         * NEWS: Updated.
4720 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
4722         Improved table, tab, and indenting support.
4724         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
4725         string_iterator::suppress_newline_flag): Removed.  Updated all
4726         function which have used it.
4728         * src/roff/troff/env.cc: Include `input.h'.
4729         (environment::add_node): Accept 0 as parameter.
4730         (environment::add_html_tag): Add `force' parameter.
4731         Updated all callers.
4732         (environment::add_html_tag_tabs): Ditto.
4733         For the moment, support left-aligned tabs only.
4734         (environment::make_html_tag): New function.
4735         (fill, no_fill): Set .br html tag additionally.
4736         (environment::newline): Emit `eol.ce' or `eol' tag for html.
4737         (environment::add_html_tag_eol): Removed.
4738         (tab_stops::distance_to_next_tab): Add variant for handling 
4739         nextpos'.
4740         (environment::distance_to_next_tab): Ditto.
4741         Updated all callers.
4742         (environment::handle_tab): Handle tabs for html.
4743         
4744         * src/roff/troff/env.h: Updated.
4746         * src/roff/troff/div.cc: Updated all callers of
4747         `environment::add_html_tag'.
4749         * src/devices/grohtml/html-table.cc,
4750         src/devices/grohtml/html-table.h: New files.
4752         * src/devices/grohtml/html-text.cc (html_text): New members
4753         `blank_para' and `start_space'.
4754         (html_text::issue_tag): Don't emit TABLE_TAG.
4755         Handle indentation for PRE_TAG and P_TAG.
4756         (html_text::end_tag): Updated.
4757         (html_text::table_is_void, html_text::issue_table_begin,
4758         html_text::issue_table_end): Removed.
4759         (html_text::do_push): Simplified.
4760         [DEBUGGING]: Small fix.
4761         (html_text::push_para): Add new parameter for indentation; updated
4762         all callers.
4763         Handle PRE_TAG.
4764         (html_text::do_indent, html_text::do_table, html_text::done_table,
4765         html_text::is_in_table): Removed.
4766         (html_text::do_pre): Handle P_TAG also.
4767         (html_text::shutdown): Handle p->indent.
4768         (html_text::check_emit_text): Simplified.
4769         (html_text::do_emittext): Reset `blank_para'.
4770         (html_text::do_para): Add new parameter for indentation; updated
4771         all callers.
4772         (html_text::remove_indent): New function.
4773         (html_text::do_space): Handle verbatim text properly.
4774         (html_text::ever_emitted_text, html_text::starts_with_space,
4775         html_text::remove_para_align): New functions.
4776         (html_text::dump_stack_element, html_text::dump_stack): Updated.
4778         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
4779         Updated.
4781         * src/devices/grohtml/post-html.cc: Include html-table.h.
4782         (INDENTATION): Removed.
4783         (text_glob): Added many `is_<foo>' functions.
4784         Added table description `tab'.
4785         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
4786         member functions.
4787         (list): Add `insert' and `move_to' member functions.
4788         (page): Add `insert_tag' member function.
4789         (page::dump_page) [DEBUG_TABLES]: Improved.
4790         (html_printer): Add `table' and `max_linelength' elements.
4791         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
4792         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
4793         `remove_tabs', `remove_courier_tabs'.
4794         (html_printer::emit_raw): Handle indentation.
4795         (html_printer::do_center, html_printer::write_header): Updated.
4796         (html_printer::is_courier_until_eol): Check for tag.
4797         (html_printer::do_linelength): Handle max_linelength.
4798         (html_printer::do_page_offset, html_printer::do_indentation): Handle
4799         fill_on.
4800         (html_printer::do_tempindent): Updated.
4801         (html_printer::do_indentedparagraph): Removed.
4802         (html_printer::do_indent): Simplified.
4803         (html_printer::do_eol): Use `ever_emitted_text'.
4804         (html_printer::do_flush, html_printer::do_links): Don't call
4805         done_table.
4806         (html_printer::do_break): Handle end_tempindent.
4807         (html_printer::troff_tag): Get argument.
4808         Don't handle `.ip'.
4809         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
4810         (html_printer::flush_page): Call `lookahead_for_tables'.
4811         Don't call `done_table'.
4812         (html_printer::add_to_sbuf): Always call do_indent.
4814         * src/devices/grohtml/Makefile.sub: Updated.
4816         * tmac/an-old.tmac (TP): Don't handle html device specially.
4817         (an-do-tag-html): New function which will be used instead of
4818         `an-do-tag' if html device is used.
4820         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
4822         * tmac/s.tmac (@IP): Don't handle html device specially.
4823         (@IP-html): New function which will be used instead of `@IP' if
4824         html device is used.
4826         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
4827         is a hack which will eventually vanish again.
4828         (PIMG): Handle `-C' option correctly if not html.
4829         (HR): Use HTML-NS.
4831 2002-07-17  Werner LEMBERG  <wl@gnu.org>
4833         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
4835 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
4837         * contrib/pic2graph/pic2graph.*: Use convert(1).
4838         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
4840 2002-07-14  Bernd Warken  <bwarken@mayn.de>
4842         * tmac/groff_trace.man: New file.
4843         * tmac/Makefile.sub: Updated.
4844         * NEWS: Updated.
4846 2002-07-13  Werner LEMBERG  <wl@gnu.org>
4848         * src/roff/groff/groff.man: Add some cross references.
4850 2002-07-12  Werner LEMBERG  <wl@gnu.org>
4852         * src/roff/troff/input.cc (substring_request): Add warnings for
4853         string indices out of range.
4855 2002-07-11  Werner LEMBERG  <wl@gnu.org>
4857         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
4858         * font/devdvi/*EC: Regenerated.
4860 2002-07-10  Bernd Warken  <bwarken@mayn.de>
4862         * man/groff_char.man: Updated and extended.
4864 2002-07-10  Werner LEMBERG  <wl@gnu.org>
4866         * src/roff/troff/input.cc (length_macro): Renamed to...
4867         (length_request): This.
4868         Move call of `tok.next()' to the very end, otherwise the register
4869         value hasn't been updated yet.
4870         (init_input_requests): Updated.
4872 2002-07-09  Werner LEMBERG  <wl@gnu.org>
4874         * src/roff/troff/input.cc (substring_macro): Renamed to...
4875         (substring_request): This.
4876         (init_input_requests): Updated.
4877         * src/roff/troff/request.h: Updated.
4879 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
4881         * src/roff/grog/grog.sh: Fix typo.
4883 2002-07-08  Werner LEMBERG  <wl@gnu.org>
4885         * win32-diffs: Updated.
4887         Handle `papersize' keyword properly in DESC.
4889         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
4890         type.
4891         Updated all callers.
4892         * src/libs/libgroff/paper.cc: Add four more paper formats used by
4893         grolj4.
4894         * src/include/paper.h: Updated.
4896         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
4897         Other minor C syntax fixes.
4898         (papersize, paperlength, paperwidth): Renamed to `user_*'.
4899         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
4900         members.
4901         (lbp_printer::lbp_printer): Pass three arguments.
4902         Set paper dimensions properly.
4903         (make_printer, main): Updated.
4904         (handle_unknown_desc_command): Fix error messages.
4905         (main): Handle papersize keyword in DESC properly.
4907         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
4908         `user_paper_size'.
4909         (lbp_printer::lbp_printer): Pass an argument.
4910         Set paper_size properly.
4911         (handle_unknown_desc_command): Removed.
4912         (make_printer, main): Updated.
4913         * src/devices/grolj4/grolj4.man: Minor documentation fix.
4915         * man/groff_font.man, NEWS: Updated.
4917 2002-07-07  Werner LEMBERG  <wl@gnu.org>
4919         Integrated eqn2graph, contributed by Eric S. Raymond.
4921         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
4922         files.
4923         * Makefile.in, NEWS: Updated.
4925 2002-06-04  Werner LEMBERG  <wl@gnu.org>
4927         Changing the substring request to make it fit better with other
4928         string manipulation functions in other programming languages:
4929         Index 0 is now the first character in the string, and index -1
4930         indicates the last character.  Since this request didn't work
4931         properly anyway in the last release, it doesn't harm too much to
4932         change the syntax.
4934         * src/roff/troff/input.cc (substring_macro): Use loops to get
4935         the real string length (ignoring COMPATIBLE_SAVE and
4936         COMPATIBLE_RESTORE) and offsets.
4937         Implement change described above.
4939         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
4940         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
4942         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
4944 2002-06-03  Werner LEMBERG  <wl@gnu.org>
4946         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
4947         COMPATIBLE_RESTORE are completely ignored.
4949         * src/roff/troff/input.cc (char_list::set, char_list::get): New
4950         functions.
4951         (macro): `length' field renamed to `len'.
4952         Added new field `empty_macro' (1 if macro is empty), to be used
4953         instead of checking `len'.
4954         Updated all callers.
4955         (macro::empty): Updated.
4956         (macro::length, macro::set, macro::get): New functions.
4957         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4958         Set `empty_macro'.
4959         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
4960         COMPATIBLE_RESTORE pairs.
4961         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4962         * src/roff/troff/request.h: Updated.
4964         * doc/groff.texinfo: Document .chop's behaviour better.
4966 2002-06-02  Werner LEMBERG  <wl@gnu.org>
4968         * doc/pic.ms: Fix documentation for the addition of positions.
4970         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
4972 2002-06-29  Werner LEMBERG  <wl@gnu.org>
4974         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
4976         * src/roff/troff/input.cc (have_string_arg): New global variable.
4977         (read_mode): New enumeration.
4978         (read_escape_name): Use it.  Update all calls.
4979         (read_long_escape_name): Use it.  Update all calls.
4980         Set have_string_arg if appropriate.
4981         (get_char_for_escape_name): Add parameter for handling space
4982         character.
4983         (interpolate_string_with_args, decode_string_args): New functions.
4984         (get_copy, token::next): Call it if necessary.
4985         (interpolate_string): Fix error message.
4987         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
4988         Document it.
4990 2002-06-24  Bernd Warken  <bwarken@mayn.de>
4992         * man/groff_tmac.man: Updated and extended.
4994 2002-06-24  Werner LEMBERG  <wl@gnu.org>
4996         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
4998 2002-06-23  Werner LEMBERG  <wl@gnu.org>
5000         * doc/pic.ms: Improve documentation of composite block objects.
5002 2002-06-22  Werner LEMBERG  <wl@gnu.org>
5004         * src/roff/troff/input.cc (init_registers): Add three registers
5005         `seconds', `minutes', and `hours' to hold the current time.
5007         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5008         Updated.
5010 2002-06-20  Werner LEMBERG  <wl@gnu.org>
5012         Make \X accept both `\ ' and `\~', converting them to single space
5013         characters.
5015         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
5016         (token::unstretchable_space): New inline function.
5017         * src/roff/troff/input.cc (token::next, token::delimiter,
5018         token::description, token::add_to_node_list, token::process): Handle
5019         TOKEN_UNSTRETCHABLE_NODE.
5020         (encode_char): Handle tok.stretchable_space and
5021         tok.unstretchable_space.
5023         * NEWS, doc/groff.texinfo: Document it..
5025 2002-06-19  Werner LEMBERG  <wl@gnu.org>
5027         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
5029         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
5030         keyword to enable/disable SGR output.
5031         (tty_printer::change_fill_color): New function.
5032         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
5034         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
5035         call.
5037 2002-06-18  Werner LEMBERG  <wl@gnu.org>
5039         Add a `color' request and a `.color' register to control usage of
5040         colours.
5042         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
5043         (color_flag): This (which is the inverse).
5044         (activate_color): New function.
5045         (main, init_input_requests): Updated.
5046         * src/roff/troff/troff.h, src/roff/troff/node.cc
5047         (troff_output_file::fill_color, troff_output_file::glyph_color):
5048         Updated.
5050         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5051         Document the changes.
5053 2002-06-17  Colin Watson  <cjwatson@debian.org>
5055         Circumvent bug in autoconf 2.53 regarding top_builddir.
5057         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
5058         * Makefile.in, doc/Makefile.in:
5059         s/@top_builddir@/@groff_top_builddir@/.
5060         * configure: Regenerated (with autoconf 2.53).
5062 2002-06-17  Werner LEMBERG  <wl@gnu.org>
5064         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
5065         `paperwidth' and `paperlength' for the `papersize' keyword.
5067 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
5069         * src/devices/grops/grops.man: Add info about Type 42 fonts.
5071 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
5073         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
5074         html_printer::do_linelength, html_printer::do_pageoffset,
5075         html_printer::do_indentation, html_printer::do_tempindent,
5076         html_printer::do_break, html_printer::begin_page): Clear indented
5077         text.
5078         * tmac/html.tmac: Disable hyphenation.
5080 2002-06-15  Werner LEMBERG  <wl@gnu.org>
5082         Don't produce HTML files if utility programs are missing.
5084         * Makefile.in (make_html, make_install_html): New variables.
5085         (MDEFINES): Updated.
5087         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
5088         utility programs.
5089         * configure.ac: Use it.
5090         * configure: Regenerated.
5092         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
5093         (HTMLEXAMPLESFILES): This new variable.
5094         (EXAMPLESIMAGEFILES): Renamed to...
5095         (HTMLEXAMPLEIMAGEFILES): This.
5096         (CLEANADD): Add HTMLEXAMPLEFILES.
5097         (all): Use `make_html'.
5098         (html): New target.
5099         (install_data): Use `make_install_html'.
5100         Move html stuff to...
5101         (install_html): This new target.
5102         (uninstall_sub): Updated.
5104 2002-06-14  Bernd Warken  <bwarken@mayn.de>
5106         * src/roff/grog/Makefile.sub (grog): Renamed to...
5107         (grog.old): This.
5108         (grog): New rule to always install grog.sh as grog.
5110 2002-06-08  Bernd Warken  <bwarken@mayn.de>
5112         * src/roff/grog/grog.pl: Fix typo.
5114 2002-06-07  Werner LEMBERG  <wl@gnu.org>
5116         * doc/groff.texinfo: Add more info on .tr arguments.
5118 2002-06-05  Werner LEMBERG  <wl@gnu.org>
5120         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5122         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
5123         * configure: Regenerated.
5125 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5127         * src/roff/troff/symbol.cc (table_sizes): Add more values.
5129         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
5131 2002-06-04  Werner LEMBERG  <wl@gnu.org>
5133         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
5134         is not initialized at the time we need it in case `--prefix' hasn't
5135         been set.  Check for `ac_default_prefix' also.
5136         Test for `papersize' keyword also and generalize allowed whitespace.
5137         * configure: Regenerated.
5139         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
5140         `paperlength'.
5142         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
5143         with...
5144         (src_version, src_revision): New variables to avoid overwriting
5145         from parent make process.
5146         (version.cc): Updated.
5148         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
5149         (linebuf, linebufsize): New global variables.
5150         (sys_fatal): Use `fatal' to abort properly.
5151         (get_line): New function.
5152         (get_resolution): Use it.
5153         Improve error messages.
5154         (get_papersize): Check `papersize' also.
5155         Use `get_line'.
5156         Improve error messages.
5158 2002-06-03  Werner LEMBERG  <wl@gnu.org>
5160         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
5161         should be removed only if builddir is not srcdir.
5162         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
5163         (clean): Depend on `mostlyclean'.
5164         (distclean): Depend on `clean'.
5165         (realclean, extraclean): Depend on `distclean'.
5166         (.y.cc, .y.o): Simplified.  The output files are no longer written
5167         to srcdir but to builddir.
5168         * Makefile.in (MDEFINES): Add `version' and `revision'.
5169         (uninstall_dirs): Fix order of directories.
5170         * doc/Makefile.sub (version, revision): Removed.
5171         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
5172         Added `HTMLDOCFILES'.
5173         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
5174         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
5175         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
5176         as prefix.
5178         * doc/texinfo.tex (\authortt): New macro.
5179         (\shortcontt): Define.
5180         (\titlepage): Set \tt to \authortt while defining \authorfont.
5181         (\appendixbox): New macro.
5182         (\chapmacro, \appendixentry): Use \appendixbox to get even
5183         indentation for letters.
5184         (\summarycontents): Set \tt.
5185         (\internalpagesize): Add two arguments for real paper width and
5186         height as needed by pdfTeX.
5187         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
5188         Updated.
5189         (\tempdima, \tempdimb): New temporary dimensions.
5190         (\pagesizesyyy): Updated.
5192 2002-06-02  Werner LEMBERG  <wl@gnu.org>
5194         Adding a new keyword `papersize' to the DESC file format (similar
5195         but not completely identical to grolbp's extension).  grops now has
5196         a -p command line option to override `papersize'.  Finally, grolbp
5197         has been adapted to the new syntax.
5199         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
5200         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
5201         elements.
5202         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
5203         (CCSRCS): Add `paper.cc'.
5205         * src/include/font.h (font): Add `papersize' element.
5206         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
5207         (font::scan_papersize): New function.
5208         (font::load_desc): Use it for handling `papersize' keyword.
5209         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
5211         * src/devices/grops/ps.cc: Include paper.h.
5212         (user_paper_length): New global variable.
5213         (ps_printer): Use paper length as initializer.
5214         (make_printer): Updated.
5215         (main): Handle new `-p' option.
5216         * src/devices/grops/grops.man: Updated.
5218         * src/devices/grolbp/lbp.cc: Include paper.h.
5219         s/papersizes/lbp_papersizes/.
5220         (set_papersize): Use new `papersizes' array.
5221         (handle_unknown_desc_command): Don't handle `papersize'.
5222         (main): Use `font::scan_papersize' for handling `-p' option.
5223         * src/devices/grolbp/grolbp.man: Updated.
5225         * man/groff_font.man: Document `papersize'.
5226         * NEWS: Updated.
5228 2002-05-30  Werner LEMBERG  <wl@gnu.org>
5230         * src/devices/grops/TODO: Updated.
5231         * src/devices/grops/grops.man: More info on paper formats.
5232         * man/groff_font.man: Document `paperheight' and `paperwidth'.
5234 2002-05-29  Werner LEMBERG  <wl@gnu.org>
5236         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
5237         to list only if srcdir != currdir.
5238         (distfiles): New target.
5240         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
5241         (NOMAKEDIRS): New variable.
5242         (DISTDIRS): Use it.
5244 2002-05-26  Werner LEMBERG  <wl@gnu.org>
5246         Add .output request, similar to \! at top-level.
5248         * src/roff/troff/input.cc (transparent): Remove unused declaration.
5249         (output_request): New function.
5250         (init_input_requests): Add it.
5251         Sorted.
5252         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5253         Document it.
5255         * Makefile.in (MDEFINES): Add INSTALL_INFO.
5256         (prepare_examples): Fix typo.
5257         * doc/groff.texinfo (@direntry): Fix it.
5259 2002-05-25  Werner LEMBERG  <wl@gnu.org>
5261         Including the doc subdir into groff's Makefile system.
5263         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
5264         * configure.ac: Use it.
5265         Generate `doc/Makefile'.
5266         * configure: Regenerated.
5268         * Makefile.in (infodir, INSTALL_INFO): New variables.
5269         (MDEFINES, uninstall_dirs): Updated.
5270         (OTHERDIRS): Add `doc'.
5271         * Makefile.comm (CLEANDIRADD): New variable.
5272         (mostlyclean): Use it.
5274         * doc/Makefile.sub, doc/Makefile.in: New files.
5275         * doc/Makefile: Removed.
5277         * NEWS, INSTALL: Updated.
5279 2002-05-24  Werner LEMBERG  <wl@gnu.org>
5281         * doc/homepage.ms: Renamed to ...
5282         * doc/webpage.ms: This.
5283         Use `.NHR'.
5285 2002-05-23  Werner LEMBERG  <wl@gnu.org>
5287         Integrating the `mom' macro package, contributed by Peter Schaffter
5288         <df191@ncf.ca>.
5290         * contrib/mom/*: New subdirectory tree.
5291         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
5292         be used for documentation files.
5293         (MDEFINES, uninstall_dirs): Use them.
5294         (OTHERDIRS): Add contrib/mom.
5295         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
5296         @HTMLDOCDIR@.
5297         * MANIFEST, NEWS: Updated.
5299 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
5301         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
5302         if at outer level; at start-up we are at outer level.
5304         * src/roff/troff/input.cc (do_suppress): Implement it.
5305         Simplify \O[3].
5307         Add option -p to show progress information.
5308         pre-grohtml will now render only one page at a time, reducing the
5309         size of needed disk resources enormously.
5311         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
5312         (imagePageName): New global variable.
5313         (psPageName, show_progress, currentPageNo): New global variables.
5314         (html_system): Close saved stderr and stdout handles.
5315         (write_end_image): Accept a parameter to control \O escape.
5316         (write_start_image): Adapted to new \O meaning.
5317         (char_buffer::write_upto_newline): Updated.
5318         (createAllPages): Replaced with...
5319         (createPage): This new function to create a single page for images.
5320         It uses `psselect' from the psutils package.
5321         (removeAllPages): Removed.
5322         (createImage): Updated.
5323         Handle progress display.
5324         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
5325         (scanArguments): Add option -p.
5326         (makeTempFiles): Updated to create temp files for psPageName and
5327         imagePageName.
5328         (removeTempFiles): Removed.
5329         (main): Updated.
5331         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
5332         html_printer::write_header): Append `\0' to `buffer'.
5333         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
5334         (main): Handle -p.
5335         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
5336         Handle `text_emitted'.
5337         (html_text::table_is_void): Slightly rewritten.
5338         (stop): New external symbol.
5339         (html_text::do_push) [DEBUGGING]: Use it and simplify.
5340         (html_text::shutdown): Call `dump_stack'.
5341         (html_text::do_space): Rewritten.
5342         * src/devices/grohtml/grohtml.man: Document -p and the need of
5343         `psselect'.
5345         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
5346         new \O syntax.
5347         Call \O[0] if `ps4html' is active.
5348         * tmac/s.tmac (@EQ, @EN): Handle html better.
5349         (@TS, TE): Ditto.
5350         * tmac/html.tmac: Don't use black for background colour.
5352         * src/roff/troff/node.cc: Include `div.h'.
5353         (troff_output_file::really_print_line): Don't use `is_on'. 
5354         (troff_output_file::word_marker, troff_output_file::flush_tbuf
5355         troff_output_file::check_charinfo,
5356         troff_output_file::put_char_width, troff_output_file::put_char,
5357         troff_output_file::determine_line_limits, troff_output_file::draw,
5358         real_output_file::begin_page, glyph_color_node::tprintf,
5359         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
5360         Use `is_on'.
5361         (troff_output_file::really_on): Call `do_motion'.
5362         (suppress_node::tprint): Use `get_page_number' instead of `%'
5363         register.
5364         Call `reset_output_registers' conditionally on `is_on'.
5366         * doc/groff.texinfo: Document new syntax of \O.
5367         * NEWS, man/groff_diff.man: Updated.
5369 2002-05-22  Werner LEMBERG  <wl@gnu.org>
5371         * MORE.STUFF: Add info about David Frey's deroff implementation.
5372         Mention troff.org.
5374 2002-05-16  Werner LEMBERG  <wl@gnu.org>
5376         Pic's `with' attribute now accepts positions.
5378         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
5379         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
5380         conflicts.
5381         (object_spec): Add rule for `WITH' and `position'.
5382         (relative_path): Give `corner' the precedence of `CHOP'.
5383         * src/preproc/pic/object.h (path): New members `pos' and
5384         `is_position'.
5385         * src/preproc/pic/object.cc: Updated initializers of `path'.
5386         (path::follow): Handle `is_position'.
5388         * doc/pic.ms: Completely updated grammar description.
5389         Many typographical improvements.
5391 2002-05-15  Werner LEMBERG  <wl@gnu.org>
5393         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
5394         code of x in range 0-127) also.
5395         * doc/groff.texinfo, man/groff_diff.man: Updated.
5397         Added keywords `north', `south', `east', and `west' for corners
5398         in pic.
5400         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
5401         and WEST.
5402         (yylex): Handle them.
5403         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
5404         (corner): Handle them.
5406 2002-05-14  Werner LEMBERG  <wl@gnu.org>
5408         * src/devices/grops/grops.man: Clarify handling of `download' file.
5410 2002-05-11  Werner LEMBERG  <wl@gnu.org>
5412         Adding `warnscale' and `spreadwarn' requests, based on a patch from
5413         Jeffrey Friedl <jfriedl@yahoo.com>.
5415         * src/roff/troff/input.cc (spread_limit, warn_scale,
5416         warn_scaling_indicator): New global variables.
5417         (warnscale_request, spreadwarn_requests): New functions.
5418         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
5419         (init_input_requests): Updated.
5420         (error_type): Add `OUTPUT_WARNING'.
5421         (do_error): Handle it.
5422         (output_warning): New warning function which shows output location.
5423         * src/roff/troff/env.h (spread_limit): New external variable.
5424         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
5425         `output_warning'.
5426         (distribute_space): Emit warning if added space is larger than
5427         `spread_limit'.
5428         (environment::possibly_break_line): Emit warning if a line can't
5429         be adjusted on both sides.
5431         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
5433 2002-05-08  Werner LEMBERG  <wl@gnu.org>
5435         * src/roff/troff/node.cc (special_node::special_node): Use
5436         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
5437         \X''\% crashes, for example.
5439         * doc/groff.texinfo: Document \! and \? used at top-level.
5441 2002-05-06  Werner LEMBERG  <wl@gnu.org>
5443         * src/preproc/pic/pic.man: Fix some keyword syntax.
5444         Other minor typographical fixes.
5446         * src/roff/groff/groff.man: Fix typos.
5448 2002-05-04  Werner LEMBERG  <wl@gnu.org>
5450         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
5451         (ShortOpt[]): This to avoid problems with refer.
5453         * doc/pic.ms: Fix typo.
5454         Fix pic grammar description.
5456         * tmac/an-old.tmac (ne): Use de1, not de.
5458 2002-05-03  Werner LEMBERG  <wl@gnu.org>
5460         * doc/groff.texinfo: Finished separation of glyphs and characters.
5461         Don't use the string `Appendix' for appendix headers (both in
5462         the text and the table of contents).
5463         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
5464         directories.
5466         Use registers LL and LT (similar to -ms) for controlling the
5467         length of title and line, respectively, in the -man and -mdoc
5468         macro packages.
5470         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
5471         (doc-setup-page-layout): Use \n[LL] and \n[LT].
5472         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
5473         (TH): Use \n[LL].
5474         (an-header, an-p-footer): Use \n[LT].
5475         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
5476         doc/groff.texinfo: Document it.
5478 2002-05-02  Werner LEMBERG  <wl@gnu.org>
5480         * doc/fdl.texi: New file.
5481         * doc/groff.texinfo: Include it.
5482         Define and use @copying.
5483         Starting with separating glyph, symbol, and character.
5485 2002-04-27  Werner LEMBERG  <wl@gnu.org>
5487         * Makefile.in (EXEEXT): Set it.
5488         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
5489         programs.
5491         * src/include/nonposix.h: Define GS_NAME.
5492         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
5494         Some preliminary changes for EMX support under OS/2.
5496         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
5497         __EMX__ similar to __MSDOS__.
5498         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
5500 2002-04-25  Werner LEMBERG  <wl@gnu.org>
5502         * doc/groff.texinfo: Integrated groff_out.man.
5503         Some macro fixes.
5505 2002-04-23  Werner LEMBERG  <wl@gnu.org>
5507         * man/groff_out.man: Minor fixes.
5509 2002-04-23  Werner LEMBERG  <wl@gnu.org>
5511         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
5512         correct page references.
5513         Fixed many index entries.
5515 2002-04-23  Bernd Warken  <bwarken@mayn.de>
5517         * man/roff.man: Enlarged.
5519 2002-04-22  Werner LEMBERG  <wl@gnu.org>
5521         * doc/groff.texinfo: More examples, other fixes.
5523 2002-04-20  Werner LEMBERG  <wl@gnu.org>
5525         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
5526         will now form a chain, e.g.
5528           .pi foo
5529           .pi bar
5531         is now the same as
5533           .pi foo | bar
5535         This is for compatibility with plan 9's troff.
5537         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
5538         with UNIX troff.
5539         * NEWS: Updated.
5541         * doc/groff.texinfo: Add documentation of remaining requests and
5542         registers.
5544 2002-04-19  Werner LEMBERG  <wl@gnu.org>
5546         * doc/groff.texinfo: Add documentation of remaining escapes.
5548         * font/devdvi/generate/tc.map: Remove entry for `sr'.
5549         * font/devdvi/*TC: Regenerated.
5551 2002-04-18  Werner LEMBERG  <wl@gnu.org>
5553         * src/roff/troff/input.cc (token::next): Make \H behave consistently
5554         if not in compatibility mode, i.e., increment relative to the
5555         previous height.
5556         * doc/groff.texinfo: Updated accordingly.
5558 2002-04-17  Werner LEMBERG  <wl@gnu.org>
5560         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
5562 2002-04-16  Bernd Warken  <bwarken@mayn.de>
5564         * src/roff/groff/groff.man: Improve documentation of -P option.
5565         Other minor fixes.
5567 2002-04-15  Werner LEMBERG  <wl@gnu.org>
5569         Add new escape \F to switch font family.
5571         * src/roff/troff/input.cc (token::next): Handle \F.
5572         * src/roff/troff/env.cc (environment::set_family): Handle
5573         `interrupted' flag.
5574         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5575         Document it.
5577 2002-04-14  Werner LEMBERG  <wl@gnu.org>
5579         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
5580         spaces in tags.
5582 2002-04-13  Werner LEMBERG  <wl@gnu.org>
5584         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
5585         \m[] and \M[], respectively.
5587         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
5588         (symbol::symbol): Handle NULL string and empty string differently.
5589         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
5590         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
5591         Add optional parameter.
5592         Updated calling functions.
5593         (get_copy, do_glyph_color, do_fill_color, token::next): Use
5594         `symbol::is_empty'.
5595         * src/roff/troff/env.cc (environment::set_font): Ditto.
5597         * src/preproc/pic/troff.cc (troff_output::set_fill,
5598         troff_output::reset_color: Updated.
5600         * tmac/www.tmac: Updated.
5602         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
5603         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
5604         Updated.
5606         * tmac/Xps.tmac: Remove some redundant code.
5608         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
5609         tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
5610         man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
5611         \f[].
5613 2002-04-13  Bernd Warken  <bwarken@mayn.de>
5615         * src/include/printer.h, src/libs/libdriver/printer.cc
5616         (printer::change_fill_color): New member function.
5617         * src/libs/libdriver/input.cc (parse_D_command): Use it.
5619 2002-04-12  Werner LEMBERG  <wl@gnu.org>
5621         * doc/groff.texinfo: Completed pass on gtroff reference.
5623 2002-04-11  Werner LEMBERG  <wl@gnu.org>
5625         * doc/groff.texinfo: More fixes.
5627 2002-04-11  Bernd Warken  <bwarken@mayn.de>
5629         * src/include/color.h: Decorate with `const'.
5630         Use `size_t'.
5631         Include `stddef.h'.
5632         * src/libs/libgroff.color.cc: Decorate with `const'.
5633         Use `size_t'.
5634         (color::color): Initialize members.
5635         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
5636         command according to the documentation.
5638         * man/groff_out.man: Updated.
5639         Minor fixes.
5641 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
5643         * src/preproc/html/pre-html.cc (write_start_image): Remove
5644         redundant output.
5645         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
5647         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
5648         \C'hy' caused an assertion failure.
5650         * src/roff/troff/env.cc (environment::environment): Initialize
5651         `emitted_node'.
5652         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
5654 2002-04-10  Werner LEMBERG  <wl@gnu.org>
5656         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
5657         Document pvs request and .pvs register.
5659 2002-04-09  Werner LEMBERG  <wl@gnu.org>
5661         * doc/groff.texinfo: Improve and fix documentation of diversions
5662         and environments.
5664 2002-04-08  Werner LEMBERG  <wl@gnu.org>
5666         * doc/groff.texinfo: Fix documentation of drawing functions.
5667         Other minor fixes.
5669 2002-04-07  Werner LEMBERG  <wl@gnu.org>
5671         * doc/groff.texinfo: Better documentation of double quotes as
5672         arguments.
5673         Other minor fixes.
5675 2002-04-06  Werner LEMBERG  <wl@gnu.org>
5677         * man/groff_font.man: Document names of special characters better.
5678         * doc/groff.texinfo: Minor improvements.
5680         * tmac/lbp.tmac: Load latin1.tmac.
5681         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
5683         * font/devX*/*: Regenerated (all chars > 0x80 removed).
5685 2002-04-05  Werner LEMBERG  <wl@gnu.org>
5687         * tmac/tty.tmac: Don't use shc request.
5688         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
5689         * NEWS: Updated.
5691         * man/groff_diff.man: Minor fixes.
5693         * font/devlbp/*: Remove all `charXXX' entities.
5695         * src/libs/libgroff/font.cc (font::~font): Deallocate
5696         `special_device_coding'.
5697         (font::load): Use `new' for allocating `special_device_coding'.
5698         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
5699         Removed unused member.
5701 2002-04-05  Werner LEMBERG  <wl@gnu.org>
5703         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
5704         (resource_manager::do_begin_binary,
5705         resource_manager::do_begin_data): Use it.
5707         * doc/texinfo.tex: Updated to version 4.2.
5709         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
5710         (token::zero_width_break): New inline function.
5711         * src/roff/troff/input.cc (token::next): Use it.
5712         (token::description): Updated.
5713         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
5714         (token::add_to_node_list, token::process): Use it.
5715         * NEWS, doc/groff.texinfo: Updated.
5717         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
5718         * tmac/tty.tmac: Add missing backslash.
5720 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
5722         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
5723         `.ps' register instead of `.s' to handle fractional point sizes.
5724         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
5725         limit_box::output): Ditto.
5726         * src/preproc/eqn/other.cc (size_box::compute_metrics,
5727         size_box::output): Ditto.
5728         * src/preproc/eqn/over.cc (over_box::compute_metrics,
5729         over_box::output): Ditto.
5730         * src/preproc/eqn/script.cc (script_box::compute_metrics,
5731         script_box::output): Ditto.
5732         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
5733         sqrt_box::output): Ditto.
5735 2002-04-03  Michael Selway  <mas@ssl.co.uk>
5737         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
5738         Fix typo.
5740 2002-04-03  Werner LEMBERG  <wl@gnu.org>
5742         * doc/homepage.ms: Reduce title size.
5743         * doc/groff.texinfo: Fix documentation of .t register.
5744         Fix handling of colon.
5745         Fix `\' vs. `\\'.
5747         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
5748         only if page length is positive to avoid a loop.
5750         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
5751         tbl.
5753 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
5755         * src/include/nonposix.h, src/roff/groff/pipeline.c:
5756         s/__CYGWIN32__/__CYGWIN__/.
5758 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
5760         * doc/gnu.xpm: New image contributed by Emily Mulley.
5761         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
5762         (homepage.html): Be dependent on gnu.eps.
5763         * doc/homepage.ms: Updated to new image.
5765         * src/devices/grohtml/post-html.cc (html_printer): New member
5766         `sbuf_prev_hpos'.
5767         (html_printer::flush_sbuf, html_printer::set_char): Set it.
5768         (html_printer::sbuf_continuation): Use it.
5770 2002-03-28  Werner LEMBERG  <wl@gnu.org>
5772         * src/libs/libgroff/getopt.c: Updated to latest version.
5774         * tmac/README: More on hyphen.tex license.
5776 2002-03-26  Larry Kollar  <kollar@alltel.net>
5778         * doc/groff.texinfo: Add documentation of most missing requests.
5780 2002-03-25  Werner LEMBERG  <wl@gnu.org>
5782         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
5783         of `+-', `mu', and `di', respectively.
5785         * font/devascii/R.proto, font/devutf8/R.proto,
5786         font/devlatin1/R.proto, font/devhtml/R.proto,
5787         font/devcp1047/R.proto, font/devlpb/*: Add them.
5788         * font/devps/generate/textmap: Ditto.
5789         * font/devps/*: Regenerated.
5790         * font/devlj4/generate/text.map: Add them.
5791         * font/devlj4/*: Regenerated.
5792         * font/devdvi/generate/tc.map: Use them.
5793         * font/devdvi/generate/texsy.map: Add them.
5794         * font/devdvi/*: Regenerated.
5795         * font/devX*/*: Regenerated.
5797         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
5798         tmac/tty-char.tmac: Updated.
5800         * NEWS, man/groff_char.man: Updated.
5802 2002-03-24  Werner LEMBERG  <wl@gnu.org>
5804         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
5805         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
5806         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
5807         we use `.fchar' in dvi.tmac.
5808         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
5809         * tmac/Xps.tmac: Simplify some char definitions.
5810         Add definition for \[f/].
5811         * man/groff_char.man: Updated for new X.tmac.
5813         * tmac/README: New file.
5815 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
5817         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
5818         internal .y.o rule took precendence over the .y.cc rule, compiling
5819         the yacc files with gcc instead of g++.
5821 2002-03-23  Werner LEMBERG  <wl@gnu.org>
5823         * tmac/dvi.tmac: Add replacement font for `CB'.
5825         * tmac/doc.tmac: s/request/macro/ in messages.
5826         (doc-generic-macro): Improve error message.
5827         * tmac/groff_mdoc.man: Minor improvements.
5829 2002-03-22  Werner LEMBERG  <wl@gnu.org>
5831         * doc/groff.texinfo: Document possible conflict between `tr' and
5832         `char' requests.
5834 2002-03-21  Werner LEMBERG  <wl@gnu.org>
5836         Improve handling of hyphenation patterns.  It is now possible to
5837         use most of TeX's pattern files unmodified.  To make the process
5838         more flexible, a new request `hpfcode' has been added which
5839         provides a character code mapping for the `hpf' request.  See
5840         comment before hpf_getc() for more details.
5842         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
5843         functions.
5844         (read_patterns_file): Additional parameter for exception dictionary.
5845         Extended to recognize \pattern, \hyphenation, and \endinput.
5846         (do_hyphenation_patterns_file): Updated.
5847         * src/roff/troff/env.h (hpf_code_table): New extern.
5849         * src/roff/troff/input.cc (hpf_code_table): New array.
5850         (init_hpf_code_table, hyphenation_patterns_file_code): New
5851         functions.
5852         (hyphenation_code): Handle translation from `trin' correctly.
5853         (main, init_input_requests): Updated.
5854         (charinfo::set_translation): Handle hyphenation code also.
5856         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
5857         inline function.
5859         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
5860         char' is used for offsets in hyphenation exceptions.
5862         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
5864         * NEWS, man/groff_diff.man, man/groff.man: Document it.
5866 2002-03-20  Larry Kollar  <kollar@alltel.net>
5868         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
5869         requests.
5871 2002-03-18  Werner LEMBERG  <wl@gnu.org>
5873         * tmac/html.tmac: Fix serious typo.
5875 2002-03-17  Larry Kollar  <kollar@alltel.net>
5877         * doc/groff.texinfo: Add documentation for `writec' request.
5879 2002-03-17  Werner LEMBERG  <wl@gnu.org>
5881         Added request `hpfa' to append hyphenation patterns.
5883         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
5884         parameter `append'.
5885         (hyphenation_patterns_file): Renamed to...
5886         (do_hyphenation_patterns_file): This.
5887         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
5888         functions.
5889         (init_hyphen_requests): Updated.
5890         * NEWS, man/groff.man, man/groff_diff.man: Document it.
5892 2002-03-16  Werner LEMBERG  <wl@gnu.org>
5894         Added request `writec' in analogy to `tmc'.
5896         * src/roff/troff/input.cc (write_request): Renamed to...
5897         (do_write_request): This.
5898         Added one parameter.
5899         (write_request, write_request_continue): New functions.
5900         (init_input_requests): Updated.
5901         * NEWS, man/groff.man, man/groff_diff.man: Document it.
5903         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
5904         5-10000pt.
5905         * NEWS: Document it.
5907 2002-03-15  Werner LEMBERG  <wl@gnu.org>
5909         * man/groff.man: Add writem request.
5911         Add request `trin' (translate input) to make `.asciify' work
5912         correctly.  This is necessary since `charXXX' entity names are no
5913         longer hardcoded in font definition files.
5915         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
5916         `translate_input' members.
5917         (charinfo::set_asciify_code, charinfo::get_asciify_code,
5918         charinfo::set_translation_input): New methods.
5919         (charinfo::set_translation): Add third argument.
5920         * src/roff/troff/input.cc (charinfo:set_translation): Set
5921         `asciify_code'.
5922         (do_translate): Add second argument.
5923         (translate_input): New function.
5924         (init_input_requests): Updated.
5925         * src/roff/troff/node.cc (glyph_node::asciify,
5926         composite_node::asciify): Use `get_asciify_code'.
5928         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
5930         * NEWS, man/groff.man, man/groff_diff.man: Updated.
5932 2002-03-14  Larry Kollar  <kollar@alltel.net>
5934         * doc/groff.texinfo: Improve documentation of .RS and .RE.
5936 2002-03-14  Werner LEMBERG  <wl@gnu.org>
5938         Add a new request `sizes' similar to the `sizes' command in DESC
5939         files.
5941         * src/roff/troff/env.cc (override_sizes): New function.
5942         (init_env_requests): Use it.
5943         * src/roff/troff/token.h: Export `read_string'.
5944         * NEWS, man/groff_diff.man, man/groff.man: Document it.
5946 2002-03-12  Werner LEMBERG  <wl@gnu.org>
5948         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
5950 2002-03-10  Werner LEMBERG  <wl@gnu.org>
5952         * tmac/pspic.tmac: Add support for -Tdvi.
5953         * tmac/dvi.tmac: Include pspic.tmac.
5954         * src/devices/grodvi/grodvi.man: Document it.
5955         * NEWS: Updated.
5957         * font/devlj4/generate/Makefile: Fix URL of metric files.
5959 2002-03-09  Werner LEMBERG  <wl@gnu.org>
5961         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
5963 2002-03-09  Larry Kollar  <kollar@alltel.net>
5965         * tmac/groff_ms.man: Add documentation for RS and RE macros.
5967 2002-03-08  Werner LEMBERG  <wl@gnu.org>
5969         * doc/groff.texinfo: Fixes for texinfo 4.1.
5971 2002-03-07  Werner LEMBERG  <wl@gnu.org>
5973         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
5974         included.
5975         Handle CYGWIN properly.
5977 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
5979         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
5980         * tmac/lbp.tmac: Add some font translations.
5982 2002-03-02  Werner LEMBERG  <wl@gnu.org>
5984         * font/devcp1047/R.proto, font/devlatin1/R.proto,
5985         font/devhtml/R.proto: Remove `charXXX'  entries.
5986         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
5987         where appropriate.
5989         * font/devlj4/generate/text.map: Remove `charXXX' entries.
5990         * font/devlj4/*: Regenerated all font definition files.
5991         * tmac/lj4.tmac: Load latin1.tmac.
5993         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
5994         from 2000-06-17: LJ4 metric files are *not* text files.
5996         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
5997         register to test for EBCDIC.
5999 2002-03-01  Werner LEMBERG  <wl@gnu.org>
6001         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
6002         files (as grops already does).
6003         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
6004         files.
6005         * src/devices/grops/grops.man: Document comment lines in encoding
6006         files.
6008         * tmac/cp1047.tmac: New file.
6009         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
6010         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
6011         * tmac/Makefile.sub (NORMALFILES): Updated.
6013         * tmac/ec.tmac: Don't load latin1.tmac again.
6015         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
6016         font/devps/generate/dingbats.map,
6017         font/devps/generate/dingbats.rmap, font/devps/text.enc,
6018         font/devps/generate/Makefile (symbolmap): Add header comment.
6019         * font/devps/generate/textmap: Ditto.
6020         Remove `charXXX' entries.
6021         * font/devps/symbolmap: Regenerated.
6022         * font/devps/*: Regenerated all font definition files.
6024 2002-02-28  Werner LEMBERG  <wl@gnu.org>
6026         Add color support to grodvi (for drawing colors are currently
6027         translated to gray values).
6029         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
6030         (dvi_printer): Add `cur_color' member.
6031         (dvi_printer::set_color): New function.
6032         (draw_dvi_printer): Remove `fill'.
6033         (draw_dvi_printer::fill_next): Pass environment as parameter.
6034         Update code for new color support translated to gray.
6035         (dvi_printer::set_char): Updated.
6036         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
6037         changes crossing the page border.
6038         (dvi_printer::draw): Updated.
6039         Remove cases `f' and `F'.
6040         * tmac/dvi.tmac: Add color definitions.
6041         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6043         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
6044         used incorrectly.
6046         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
6047         versions of autoconf.
6048         * configure: Updated.
6050         * doc/homepage.ms: Use `.blm'.
6051         * tmac/www.tmac (www-depth): New auxiliary variable.
6052         (www-pop-level): Don't issue HTML tag.
6053         (ULS, ULE, LI): Use absolute indentation.
6055         * src/devices/grops/ps.cc (ps_printer::begin_page,
6056         ps_printer::end_page): Switch forth and back to default color while
6057         starting a new page.
6059 2002-02-27  Werner LEMBERG  <wl@gnu.org>
6061         Add EC and TC fonts to devdvi.
6063         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
6064         * font/devdvi/generate/cork.map: Renamed to...
6065         * font/devdvi/generate/ec.map: This.
6066         Remove entry for `aq'.
6067         * font/devdvi/generate/tc.map: New file.
6068         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
6069         EC and TC fonts.
6070         (FONTS): Updated.
6071         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
6072         * font/devdvi/Makefile.sub (DEVFILES): Updated.
6073         * tmac/ec.tmac: New file.
6074         * tmac/Makefile.sub (NORMALFILES): Updated.
6075         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6076         * man/groff_char.man: Check `ECFONTS' register.
6078         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
6080 2002-02-26  Werner LEMBERG  <wl@gnu.org>
6082         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
6083         * font/devdvi/generate/cork.map: Add 'y and 'Y.
6084         * font/devdvi/*: Updated.
6085         * tmac/dvi.tmac: Formatting.
6087         Add font `HBI' for the dvi output.
6088         Add support for font families `T' and `H'.
6090         * font/devdvi/HBI: New file.
6091         * font/devdvi/B: Renamed to ...
6092         * font/devdvi/TB: This.
6093         * font/devdvi/BI: Renamed to ...
6094         * font/devdvi/TBI: This.
6095         * font/devdvi/I: Renamed to ...
6096         * font/devdvi/TI: This.
6097         * font/devdvi/R: Renamed to ...
6098         * font/devdvi/TR: This.
6099         * font/devdvi/H: Renamed to ...
6100         * font/devdvi/HR: This.
6101         * font/devdvi/Makefile.sub (DEVFILES): Updated.
6102         * font/devdvi/generate/Makefile (HBI): New rule.
6103         (FONTS): Updated.
6104         (R, I, B, BI, H): Renamed to ...
6105         (TR, TI, TB, TBI, HR): This, respectively.
6106         (srcdir): Fixed.
6107         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6108         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
6109         Add `styles' and `family' keywords.
6110         * tmac/dvi.tmac: Alias `H' to `HR'.
6111         Add some fspecial requests for italic fonts.
6112         Add TR and TI as special.
6113         Add support for `_' with font CWI.
6115         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
6116         operator `:'.  Until now, the expression `0:1' would return 2
6117         instead of 1.
6119 2002-02-25  Werner LEMBERG  <wl@gnu.org>
6121         * man/groff_char.man: Added some missing PS glyph names (from the
6122         Adobe Glyph List).
6123         * font/devps/generate/textmap, font/devps/symbolmap: Add
6124         `arrowupdn'.
6126         * doc/groff.texinfo: Minor additions and fixes.
6127         * man/groff_diff.man: Remove documentation of fp request.  This
6128         is already covered in the original troff manual.
6129         Updated to be consistent with other doc files.
6130         * NEWS: Updated.
6132 2002-02-24  Werner LEMBERG  <wl@gnu.org>
6134         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
6135         TTYDEVDIRS.
6136         Define new variable OTHERDEVDIRS (containing `font/devlj4
6137         font/devlbp' if not EBCDIC).
6138         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
6139         (OTHERDEVDIRS): New variable.
6140         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
6141         * configure: Regenerated.
6143         * NEWS, src/devices/grotty/grotty.man: Updated.
6145 2002-02-23  Werner LEMBERG  <wl@gnu.org>
6147         * src/roff/troff/input.cc (do_overstrike, do_bracket,
6148         get_line_arg): Honour input level.
6150         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
6152         * font/*/*: Implement it in all font files.
6153         * font/devps/generate/textmap, font/devps/generate/symbolchars,
6154         * font/devps/symbolmap: Updated.
6155         * font/devlj4/generate/text.map: Updated.
6156         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
6157         * font/devdvi/generate/texmi.map: Updated.
6159         * font/devutf8/R.proto: Remove all `charXXX' entries.
6160         * font/devutf8/NOTES: Updated.
6162         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
6163         version 4.1.0.
6165         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
6167         * NEWS, man/groff_char.man: Updated.
6169 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
6171         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
6173 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6175         * src/roff/grog/grog.pl: Fix computation of $refer.
6177 2002-02-19  Werner LEMBERG  <wl@gnu.org>
6179         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
6180         `snprintf' and `vsnprintf'.
6182         * src/include/htmlindicate.h: Renamed to...
6183         * src/include/htmlhint.h: This.
6184         * src/include/Makefile.sub: Updated.
6185         * src/preproc/eqn/main.cc: Updated.
6187 2002-02-18  Werner LEMBERG  <wl@gnu.org>
6189         * man/roff.man, man/groff_out.man, man/groff.man,
6190         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
6191         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
6193         * win32-diffs: Updated.
6195 2002-02-17  Werner LEMBERG  <wl@gnu.org>
6197         * doc/Makefile (clean): Add *.eps.
6198         (MEMACROS): Removed.
6199         (TFLAG): New variable.
6200         (TROFF): Use it.
6201         Add -ww.
6202         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
6203         (.me.dit): Fixed.
6204         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
6206         * tmac/www.tmac: Use dummy diversion while resetting and disabling
6207         `.tl'.
6208         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
6209         unstripped.
6210         * src/roff/troff/troff.man: Fix order of parameter description.
6212         * NEWS: Updated.
6214 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
6216         Simplify image handling for grohtml.
6217         Fix <p> bug.
6219         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
6220         comment out.
6221         (html_text::dump_stack): Don't emit newline while debugging.
6222         (html_text::do_push) [DEBUGGING]: Print more info.
6223         (html_text::check_emit_text): Fix handling of <p>.
6224         * src/devices/grohtml/html.h: Updated.
6225         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
6226         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
6227         send its data to stderr also.
6228         Update all callers.
6229         (simple_output::space_or_newline) [DEBUGGING]: Removed.
6230         * src/devices/grohtml/post-html.cc (html_printer::do_links,
6231         html_printer::html_printer): Remove `DEBUGGING' conditionals.
6233         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
6234         Removed.
6235         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
6236         is_inline_image): Removed.
6237         (html_begin_suppress, html_end_suppress): Don't take a parameter.
6238         (graphic_start, graphic_end): Removed.
6239         * src/include/htmlindicate.h: Updated.
6240         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
6241         (macroset_template): New global variable.
6242         (makeFileName): Use `macroset_template'.
6243         (write_end_image): Don't take a parameter.
6244         Don't emit newline.
6245         (write_start_image: Don't emit newline.
6246         (char_buffer::write_upto_newline): Updated.
6247         (char_buffer::skip_to_newline): Renamed to ...
6248         (char_buffer::skip_until_newline): This.
6249         Fix code.
6250         (char_buffer::write_file_troff, char_buffer::write_file_html):
6251         Simplified.
6252         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
6253         (removeAllPages): Remove `DEBUGGING' conditionals.
6254         (addRegDef, dump_args): New functions.
6255         (char_buffer::do_html, char_buffer::do_image): Handle
6256         `www-image-template' command line variable.
6257         Add more debugging code.
6258         (addps4html): Removed.
6259         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
6261         * src/preproc/eqn/main.cc: Include `ctype.h'.
6262         (suppress_html): Removed.
6263         (do_file): Updated.
6264         (inline_equation): Use `html_begin_suppress' and
6265         `html_end_suppress'.
6266         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
6267         (troff_output::start_picture, troff_output::finish_picture):
6268         Updated.
6269         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
6270         (process_input_file): Updated.
6272         * src/roff/troff/div.cc (page_number): Set page number only if the
6273         `ps4html' register isn't defined.
6274         * src/roff/troff/input.cc (image_no): New external variable.
6275         (do_suppress): Use it.
6276         * src/roff/troff/node.h (suppress_node::image_id): New member.
6277         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
6278         (suppress_node::suppress_node): Initialize `image_id' member.
6279         (suppress_node::same): Handle `image_id' also.
6280         (suppress_node::copy): Updated.
6281         (last_image_id): New global variable.
6282         (suppress_node::tprint): Use it.
6284         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
6285         HTML-IMAGE-END.
6286         * tmac/pspic.mac (PSPIC): Fix html support.
6287         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
6288         * tmac/www.tmac (www-image-template): Set up.
6289         (HTMLINDEX): Renamed to...
6290         (HX): This.
6291         (BODYCOLOR): Renamed to...
6292         (BCL): This.
6293         (BACKGROUND): Renamed to...
6294         (BGIMG): This.
6295         (URL): Change order of parameters for consistency.
6296         (MAILTO): Renamed to...
6297         (MTO): This.
6298         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
6299         (IMG, PIMG, MPIMG): This.
6300         (HTML-H-BEGIN, HTML-H-END): Renamed to...
6301         (HnS, HnE): This.
6302         (LINKS): Renamed to...
6303         (LK): This.
6304         (LINE): Renamed to...
6305         (HR): This.
6306         (NO-AUTO-RULE): Renamed to...
6307         (NHR): This.
6308         (HTML-TL): Renamed to...
6309         (HTL): This.
6310         (UL-BEGIN, UL-END): Renamed to...
6311         (ULS, ULE): This.
6312         (DROPCAP): Renamed to...
6313         (DC): This.
6314         (TS, TE, EQ, EN): Provide default definitions.
6315         (www-make-unique-name): Updated.
6316         (HTML-IMAGE-INLINE): Fix typo.
6317         * tmac/groff_www.man: Updated.
6319         * doc/Makefile (homepage.html): Add option -r to grohtml.
6320         Use shortened image name.
6321         * doc/groff.texinfo: Updated info on grohtml strings and macros.
6322         * doc/homepage.ms: Updated and extended.
6324 2002-02-14  Werner LEMBERG  <wl@gnu.org>
6326         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
6328         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
6329         SGR_BACK_DEFAULT_COLOR): Replaced with ...
6330         (tty_printer::put_color): Use it.
6331         (ttr_printer::end_page): Simplify.
6333 2002-02-13  Werner LEMBERG  <wl@gnu.org>
6335         * tmac/groff_tmac.man: Moved to...
6336         * man/groff_tmac.man: This place.
6337         * tmac/Makefile.sub, man/Makefile.sub: Updated.
6339 2002-02-12  Werner LEMBERG  <wl@gnu.org>
6341         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
6342         $(COMPILE.c) to not include groff's assert.h.
6344         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
6345         variable.
6346         * NEWS, src/drivers/grotty/grotty.man: Document it.
6348 2002-02-11  Werner LEMBERG  <wl@gnu.org>
6350         * src/libs/snprintf/snprintf.c: Updated to latest version
6351         (2002-02-11).
6353         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
6354         test whether there is `.]' also.
6355         Don't check for spaces after `.['.
6356         * src/roff/grog/grog.sh: Do the same.
6358 2002-02-10  Werner LEMBERG  <wl@gnu.org>
6360         Illegal -> Invalid.
6362         * src/libs/libgroff/illegal.cc: Renamed to ...
6363         * src/libs/libgroff/invalid.cc: This.
6364         (illegal_char_table): Renamed to ...
6365         (invalid_char_table): This.
6366         * src/libs/libgroff/Makefile.sub: Updated.
6367         * win32-diffs: Updated.
6369         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
6370         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
6371         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
6372         font::load), src/preproc/eqn/main.cc (read_line, main),
6373         src/preproc/eqn/lex.cc (file_input::read_line),
6374         src/preproc/pic/lex.cc (file_input::read_line,
6375         simple_file_input::get, simple_file_input::peek),
6376         src/preproc/pic/main.cc (top_input::get, top_input::peek),
6377         src/preproc/pic/pic.man, src/preproc/refer/main.cc
6378         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
6379         do_bib), src/preproc/tbl/main.cc (table_input::get),
6380         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
6381         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
6382         do_zero_width, read_request, encode_char, ps_get_line,
6383         transparent_file, get_char_for_escape_name, transparent_translate,
6384         asciify, input_char_description, read_string, set_string),
6385         src/roff/troff/env.cc (environment::add_html_tag),
6386         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
6388         * src/include/lib.h: Updated.
6390         * src/preproc/eqn/eqn.cc: Removed.
6392         * NEWS: Updated.
6394         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
6396 2002-02-09  Werner LEMBERG  <wl@gnu.org>
6398         * doc/gnu.xpm: New image.
6399         * doc/Makefile (DOCS): Add homepage.ps.
6400         Add rules for converting xpm->png and xpm->eps.
6401         Use `gnu.{xpm,eps}' as image names.
6402         * doc/homepage.ms: Updated.
6404 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
6406         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
6407         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
6408         Remove calls to `B1' and `B2'
6409         (PNG-IMAGE): New macro for inclusion of images in PNG format.
6410         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
6411         auxiliary variables for MARGIN-PNG-IMAGE.
6412         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
6413         auxiliary macros for MARGIN-PNG-IMAGE.
6414         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
6415         the margin.
6416         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
6417         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
6418         (DROPCAP): New macro to produce dropcap characters.
6419         (www-do-image): Renamed back to...
6420         (HTML-DO-IMAGE): This.
6421         Updated all callers.
6423         * doc/Makefile (gnubw.eps): Updated.
6424         * doc/homepage.ms: Updated.
6426 2002-02-08  Werner LEMBERG  <wl@gnu.org>
6428         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
6429         Added `linethick' to table in section `Style Variables'.
6431 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
6433         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
6435 2002-02-07  Werner LEMBERG  <wl@gnu.org>
6437         Adding options -C (compatibility mode) and -c (grotty's old output
6438         scheme) to nroff.
6440         * src/roff/nroff/nroff.sh: Implement it.
6441         Remove `-Wall'.
6442         * NEWS, src/roff/nroff/nroff.man: Updated.
6444         * PROBLEMS: Document bison 1.32 bug.
6446         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
6448         * src/roff/troff/node.cc (make_tfont): Define it earlier.
6449         * src/roff/troff/div.h: Add prototype for `end_diversions'.
6450         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
6451         * src/roff/troff/env.h: Add prototype for `title'.
6453         Adding EBCDIC support to grotty.
6455         * src/devices/grotty/tty.cc (CSI): New macro.
6456         (SGR_*, tty_printer::put_color): Use it.
6458 2002-02-06  Werner LEMBERG  <wl@gnu.org>
6460         Implementing color support in grotty.  The new switch -c activates
6461         the old drawing scheme, disabling color at the same time.  The new
6462         switch `-i' selects italic instead of underlining (SGR only).
6464         * src/devices/grotty/tty.cc (putstring): New define instead of
6465         `fputs'.  Updated all callers.
6466         (old_drawing_scheme): New global variable.
6467         (COLOR_CHANGE): New enum value.
6468         (SGR_*): New defines containing color handling escape sequences.
6469         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
6470         (glyph): New members `back_color_idx' and `fore_color_idx'.
6471         (glyph::order): Add COLOR_CHANGE.
6472         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
6473         `is_underline', `is_bold', `cu_flag', `tty_colors'.
6474         New methods `make_underline', `make_bold', `color_to_idx',
6475         `change_color', `put_color'.
6476         (cu_flag): Moved into `tty_printer' class.
6477         (tty_printer::tty_printer): Initialize colors.
6478         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
6479         tty_printer::draw, tty_printer::end_page): Handle colors also.
6480         (main): Add options `-c' and `-i'.
6481         (usage): Updated.
6482         * NEWS, src/devices/grotty/grotty.man: Updated.
6484         * src/include/errarg.h (errarg): Add support for `unsigned int'.
6485         * src/libs/libgroff/errarg.c: Implement it.
6487         * src/include/printer.h (printer): Add `change_color' method
6488         (currently used by grotty only).
6489         * src/libs/libdriver/printer.cc: Implement it.
6490         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
6491         call to `pr->change_color'.
6493         * src/roff/troff/node.cc (troff_output_file::fill_color,
6494         troff_output_file::glyph_color): Call `do_motion'.
6496         * tmac/tty.tmac: Add color definitions.
6498         * src/roff/groff/groff.man: Minor fixes.
6500 2002-02-05  Bernd Warken  <bwarken@mayn.de>
6502         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
6503         it.  This is a preparation for future changes.
6505 2002-02-05  Werner LEMBERG  <wl@gnu.org>
6507         * src/roff/troff/input.cc (process_input_stack): Fix the case
6508         where leading spaces are followed by \f or \s; previously, an
6509         incorrect space width has been used.
6511         * doc/roff.man (quoted_char): Fix argument.
6512         (comment): Define string.
6514 2002-02-04  Larry Kollar  <kollar@alltel.net>
6516         * doc/groff.texinfo: More fixes.
6518 2002-02-04  Werner LEMBERG  <wl@gnu.org>
6520         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
6521         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
6522         `restore_compatibility' before `output_string' -- the LINE_STRING
6523         register now already contains proper switches from and to
6524         compatibility mode.
6526         * man/groff_char.man: Add Euro symbol.
6527         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
6528         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
6529         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
6530         Other minor fixes.
6532         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
6533         texinfo->pdf.
6534         (.texinfo.html): Add support for texinfo->html.
6536 2002-02-03  Werner LEMBERG  <wl@gnu.org>
6538         Added three new requests `ds1', `as1', and `ami'.  The former two
6539         are equivalent to `ds' and `as' with the difference that
6540         compatibility mode is saved on entry, switched off during string
6541         expansion, and restored on exit.  The latter is the pendant to `dei'
6542         for `am'.
6544         (do_define_string): Use `define_mode' and `calling mode'.
6545         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
6546         end of string, respectively.
6547         (define_string, append_string): Use `calling_mode'.
6548         (define_nocomp_string, append_nocomp_string,
6549         define_string_indirect): New functions.
6550         (init_input_requests): Updated.
6551         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6553         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
6554         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
6555         mm macro package accesses this string register directly.
6556         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
6558         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
6559         compatibility mode.
6561 2002-02-02  Larry Kollar  <kollar@alltel.net>
6563         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
6565 2002-01-31  Werner LEMBERG  <wl@gnu.org>
6567         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
6569 2002-01-31  Bernd Warken  <bwarken@mayn.de>
6571         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
6572         * man/groff_out.man: Revised and updated.
6574 2002-01-30  Bernd Warken  <bwarken@mayn.de>
6576         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
6577         out the unused `{' and `}' commands.  Undefined by default.
6578         (IntArray): Make `data' private.
6579         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
6580         new methods instead.
6581         (skip_line_D, skip_to_end_of_line): New functions.
6582         (get_D_fixed_args): Use `skip_line_D'.
6583         Changed to handle dummy odd arguments by ...
6584         (get_D_fixed_args_odd_dummy): This new function.
6585         (get_D_variable_args): Split some code into ...
6586         (get_possibly_integer_args): This new function.
6587         (send_draw): Use more `const'.
6588         (delete_current_env): New function.
6589         (position_to_end_of_args): Use `size_t'.
6590         Updated.
6591         (send_draw): Updated.
6592         (parse_D_command): Handle `c', `C', and `t' better.
6593         Updated.
6594         (do_file): Updated.
6596 2002-01-29  Werner LEMBERG  <wl@gnu.org>
6598         * NEWS: Revised.
6599         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
6600         @Def...ListEnd which replaces @Def...x.  This is necessary to get
6601         proper HTML output -- see the comment in the file for more
6602         information.
6603         Updated all calls.
6605 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
6607         Fixes to make color changes of 2002-01-21 work with grohtml.
6609         * src/devices/grohtml/post-html.cc (style): Updated.
6610         (html_printer): Remove unused methods.
6611         (html_printer::do_font, html_printer::draw, html_printer::set_char,
6612         html_printer::special): Updated.
6613         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
6614         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
6615         Added some debugging code.
6616         (html_text::start_tag): Updated.
6617         (html_text::do_push): New method.
6618         (html_text::push_para): Call it.
6619         Add method for handling color.
6620         (html_text::do_color): Updated.
6621         (html_text::shutdown): Handle color.
6622         * src/devices/grohtml/html-text.h (tag_definition): New member
6623         `col'.
6624         Updated.
6626 2002-01-28  Werner LEMBERG  <wl@gnu.org>
6628         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
6630 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
6632         Add two switches -a and -g to control the antialiasing bits for
6633         text and graphics, respectively.
6635         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
6636         `-g'.
6637         * src/devices/grohtml/grohtml.man: Document them.
6638         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
6639         New macros.
6640         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
6641         (setupAntiAlias): New function.
6642         (createAllPages): Updated.
6643         (scanArguments): Handle `-a' and `-g'.
6644         (main): Call `setupAntiAlias'.
6645         * NEWS: Updated.
6647 2002-01-27  Werner LEMBERG  <wl@gnu.org>
6649         * doc/groff.texinfo (Def*): Call index function after deffn.
6651         * tmac/html.tmac: Call `nroff' request.
6653 2002-01-26  Larry Kollar  <kollar@alltel.net>
6655         * tmac/groff_ms.man: Add some omissions.
6657 2002-01-25  Larry Kollar  <kollar@alltel.net>
6659         * tmac/groff_ms.man: Typographical improvements.
6661 2002-01-25  Werner LEMBERG  <wl@gnu.org>
6663         * doc/groff.texinfo: Updated version and copyright.
6664         * src/devices/grops/grops.man: Updated.
6666         * tmac/groff_tmac.man: Fix `ig' macro.
6668         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
6669         nroff mode.
6670         Use `.ne' unconditionally everywhere.
6671         (TS): Only insert some vertical space.  Doing a page break is no
6672         longer necessary due to the redefinition of the `ne' request.
6674         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
6675         warning for unknown subcommands but parse and pass them to the
6676         device driver.
6678 2002-01-24  Werner LEMBERG  <wl@gnu.org>
6680         * tmac/groff_www.man, NEWS: Fix typos.
6682 2002-01-21  Werner LEMBERG  <wl@gnu.org>
6684         Complete revision of color support:
6686           Adapt programs to the new libdriver/input.cc.
6688           Color spaces are no longer converted to RGB but transferred as-is
6689           in the troff intermediate output format.
6691           Handle default color gracefully.  troff now supports a `default'
6692           color (which can't be changed).
6694           grops will now use the proper color space functions if available.
6696           Update pic.
6698         Note that currently grohtml doesn't handle colors properly.  This
6699         has to be fixed.
6701         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
6702         (ui_to_a): New function.
6703         * src/include/lib.h: Updated.
6705         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
6706         (color): Simplified; removed all `double' members and methods.
6707         A new array `components' now holds the color parameters.
6708         (color::is_default, color::get_components): New methods.
6709         (color::operator==, color:operator!=): New.
6710         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
6711         to make access to the `components' array more comprehensible.
6712         * src/libs/libgroff/color.cc: Implement new color support.
6713         (atoh): Small fixes.
6714         (color::read_encoding): Simplified for new troff intermediate color
6715         output format.
6716         (default_color): New global variable.
6718         * src/roff/troff/input.cc (default_symbol): New global variable.
6719         (lookup_color): Use it.
6720         (default_black): Removed.
6721         (do_glyph_color, do_fill_color): Simplified.
6722         (define_color): Handle default color.
6723         Improve warnings.
6724         (do_if_request): Handle default color.
6725         * src/roff/troff/env.cc (environment::environment): Initialize
6726         colors with `default_color'.
6727         * src/roff/troff/node.cc (troff_output_file::put): Add method
6728         for `unsigned int'.
6729         (troff_output_file::hex): Removed.
6730         (troff_output_file::fill_color, troff_output_file::glyph_color):
6731         Updated to include/color.h and libdriver/input.cc.
6733         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
6734         fill color properly (identically to the outline color).  \D'f...'
6735         doesn't work any more.
6736         All function calls to it updated.
6738         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
6739         Updated.
6740         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
6741         Updated.
6743         * src/devices/grops/ps.cc (ps_output::put_color): New method.
6744         (ps_printer::sbuf_color): Make a real member instead of pointer.
6745         (ps_printer::fill_color, ps_printer::output_color): Removed.
6746         (ps_printer::ps_printer): Updated.
6747         (ps_printer::set_char): Ditto.
6748         (ps_printer::set_color): Use various color schemes.
6749         Use `put_color' method.
6750         (ps_printer::flush_sbuf): Don't set color.
6751         (ps_printer::fill_path): Take `environment' as parameter.
6752         Simplify color handling.
6753         (ps_printer::set_line_thickness): Renamed to ...
6754         (ps_printer::set_line_thickness_and_color): This (and updated).
6755         (ps_printer::set_color): Change second parameter from `complete'
6756         to `fill' which better describes what it does.
6757         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
6758         and text in the right order.
6759         Updated.
6760         Remove branches for `f' and `F'; this is handled by
6761         libdriver/input.cc.
6762         * src/devices/grops/ps.h: Updated.
6763         * font/devps/prologue (FL): Redefined.
6764         ({F,C}r,k,g: New color functions (with and without filling).
6766         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
6767         * man/groff_diff.man, man/groff.man, man/groff_out.man,
6768         doc/groff.texinfo, NEWS: Updated.
6770 2002-01-20  Bernd Warken  <bwarken@mayn.de>
6772         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
6773         in this file for what has been changed.
6775 2002-01-19  Werner LEMBERG  <wl@gnu.org>
6777         * test-groff: Fix GROFF_FONT_PATH.
6778         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
6779         is read before .TH or .Dd is parsed.
6781 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
6783         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
6784         quadrant boundaries.
6786 2002-01-18  Werner LEMBERG  <wl@gnu.org>
6788         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
6789         applied last patch.
6791 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
6793         * tmac/doc.common: Initialize %I register for the %I macro to
6794         avoid (harmless) warning.
6795         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
6796         when in the SYNOPSIS section.
6798 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
6800         * src/preproc/pic/lex.cc (get_token): Fix typo.
6802 2002-01-17  Werner LEMBERG  <wl@gnu.org>
6804         * devices/grops/ps.cc: Fix incorrectly applied last patch.
6806 2002-01-17  Larry Kollar  <kollar@alltel.net>
6808         * tmac/groff_ms.man: Completely rewritten.
6810 2002-01-16  Werner LEMBERG  <wl@gnu.org>
6812         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
6814 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
6816         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
6817         fill colors.
6818         (ps_printer::draw): Ditto.
6820 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
6822         * tmac/groff_mdoc.man: Minor fixes.
6824 2002-01-13  Werner LEMBERG  <wl@gnu.org>
6826         * man/groff_out.man: Some fixes.
6828 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
6830         * doc/pic.ms: Fix typos.
6832 2002-01-12  Werner LEMBERG  <wl@gnu.org>
6834         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
6836 2002-01-10  Werner LEMBERG  <wl@gnu.org>
6838         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
6839         symbols.
6840         * NEWS: Updated.
6842 2002-01-09  Bernd Warken  <bwarken@mayn.de>
6844         * man/groff_out.man: Revised.
6845         * man/roff.man: Minor fixes.
6846         * src/roff/troff/troff.man: Some reordering.
6848 2002-01-09  Werner LEMBERG  <wl@gnu.org>
6850         * tmac/an-old.tmac: Add dummy macros for equation support.
6852 2002-01-07  Werner LEMBERG  <wl@gnu.org>
6854         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
6856         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
6857         man pages.
6858         * tmac/groff_man.man: Small improvements.
6860 2002-01-07  Bernd Warken  <bwarken@mayn.de>
6862         * man/groff_diff.man: Revised.
6864 2002-01-06  Werner LEMBERG  <wl@gnu.org>
6866         * tmac/www.tmac: Remove extraneous backslash.
6868 2002-01-06  Bernd Warken  <bwarken@mayn.de>
6870         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
6872 2002-01-05  Werner LEMBERG  <wl@gnu.org>
6874         Integrated groffer, contributed by Bernd Warken.
6876         * contrib/groffer/*: New.       
6877         * Makefile.in, NEWS: Updated.
6879 2002-01-04  Werner LEMBERG  <wl@gnu.org>
6881         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
6882         registers defined in macro packages.
6883         Revising the ms part.
6885 2002-01-04  Larry Kollar  <kollar@alltel.net>
6887         * doc/groff.texinfo: Add documentation for ms macros.
6889 2002-01-02  Werner LEMBERG  <wl@gnu.org>
6891         First step in adding PS support for the Euro symbol.  `eu' is the
6892         official Euro logo, `Eu' is a font-specific glyph variant.
6894         * font/devps/text.enc: Add `Euro' at position 9.
6895         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
6896         * font/devps/symbolmap: Regenerated.
6898         * NEWS: Updated.
6900 2002-01-02  Bernd Warken  <bwarken@mayn.de>
6902         * man/roff.man: Revised.
6904 2002-01-01  Bernd Warken  <bwarken@mayn.de>
6906         * src/roff/groff/groff.man: Completely rewritten.
6908 2001-12-31  Werner LEMBERG  <wl@gnu.org>
6910         * doc/Makefile: Updated.
6912 2001-12-30  Werner LEMBERG  <wl@gnu.org>
6914         * tmac/www.tmac: Make all names of internal macros/registers/strings
6915         lowercase, and prepend `www-'.
6916         Other minor changes.
6917         * src/roff/troff/troff.man: Add preprocessor string at BOF.
6919 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
6921         Implement option `-b' in grohtml to set the HTML background colour.
6923         * src/devices/grohtml/post-html.cc (default_background): New global
6924         variable.
6925         (html_printer::html_printer): Initialize `background' to
6926         `default_background'.
6927         (main): Implement option `-b'.
6928         (usage): Updated.
6929         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
6930         of `-b' option.
6931         * src/devices/grohtml/grohtml.man: Updated.
6932         * doc/Makefile (.ms.html): Use `-b'.
6933         * tmac/html.tmac: Don't set background color.
6935         Add new grohtml tag `.html-tl'.
6937         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
6938         member variable.
6939         (title_desc::title_desc): Updated.
6940         (html_printer::troff_tag): Handle `.html-tl'.
6941         (html_printer::write_title): Use `with_h1'.
6942         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
6943         (HTML-TL): New macro.
6945         Add support for unordered lists in HTML.
6947         * tmac/www.tmac (www-level): New auxiliary register.
6948         (www-level1, www-level2, www-level3): New auxiliary strings.
6949         (www-push-level, www-pop-level): New auxiliary macros
6950         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
6952         Miscellaneous.
6954         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
6955         (DEFAULT_VERTICAL_OFFSET): Removed.
6956         (IMAGE_BOARDER_PIXELS): Set to 0.
6957         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
6958         (vertical_offset): Initialize with 0.
6959         (gsPaper): New global variable.
6960         (get_resolution): Scan for and return unsigned int.
6961         (get_papersize): New function to get paper length from devps/DESC.
6962         (determine_vertical_offset): New function.
6963         (createAllPages): Produce gray-level images and use proper page
6964         length.
6965         (createImage): Use `-quiet' option of pnmcrop.
6966         (addZ): Fix passing of `-Z'.
6967         (scanArguments): Fix handling of `-o'.
6968         (main): Call `determine_vertical_offset'.
6969         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
6970         code for `l'.
6972         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
6973         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
6974         glyph descenders properly.
6976         * doc/homepage.ms: Include `gnubw.eps'.
6977         * doc/Makefile (gnubw.eps): New rule.
6978         (homepage.html): Depend on `gnubw.eps'.
6980 2001-12-25  Werner LEMBERG  <wl@gnu.org>
6982         * src/roff/troff/input.cc (default_black): Fix return value.
6984 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
6986         * tmac/doc-common (Dt): Change output of architecture strings.
6987         Do some syntax cleanup.
6988         * tmac/groff_mdoc.man: Updated.
6990 2001-12-23  Werner LEMBERG  <wl@gnu.org>
6992         Adding an `itc' request (input line trap accepting \c).
6994         * src/roff/troff/env.h (environment): New member
6995         `continued_input_trap'.
6996         Make `do_input_trap' a friend function instead of `input_trap'.
6997         * src/roff/troff/env.cc (environment::environment,
6998         environment::copy): Updated.
6999         (environment::newline): Implement it.
7000         (do_input_trap): New function.
7001         (input_trap): Call `do_input_trap'.
7002         (input_trap_continued): New function.
7003         (init_env_requests): Updated.
7004         * src/roff/troff/TODO: Updated.
7006         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
7007         `.it'.
7009         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
7011 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
7013         * tmac/doc-common, tmac/doc-syms: Small updates.
7015 2001-12-22  Colin Watson  <cjwatson@debian.org>
7017         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
7019 2001-12-22  Bernd Warken  <bwarken@mayn.de>
7021         * MANIFEST: New file.
7023 2001-12-22  Werner LEMBERG  <wl@gnu.org>
7025         * src/preproc/grn/grn.man: Updated.
7027 2001-12-22  Solar Designer  <solar@openwall.com>
7029         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
7030         (DBRead): Use it.
7032 2001-12-19  Werner LEMBERG  <wl@gnu.org>
7034         Implement a fallback character request `.fchar'.
7036         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
7037         (is_fallback): New inline function.
7038         * src/roff/troff/input.cc (do_define_character): New function.
7039         (define_character): Call `do_define_character'.
7040         (define_fallback_character): New function.
7041         (init_input_requests): Add `fchar'.
7042         (charinfo::charinfo): Updated.
7043         (charinfo::set_macro): New argument to set `fallback' flag.
7044         * src/roff/troff/node.cc (make_glyph_node, make_node,
7045         node::add_char): Check `fallback' flag.
7046         * NEWS, man/groff_diff.man, man/groff_man: Updated.
7048 2001-12-16  Werner LEMBERG  <wl@gnu.org>
7050         * groff.texinfo: Document exact search algorithm for glyphs.
7052 2001-12-15  Werner LEMBERG  <wl@gnu.org>
7054         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
7055         the left side of $(MANPAGES) rule to make it always non-empty.
7057 2001-12-14  Werner LEMBERG  <wl@gnu.org>
7059         * src/roff/troff/input.cc (default_black): Define default color
7060         `black' if not yet defined.
7062 2001-12-13  Werner LEMBERG  <wl@gnu.org>
7064         Implement new string-valued register `.fn' to return the current
7065         real (internal) font name.
7067         * env.cc (environment::get_font_name_string): New function.
7068         (init_env_requests): Add `.fn' register.
7069         * env.h (environment): Updated.
7070         * node.cc (font_info): Make `get_font_name' a friend.
7071         (get_font_name): New function.
7072         * node.h: Updated.
7074         * man/groff_diff.man, man/groff.man, NEWS: Updated.
7076 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7078         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
7080 2001-12-12  Werner LEMBERG  <wl@gnu.org>
7082         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
7084 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
7086         * man/groff_diff.man: Adding documentation for \O.
7088 2001-12-10  Werner LEMBERG  <wl@gnu.org>
7090         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
7091         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
7093 2001-12-09  Werner LEMBERG  <wl@gnu.org>
7095         * man/roff.man: Revised.
7096         * src/roff/groff/groff.man: Replace man page references with a
7097         pointer to roff.man.
7099 2001-12-09  Bernd Warken  <bwarken@mayn.de>
7101         * man/roff.man: Completely rewritten.
7103 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7105         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
7107 2001-12-05  Werner LEMBERG  <wl@gnu.org>
7109         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
7110         longer used.
7111         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
7112         order of initializers.
7113         * NEWS: Updated.
7115 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
7117         * doc/groff.texinfo: Fix documentation of \O.
7119         * src/devices/grohtml/html-text.cc (html_text::do_indent,
7120         html_text::do_table, html_text::do_emittext, html_text::do_para):
7121         Use `const' for first argument.
7122         (html_text::do_table): Use cast.
7123         * src/devices/grohtml/html-text.h: Updated.
7124         * src/devices/grohtml/output.cc (simple_output::put_string): Add
7125         method for `const string &s'.
7126         * src/devices/grohtml/html.h: Updated.
7127         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
7128         (ANCHOR_TEMPLATE): Modified.
7129         (manufacture_headings): New global variable to handle `-h' option.
7130         (is_subsection): Removed.
7131         (char_buffer::add_string): Add `const' to first argument.
7132         Protect against invalid string argument.
7133         Add method for `const string &s'.
7134         (text_glob): Completely redesigned.
7135         (page): Use `const' for strings and remove string length variable.
7136         (page::add_html): Removed.
7137         (page::add_end_encode): New member function.
7138         (to_unicode): Moved upwards.
7139         (title_desc, header_desc): Updated.
7140         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
7141         definition.
7142         (html_printer::is_bold, html_printer::make_bold): New member
7143         functions.
7144         (html_printer::end_of_line): Updated.
7145         (generate_img_src, html_printer::do_auto_image,
7146         html_printer::do_title, html_printer::write_header,
7147         html_printer::determine_header_level, html_printer::do_heading,
7148         html_printer::do_linelength, html_printer::do_pageoffset,
7149         html_printer::do_indentation, html_printer::do_tempindent,
7150         html_printer::do_indentedparagraph, html_printer::do_break,
7151         html_printer::flush_sbuf, get_html_translation,
7152         html_printer::begin_page, html_printer::special): Rewritten to get
7153         rid of static string length limit.
7154         (html_printer::troff_tag): Added `.no-auto-rule'.
7155         (html_printer::flush_globs): Small fix.
7156         (html_printer::determine_space): Don't compute `space_width'.
7157         (html_printer::translate_to_html): Renamed to ...
7158         (html_printer::emit_html): This (with updates).
7159         (html_printer::write_header): Implement `-h' option.
7160         (html_printer::draw): Remove commented-out code.  Handle `F'
7161         command.
7162         (html_printer::add_char_to_sbuf): Removed.
7163         (html_printer::add_to_sbuf): Rewritten.
7164         (html_printer::sbuf_continuation): Fixed.
7165         (html_printer::seen_backwards_escape, reverse,
7166         html_printer::remove_last_char_from_sbuf): Removed.
7167         (char_translate_to_html, str_translate_to_html): Removed.
7168         (html_printer::overstrike): New function member.
7169         (html_printer::set_char): Use it.
7170         (html_printer::do_body): New function member.
7171         (html_printer::~html_printer): Use it.
7172         (main): Handle `-h' option.
7173         (usage): Updated.
7174         * src/devices/grohtml/grohtml.man: Document -h switch.
7176         * src/preproc/html/pre-html.cc: Include searchpath.h
7177         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
7178         (get_resolution): New function.
7179         (checkImageDir): Use `0777' permissions in mkdir()
7180         (write_start_image): Rewritten to use `\O[5...]'.
7181         (createImage, generateImages): Updated.
7182         (main): Handle `F' and `h' options.
7183         Use `get_resolution'.
7185         * src/roff/troff/input.cc (begin, end, image): Removed.
7186         (do_suppress): Take parameter.
7187         Handle modified syntax of `\O'.
7188         (token::next): Updated.
7189         (init_markup_requests): Removed.
7190         (main): Updated.
7192         * src/roff/troff/div.h: Add declaration for begin_page().
7194         * tmac/color-html.tmac: Removed.  Contents moved to...
7195         * tmac/html.tmac: Here.  Set background color.
7196         * tmac/color.tmac: Removed.  Contents moved to...
7197         * tmac/ps.tmac: Here.
7198         * tmac/www.tmac: Remove the title command when generating images
7199         for html.
7200         (NO_AUTO_RULE): New macro.
7201         (HTML_DO_IMAGE): Use revised `\O' escapes.
7202         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
7204 2001-12-02  Werner LEMBERG  <wl@gnu.org>
7206         * tmac/groff_mdoc.man: Fix typo.
7208 2001-12-01  Colin Watson  <cjwatson@debian.org>
7210         * man/roff.man: Fix typo.
7212 2001-11-29  Werner LEMBERG  <wl@gnu.org>
7214         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
7215         stdlib.h.
7217         * src/roff/troff/input.cc (read_draw_node): Emit error message if
7218         more than one argument to \D'f ...'.
7220         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
7222 2001-11-28  Werner LEMBERG  <wl@gnu.org>
7224         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
7225         loaded only once.
7227         * tmac/groff_man.man: Minor cosmetic fix.
7229 2001-11-27  Werner LEMBERG  <wl@gnu.org>
7231         * src/roff/groff/groff.man, tmac/groff_tmac.man,
7232         tmac/groff_www.man: s/mwww/www/.
7234 2001-11-26  Werner LEMBERG  <wl@gnu.org>
7236         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
7237         * configure: Regenerated.
7238         * win32-diffs: Updated.
7240         * tmac/groff_mwww.tmac: Renamed to ...
7241         * tmac/groff_www.tmac: This.
7242         * tmac/mwww.tmac: Removed.
7243         * NEWS, tmac/Makefile.sub: Updated.
7245 2001-11-21  Werner LEMBERG  <wl@gnu.org>
7247         * doc/groff.texinfo: Improve documentation of the `\v' escape.
7248         Fix explanation of `\D' and `rt'.
7250 2001-11-20  Werner LEMBERG  <wl@gnu.org>
7252         * tmac/an-old.tmac (an-header): Set header length equal to page
7253         width.
7254         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
7255         minor fixes.
7256         * NEWS: Small fix.
7258 2001-11-19  Werner LEMBERG  <wl@gnu.org>
7260         * NEWS, man/Makefile.sub: Updated.
7262 2001-11-19  Bernd Warken  <bwarken@mayn.de>
7264         * man/ditroff.man: New file.
7266 2001-11-17  Werner LEMBERG  <wl@gnu.org>
7268         * man/groff_differences.man: Renamed to ...
7269         * man/groff_diff.man: This.  Updated.
7270         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
7272         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
7273         * src/preproc/html/pushback.cc: This.  Updated.
7274         * src/preproc/html/pushbackbuffer.h: Renamed to ...
7275         * src/preproc/html/pushback.h: This.
7276         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
7277         Updated.
7279         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
7280         * src/libs/libgroff/htmlhint.cc: This.
7281         * src/libs/libgroff/Makefile.sub: Updated.
7283         * tmac/an-old.tmac (an-end): Fix page length.
7285 2001-11-16  Werner LEMBERG  <wl@gnu.org>
7287         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
7288         * man/Makefile.sub: Include groff_differences.man.
7289         * VERSION: Set to 1.18.
7290         * REVISION: Set to 0.
7292 2001-11-16  Bernd Warken  <bwarken@mayn.de>
7294         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
7295         the second dot (or ending macro name) to end a macro.
7296         * doc/groff.texinfo: Doc fix.
7298 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
7300         * tmac/doc-common (doc-header): Handle very long document titles
7301         better.
7303 2001-11-16  Werner LEMBERG  <wl@gnu.org>
7305         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
7307 2001-11-15  Werner LEMBERG  <wl@gnu.org>
7309         * src/roff/troff/troff.man: Revised and split into troff.man and...
7310         * man/groff_differences.man: New file.
7311         * NEWS: Updated.
7313 2001-11-13  Werner LEMBERG  <wl@gnu.org>
7315         * tmac/an-old.tmac (TS, TE): New macros for table support.
7317 2001-11-12  Werner LEMBERG  <wl@gnu.org>
7319         * src/include/lib.h: Provide a fix for emx to not include
7320         groff-getopt.h.
7322 2001-10-27  Werner LEMBERG  <wl@gnu.org>
7324         * src/roff/troff/input.cc (substring_macro): Fix computation of
7325         boundary values.
7327 2001-10-20  Werner LEMBERG  <wl@gnu.org>
7329         Undo change from 2001-08-28.
7331         * src/roff/troff/input.cc (have_input): New global variable.
7332         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
7333         in compatibility mode.
7334         (process_input_stack): Use it.
7336 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
7338         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
7339         being handled as end-of-sentence characters,
7341 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
7343         * src/roff/troff/input.cc (file_iterator): New members
7344         `suppress_newline_flag' and `seen_escape'.
7345         (file_iterator::next_file): Updated.
7346         (file_iterator::fill): Use it.
7347         (string_iterator): New member `suppress_newline_flag'.
7348         (string_iterator::fill): Set it.
7349         (get_color_element): Use MAX_COLOR_VAL.
7350         * src/roff/troff/env.cc (environment): Remove `need_eol'.
7351         (no_fill): Don't set `env->ignore_next_eol'.
7352         (environment::newline): Handle `eol' tag properly.
7353         Emit `eol.ce'.
7354         (environment::add_html_tag): Set `env->ignore_next_eol'.
7355         Don't handle `.ce'.
7356         * src/roff/troff/env.h (environment): Updated.
7358         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
7359         member function.
7360         (html_printer::outstanding_eol): New member function.
7361         (html_printer::do_title): Use new functions.
7362         (html_printer::troff_tag): Test `id_eol_ce'.
7364 2001-10-10  Werner LEMBERG  <wl@gnu.org>
7366         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
7367         files work with -C also.
7369 2001-10-05  Werner LEMBERG  <wl@gnu.org>
7371         * doc/pic.ms: Minor fix.
7372         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
7373         as a valid command line switch.
7374         * src/devices/grohtml/post-html.cc (main): Ditto.
7375         (usage): Updated.
7376         * src/devices/grohtml/grohtml.man: Updated.
7377         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
7379 2001-10-04  Werner LEMBERG  <wl@gnu.org>
7381         Implementing color support in troff, pic, grops, and grohtml.  These
7382         changes are based on a major patch provided by Gaius Mulley
7383         <gaius@glam.ac.uk>.
7385         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
7386         definitions with both hex values and fractions.
7388         New escapes: \m and \M for drawing and background color,
7389         respectively.  This corresponds to the troff output commands `m'
7390         and `DF'.
7392         groff and troff accept command line switch `-c' to disable color
7393         output (which is automatically disabled in compatibility mode).
7395         New scaling indicator `f' for fractions (1f = 65536u).
7397         New conditional operator `m' to test for defined colors with `if'
7398         and `ie'.
7400         New keywords `color' (or `colour', `colored', `coloured'), `outline'
7401         (or `outlined'), and `shaded' added to pic.
7403         * src/include/color.h: New file.
7404         * src/include/driver.h: Include it.
7405         * src/include/printer.h: Include color.h.
7406         (environment): New members `col' and `fill'.
7407         (printer): Remove `adjust_arc_center' member function.
7408         * src/include/Makefile.sub: Updated.
7410         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
7411         `env.fill'.
7412         Handle `m' and `DF' troff commands.
7413         * src/libs/libgroff/color.cc: New file.
7414         * src/libs/libgroff/Makefile.sub: Updated.
7416         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
7417         (stop): Removed.
7418         (createImage): Fix computation of `y2'.
7419         Use `pnmcrop' also.
7420         (buffer::write_file_html): Remove calls to `stop'.
7422         * src/preproc/pic/common.h (common_output): New abstract function
7423         members `set_color', `reset_color', `get_last_filled', and
7424         `get_outline_color'.
7425         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
7426         (object_spec): Add members `shaded' and `outlined'.
7427         * src/preproc/pic/output.h (output): `command' is now abstract.
7428         New function members `set_color', `reset_color', `get_last_filled',
7429         and `get_outline_color'.
7430         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
7431         `outline[d]', and `shaded'.
7432         * src/preproc/pic/object.cc (output::command): Removed.
7433         (output::set_location): Moved to output.h.
7434         (graphic_object): Add protected members `outline_color' and
7435         `color_fill'.
7436         Add member functions `set_outline_color', `get_outline_color', and
7437         `set_fill_color'.
7438         (closed_object): Add member function `set_fill_color'.
7439         Add member `color_fill'.
7440         (graphic_object::print_text): Use `out->set_color' and
7441         `out->reset_color'.
7442         (box_object::print, ellipse_object::print, circle_object::print,
7443         line_object::print, spline_object::print, arc_object::print): Ditto.
7444         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
7445         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
7446         `SHADED', making them `%left'.
7447         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
7448         * src/preproc/pic/tex.cc (tex_output): New dummy function members
7449         `set_color', `reset_color', `get_last_filled', and
7450         `get_outline_color'.
7451         * src/preproc/pic/troff.cc (simple_output): New abstract function
7452         members `set_color', `reset_color', and `get_last_filled'.
7453         (simple_output::polygon, simple_output::circle,
7454         simple_output::ellipse): Use `get_last_filled'.
7455         (troff_output): New members `last_filled' and `last_outlined'.
7456         New function members `set_color', `reset_color', `get_last_filled',
7457         and `get_outline_color'.
7458         (troff_output::finish_picture): Use `reset_color'.
7459         (troff_output::set_fill): Test `last_filled'.
7460         * src/preproc/pic/pic.man: Updated.
7462         * src/roff/groff/groff.cc (main): Implement `-c' option.
7463         (synopsis, help): Updated.
7464         src/roff/groff/groff.man: Updated.
7466         * src/roff/troff/troff.h: Include color.h.
7467         (warning_type): Add WARN_COLOR.
7468         * src/roff/troff/env.h (environment): New members
7469         `{cur,prev}_{glyph,fill}_color'.
7470         New member functions `get_{prev_,}{glyph,fill}_color'.
7471         * src/roff/troff/env.cc: Initialize and implement them.
7472         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
7473         Replace `NULL' with `0' everywhere for consistency.
7474         (lookup_color, default_black, do_glyph_color, do_fill_color,
7475         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
7476         define_color): New functions.
7477         (token::next): Implement \M and \m escapes.
7478         (do_if_request): Implement `m' operator.
7479         (usage): Updated.
7480         (main): Implement `-c' option.
7481         (init_markup_requests): Add `defcolor' request.
7482         (warning_table): Add `color' warning.
7483         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
7484         classes.
7485         * src/roff/troff/node.cc (troff_output_file): New members
7486         `current_{page,glyph}color'.  New member functions `put_hex',
7487         `glyph_color', and `fill_color'.
7488         (glyph_color_node::*, fill_color_node::*): Implement it.
7489         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
7490         (parse_term): Add support for `f'.
7491         * src/roff/troff/troff.man: Updated.
7493         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
7494         entry for `F'.
7495         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
7496         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
7498         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
7499         (tag_definition): Use `void *' for arg1.
7500         (html_text): New member functions `do_color' and `done_color'.
7501         Use `void *' for second parameter of `push_para' member function.
7502         New `push_para' member function with a single parameter.
7503         Use `char *' for parameter of `issue_table_begin' member funtion.
7504         New `issue_color_begin' member function.
7505         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
7506         COLOR_TAG.
7507         (html_text::issue_color_begin): New function.
7508         (html_text::issue_table_begin): Use `char *' for parameter.
7509         (html_text::start_tag, html_text::shutdown,
7510         html_text::check_emit_text): Updated.
7511         (html_text::push_para): Use `void *' for second parameter.
7512         Add same function with only one parameter.
7513         (html_text::do_*): Updated.
7514         (html_text::do_color, html_text::done_color): New functions.
7515         * src/devices/grohtml/post-html.cc (style): New member `col'.
7516         Mew member `style' with 6 parameters.
7517         (style::style, style::operator==): Updated.
7518         (html_printer::do_font): Use it.
7519         (html_printer::draw): Add dummy entry for `F'.
7520         (html_printer::set_char): Updated.
7521         * src/devices/grohtml/grohtml.man: Updated.
7523         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
7524         trailing zeroes removed.
7525         (ps_printer): New members `sbuf_color', `fill_color', and
7526         `output_color'.
7527         Removed member `fill'.
7528         New member function `set_color'.
7529         (ps_printer::ps_printer, ps_printer::set_char): Updated.
7530         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
7531         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
7533         * tmac/color-html.tmac, tmac/color.tmac: New files.
7534         * tmac/troffrc: Include them.
7535         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
7536         * tmac/Makefile.sub: Updated.
7538         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
7539         man/groff.man: Updated.
7540         * font/devps/prologue.ps: Define FC and CO functions.
7542 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
7544         Fix incorrect cropping of images and incorrect handling of special
7545         characters.  Fix handling of file names in \O.
7547         * src/include/geometry.h: New file.
7548         * src/libs/libgroff/geometry.cc: New file.
7549         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
7550         to `geometry.cc'.
7551         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
7552         initial spaces.
7553         (do_suppress): Updated.
7554         * src/roff/troff/node.cc: Include geometry.h.
7555         (troff_output_file::flush_tbuf): Fixed parameters to
7556         `check_output_limits'.
7557         (troff_output_file::check_charinfo): Ditto.
7558         (troff_output_file::determine_line_limits): Add support for `Da'
7559         and `Dl' commands.
7561         * src/devices/grohtml/post-html.cc (str_translate_to_html):
7562         Add new parameter `is_special' to decode special characters from
7563         escape sequences.
7564         (html_printer::do_title, html_printer::do_heading,
7565         html_printer::do_indentedparagraph,
7566         html_printer::translate_to_html, html_printer::special): Updated.
7568 2001-10-03  Werner LEMBERG  <wl@gnu.org>
7570         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
7571         Fix entry for config.h.
7572         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
7573         * tmac/troffrc: Translate nonbreakable space character to `\~'.
7574         * src/preproc/eqn/eqn.man: Document -d command line option.
7576 2001-09-27  Werner LEMBERG  <wl@gnu.org>
7578         * man/groff.man: Use
7580           .ev xxx
7581           .na
7582           .nh
7583           <table>
7584           .ev
7586         instead of the old code (`.ad .hy' after the table) to suppress
7587         incorrect hyphenation for grohtml output.
7589 2001-09-22  Werner LEMBERG  <wl@gnu.org>
7591         * man/groff_font.man, man/groff_out.man: Minor fixes.
7593 2001-09-20  Werner LEMBERG  <wl@gnu.org>
7595         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
7596         Arnold Robbins <arnold@skeeve.com>).
7598 2001-09-09  Werner LEMBERG  <wl@gnu.org>
7600         * configure: Regenerated with autoconf 2.52.
7602         * doc/groff.texinfo: Complete revision of indices.
7604 2001-09-07  Werner LEMBERG  <wl@gnu.org>
7606         * doc/Makefile (clean): Updated to delete all indices.
7608 2001-09-05  Werner LEMBERG  <wl@gnu.org>
7610         * src/roff/troff/troff.man: Remove superfluous line.
7612         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
7613         given on the command line (or rather, if only the default warnings
7614         are set).
7616 2001-09-03  Werner LEMBERG  <wl@gnu.org>
7618         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
7619         use .ne for TTY devices.
7621 2001-08-31  Werner LEMBERG  <wl@gnu.org>
7623         * src/roff/troff/token.h, src/roff/troff/input.cc:
7624         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
7626 2001-08-28  Werner LEMBERG  <wl@gnu.org>
7628         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
7629         * src/roff/troff/input.cc (token::next): Return
7630         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
7631         compatibility mode.
7632         (token::description): Updated.
7633         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
7634         (token::add_to_node_list, token::process): Ignore
7635         TOKEN_TRANSPARENT_ESCAPE.
7637 2001-08-27  Werner LEMBERG  <wl@gnu.org>
7639         * tmac/an-old.tmac: Fix `S' string.
7641 2001-08-26  Werner LEMBERG  <wl@gnu.org>
7643         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
7645 2001-08-25  Werner LEMBERG  <wl@gnu.org>
7647         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
7648         backslashes).
7649         Many other minor fixes.
7651         * configure.ac: Add message at end to inform how to compile
7652         xditview.
7653         * configure: Regenerated.
7655 2001-08-24  Werner LEMBERG  <wl@gnu.org>
7657         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
7658         Updated to latest version of libc.
7660 2001-08-23  Werner LEMBERG  <wl@gnu.org>
7662         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
7663         Autoconf 2.50 and newer can handle this.
7664         * configure: Regenerated.
7666 2001-08-21  Werner LEMBERG  <wl@gnu.org>
7668         * doc/pic.ms: Fix typo.
7669         * src/preproc/tbl/tbl.man: Document case of global options.
7671 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
7673         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
7674         handling of `CR' font.
7676 2001-08-20  Werner LEMBERG  <wl@gnu.org>
7678         Use a config.h file.
7680         * src/include/lib.h: Include config.h.
7681         * All C files: Ditto (if necessary).
7682         * All C++ source and header files: Include lib.h first (if
7683         necessary).
7685         * src/include/config.hin: New file (autogenerated by autoheader).
7686         * stamp-h.in: New file.
7687         * configure.ac: Updated.
7688         * aclocal.m4: Add third parameters to AC_DEFINE macros.
7689         (GROFF_ARRAY_DELETE): Simplified.
7690         * Makefile.sub (DISTCLEANFILES): Updated.
7691         Added targets for remaking config.status, config.hin, config.h,
7692         stamp-h.in, and stamp-h.
7693         * configure: Regenerated.
7695 2001-08-19  Werner LEMBERG  <wl@gnu.org>
7697         * NEWS: Updated.
7699 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
7701         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
7702         (do_sprintf): Use snprintf().
7704 2001-08-18  Werner LEMBERG  <wl@gnu.org>
7706         * src/libs/snprintf/*: Added an snprintf module written by Mark
7707         Martinec.
7708         * src/libs/libgroff/Makefile.sub: Updated.
7709         * configure.ac: Add test for snprintf().
7710         * Makefile.in: Updated.
7711         * configure: Regenerated.
7713         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
7714         uses snprintf().
7716 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
7718         * tmac/doc.tmac (Ex): New implementation.
7719         * tmac/doc-common, tmac/groff_tmac.man: Updated.
7721 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
7723         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
7724         argument.
7725         * tmac/groff_tmac.man: Updated.
7727 2001-08-13  Werner LEMBERG  <wl@gnu.org>
7729         * src/preproc/tbl/tbl.man: Minor documentation update.
7731 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7733         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
7734         * configure.ac: Add declaration test for gettimeofday().
7735         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
7736         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
7737         * configure: Regenerated.
7739 2001-08-11  Werner LEMBERG  <wl@gnu.org>
7741         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
7742         * configure.ac: Add declaration test for strcasecmp().
7743         * Makefile.in: Updated.
7744         * configure: Regenerated.
7745         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
7746         this is necessary because groff's mkstemp.cc is C++.
7747         Add declaration conditionally for strcasecmp().
7749 2001-08-10  Werner LEMBERG  <wl@gnu.org>
7751         Integrated pic2graph, contributed by Eric S. Raymond.
7753         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
7754         files.
7755         * Makefile.in, NEWS: Updated.
7757         * src/preproc/tbl/tbl.man: Revised.
7759 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
7761         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
7763 2001-08-09  Werner LEMBERG  <wl@gnu.org>
7765         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
7766         requests.
7768 2001-08-08  Paul Eggert  <eggert@twinsun.com>
7770         * Makefile.sub (configure): Depend on configure.ac, not
7771         configure.in.
7772         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
7774 2001-08-07  Werner LEMBERG  <wl@gnu.org>
7776         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
7777         fixes.
7779 2001-08-06  Werner LEMBERG  <wl@gnu.org>
7781         * src/roff/troff/troff.man: Improve documentation of -E option.
7783 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7785         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
7786         Simplified.
7788 2001-07-27  Werner LEMBERG  <wl@gnu.org>
7790         * src/preproc/refer/refer.cc: Undo last change.
7791         * src/devices/grohtml/post-html.cc: Ditto.
7793 2001-07-26  Werner LEMBERG  <wl@gnu.org>
7795         * src/preproc/refer/refer.cc: Include `lib.h'.
7796         * src/devices/grohtml/post-html.cc: Ditto.
7798 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
7800         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
7801         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
7802         * Makefile.in: Comment updated.
7803         * configure: Regenerated.
7805 2001-07-25  Werner LEMBERG  <wl@gnu.org>
7807         * src/preproc/pic/pic.cc: Removed.
7808         * src/preproc/pic/pic_tab.h: Removed.
7809         * src/preproc/refer/label.cc: Removed.
7811         * doc/Makefile (.ms.html): Don't use a file name extension in
7812         argument to grohtml's -I option.
7813         * Makefile.in (dist): Remove CVS directories.
7814         Call `distfiles' target.
7816         * src/devices/grohtml/grohtml.man: Add information about valid
7817         versions of pnmtopng.
7818         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
7819         name instead of number.
7821 2001-07-24  Werner LEMBERG  <wl@gnu.org>
7823         * doc/groff.texinfo: Minor fixes.
7825 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
7827         * doc/Makefile (.ms.html): Put image files into a subdirectory.
7828         (clean): Updated.
7830 2001-07-20  Werner LEMBERG  <wl@gnu.org>
7832         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
7833         * src/libs/libgroff/mkstemp.cc: New file.
7834         * src/libs/libgroff/mksdir.cc: New file.
7835         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
7836         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
7837         * src/libs/libgroff/Makefile.sub: Updated.
7838         * src/include/lib.h: Add mksdir() prototype.
7839         * src/include/posix.h: Define S_IXUSR if not yet defined.
7841         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
7842         (createAllPages): Use mksdir() instead of current code.
7843         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
7844         (main): [!HAVE_MKSTEMP]: Removed.
7846         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
7847         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
7848         macros.
7849         * configure.ac: Add tests for stdint.h, sys/time.h, and
7850         gettimeofday().
7851         Call new GROFF_xxx macros.
7852         * configure: Regenerated.
7853         * Makefile.in: Comments updated.
7855 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
7857         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
7858         instead of current code.
7859         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
7860         * src/roff/groff/groff.cc (possible_command::insert_args): New
7861         function.
7862         (main): Use it for predriver handling instead of insert_arg().
7864 2001-07-19  Werner LEMBERG  <wl@gnu.org>
7866         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
7867         groff also.
7869         * src/include/posix.h: Define S_IWUSR if not yet defined.
7871 2001-07-18  Werner LEMBERG  <wl@gnu.org>
7873         * NEWS: Updated.
7875 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
7877         * tmac/groff_mdoc.man: Document new -width and -column syntax.
7878         Some other minor fixes.
7879         * tmac/an-old.tmac: Add `AT' and `UC' macros.
7881 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
7883         Replace call to `troff' with `groff -Z' to make it aware of
7884         GROFF_BIN_PATH.
7886         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
7887         (troff_command, command_prefix): Removed.
7888         (alterDeviceTo): Use groff.
7889         (addZ): New function.
7890         (char_buffer::do_html): Use it.
7891         (scanArguments): Use TROFF_COMMAND.
7892         (findPrefix): Removed.
7893         (main): Updated.
7894         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
7896 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
7898         * doc/pic.ms: Documentation fixes.
7900 2001-07-17  Werner LEMBERG  <wl@gnu.org>
7902         Replace atexit() with global destructor.
7904         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
7905         (xtmpfile_list_init): New global structure to deallocate
7906         xtmpfile_list on exit.  Its destructor inherits most code from
7907         remove_tmp_files().
7908         (remove_tmp_files): Deleted.
7909         (add_tmp_file): Simplified.
7911 2001-07-16  Werner LEMBERG  <wl@gnu.org>
7913         Replace strdup() with strsave().
7915         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
7916         (set_papersize): Use strsave() and a_delete.
7917         (main): Use strsave().
7918         * src/preproc/html/pre-html.cc (make_message, createAllPages,
7919         removeAllPages): Use strsave() and a_delete.
7921         * configure.ac: Remove test for strdup.
7922         * Makefile.in: Comment updated.
7923         * configure: Regenerated.
7925 2001-07-15  Werner LEMBERG  <wl@gnu.org>
7927         * win32-diffs: Updated.
7929 2001-07-14  Werner LEMBERG  <wl@gnu.org>
7931         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
7932         removing the old one.
7933         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
7935 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7937         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
7939 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
7941         Merge -xwidth into -width.  Add -xwidth functionality to -column
7942         also.
7944         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
7945         avoid warning.
7946         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
7947         string immediately following a leading dot starts with a valid mdoc
7948         argument.
7949         Add similar code to the -column branch.
7950         (doc-Bl-usage): Updated.
7951         * groff_mdoc.man: s/-xwidth/-width/.
7953 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
7955         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
7956         running into centered or non-formatted text.
7958 2001-07-11  Werner LEMBERG  <wl@gnu.org>
7960         Introduce short and long prefixes to have the selection at run-time
7961         whether there is a 8+3 limit for names of temporary files.
7963         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
7964         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
7965         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
7966         variables.
7967         (temp_init): New global structure to initialize above three
7968         variables.
7969         (xtmptemplate): Use two parameters for long and short prefix.
7970         Simplify code use above three variables.
7971         (xtmpfile): Use long and short prefixes as parameters.
7972         * src/include/lib.h: Updated.
7974         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
7975         with ...
7976         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
7977         (createAllPages, makeTempFiles): Updated.
7979 2001-07-09  Werner LEMBERG  <wl@gnu.org>
7981         * REVISION: Increased to 3.
7983 Version 1.17.2 released
7984 =======================
7986 2001-07-07  Werner LEMBERG  <wl@gnu.org>
7988         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
7989         to size_t.
7991 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
7993         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
7994         Fix synopsis.
7995         * tmac/groff_mdoc.man: Fix synopsis.
7997 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
7999         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
8000         Restore `doc-Pa-font'.
8002 2001-07-04  Werner LEMBERG  <wl@gnu.org>
8004         * src/utils/indxbib/dirnamemax.c: Moved to ...
8005         * src/libs/libgroff/maxfilename.cc: Here.
8006         s/dir_name_max/file_name_max/.
8007         Add copyright.
8008         * src/include/lib.h: Add file_name_max.
8009         * src/utils/indxbib/indxbib.cc: Updated.
8010         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
8011         Updated.
8013         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
8014         as empty.
8015         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
8017         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
8018         REGION_TEMPLATE): New macros.
8019         (createAllPages, makeTempFiles): Use them.
8020         Include `nonposix.h'.
8021         (html_system): New function.
8022         (createAllPages, createImage): Use it.
8023         Use EXE_EXT.
8025         * tmac/www.tmac: Fix typos.
8027 2001-07-03  Werner LEMBERG  <wl@gnu.org>
8029         * tmac/www.tmac: Disable hyphenation in normal text only if output
8030         device is html.
8031         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
8032         * tmac/groff_mwww.man, NEWS: Updated.
8034 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
8036         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
8037         image location.
8039 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
8041         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
8042         doc-display-ps-stack): Implement font and font size stack for
8043         displays.
8045 2001-07-02  Werner LEMBERG  <wl@gnu.org>
8047         * REVISION: Increased to 2.
8048         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
8050         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
8051         beginning of a line.
8052         * src/groff/grog/grog.sh: Ditto.
8054 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
8056         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
8057         make it portable.
8059 2001-06-27  Werner LEMBERG  <wl@gnu.org>
8061         Fix problems with preprocessor string for `man' program.
8063         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
8064         Updated/added copyright.
8065         Moved Emacs's local variable to identify nroff mode to the end of
8066         the file; add local variable if missing.
8068 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
8070         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
8071         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
8072         * configure: Regenerated.
8074 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
8076         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
8077         * configure: Regenerated.
8079 2001-06-24  Werner LEMBERG  <wl@gnu.org>
8081         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
8082         but www.tmac.
8083         * doc/pic.ms: Fix typos.
8085 Version 1.17.1 released
8086 =======================
8088 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
8090         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
8091         * configure: Updated.
8093 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
8095         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
8096         image names.
8097         * src/roff/troff/dic.cc (blank_line): Add html tag.
8099 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
8101         * src/roff/troff/input.cc (do_suppress): Fix typo.
8103 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
8105         Added two new options (-D and -I) to specify image names and a
8106         subdirectory to place the images in.
8108         Change syntax from \\Ox to \\O[x].
8110         * src/devices/grohtml/post-html.cc (main): Add options.
8111         (usage): Updated.
8112         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
8113         Use `NULL' instead of `0' for null string pointers.
8114         (MAX_RETRIES): New macro.
8115         (lengthOfintToStr, intToStr, make_message): New functions.
8116         (makeFileName): Make function static.
8117         Implement -D and -I options.
8118         (checkImageDir): New function.
8119         (write_end_image, write_start_image): Use new syntax of \O.
8120         (createAllPages, removeAllPages): Implement -D and -I options.  Use
8121         make_message().
8122         (createImage): Use make_message().
8123         (addps4html): Add guard for malloc().
8124         (usage, scanArguments): Updated.
8125         (makeTempFiles): Use mkstemp().
8126         (removeTempFiles): Use unlink().
8127         (findPrefix): Add guard for malloc().
8128         (main): Updated.
8129         * src/roff/troff/input.cc (get_delim_file_name): New function to
8130         parse \O.
8131         (do_suppress): Updated to parse new syntax.
8132         * src/devices/grohtml/grohtml.man: Updated.
8133         * tmac/www.tmac: Updated to new syntax.
8135         * NEWS: Updated.
8137 2001-06-15  Werner LEMBERG  <wl@gnu.org>
8139         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
8141         * src/devices/grohtml/grohtml.man: Minor improvements.
8143 2001-06-14  Werner LEMBERG  <wl@gnu.org>
8145         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
8147 2001-06-11  Werner LEMBERG  <wl@gnu.org>
8149         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
8150         line to specify preprocessor options -- mandb 2.3.1 only recognizes
8151         the former.
8152         * src/preproc/grn/grn.man: Add proper '\" string.
8154 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
8156         * test-groff: Don't use PATH but GROFF_BIN_PATH.
8158 2001-06-08  Werner LEMBERG  <wl@gnu.org>
8160         Updated to autoconf 2.50.
8162         * configure.in: Renamed to...
8163         * configure.ac: This.
8164         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
8165         (GROFF_OS390): Updated.
8166         * configure: Regenerated.
8168 2001-05-18  Werner LEMBERG  <wl@gnu.org>
8170         * src/roff/troff/env.c, src/roff/troff/env.h,
8171         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
8172         from 2000-12-21.
8174 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
8176         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
8178 2001-05-16  Werner LEMBERG  <wl@gnu.org>
8180         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
8181         less than or equal zero; set it to 1 then.
8182         * src/roff/troff/node.h (node::node): Initialize `last'.
8184 2001-05-08  Werner LEMBERG  <wl@gnu.org>
8186         * tmac/an-old.tmac: Make predefined strings work in compatibility
8187         mode.
8188         Add troff version guard.
8189         * tmac/doc.tmac: Simplify version guard.
8191 2001-05-07  Werner LEMBERG  <wl@gnu.org>
8193         The .ns and .rs requests are now honoured not only in the top-level
8194         but in all diversions (similar to UNIX troff).
8196         This change is based on a patch from Tadziu Hoffmann
8197         <hoffmann@usm.uni-muenchen.de>.
8199         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
8200         (top_level_diversion): Remove `no_space_mode' member.
8201         * src/roff/troff/div.cc (diversion::diversion,
8202         top_level_diversion::top_level_diversion): Updated.
8203         (macro_diversion::output): Reset `no_space_mode'.
8204         (no_space, restore_spacing): Use `curdiv' unconditionally.
8205         (space_request, blank_line): Check `curdiv->no_space_mode'.
8206         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
8207         `curdiv' unconditionally.
8208         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8209         Updated.
8211 2001-05-06  Werner LEMBERG  <wl@gnu.org>
8213         Added two new requests `de1' and `am1' which are similar to `de' and
8214         `am' with the difference that compatibility mode is saved on entry,
8215         switched off during macro execution, and restored on exit.
8217         * src/roff/troff/input.h: Added two new special characters
8218         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
8219         * src/roff/troff/input.cc (input_iterator): Added two member
8220         functions `save_compatible_flag' and `get_compatible_flag'.
8221         (input_stack): Ditto.
8222         (string_iterator): Ditto.  Also add private member
8223         `saved_compatible_flag'.
8224         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
8225         (calling_mode): New enumeration.
8226         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
8227         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
8228         (define_macro, define_indirect_macro, append_macro, ignore): Use
8229         `calling_mode'.
8230         (define_nocomp_macro, append_nocomp_macro): New functions.
8231         (init_input_requests): Updated.
8232         (do_request): Rename local variable `saved_compatible_flag' to
8233         `old_compatible_flag'.
8234         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8236         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
8237         public and trap-invoked macros.  As a consequence, the man macros
8238         work in compatibility mode also.
8240 2001-05-06  Solar Designer  <solar@openwall.com>
8242         * Makefile.in: Use $(mandir).
8244 2001-05-06  Alexios Zavras  <zvr@pobox.com>
8246         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
8248 2001-05-05  Werner LEMBERG  <wl@gnu.org>
8250         Added `.ns' number register: Returns 1 in no-space mode (if in
8251         top-level diversion), 0 otherwise.
8253         * src/roff/troff/div.cc (no_space_mode_reg): New class.
8254         (init_div_requests): Updated.
8255         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8256         Document it.
8258 2001-05-04  Werner LEMBERG  <wl@gnu.org>
8260         * src/roff/nroff/nroff.man: Improved documentation (especially
8261         locales).
8263 2001-05-02  Werner LEMBERG  <wl@gnu.org>
8265         Added `brp' request: This is \p as a request.
8267         * src/roff/troff/env.cc (environment::do_break): Add parameter
8268         `spread'.
8269         (do_break_request): New function (was `break_request').
8270         (break_request): Calls `do_break_request'.
8271         (break_spread_request): New; calls `do_break_request'.
8272         (init_env_requests): Updated.
8273         * src/roff/troff/env.h: Updated.
8274         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8276         * REVISION: Increased to 1.
8277         * win32-diffs: Updated.
8279 2001-05-01  Werner LEMBERG  <wl@gnu.org>
8281         * tmac/an-old.tmac: Fix minor compatibility mode issue.
8282         * tmac/troffrc-end: Make it really work in compatibility mode.
8284 2001-04-27  Werner LEMBERG  <wl@gnu.org>
8286         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
8287         stdlib.h.
8289 2001-04-22  Werner LEMBERG  <wl@gnu.org>
8291         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
8292         latest versions from glibc CVS archive.
8294         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
8295         <c.zeelenberg@hccnet.nl>.
8297 2001-04-21  Werner LEMBERG  <wl@gnu.org>
8299         * configure.in: Move check for mkstemp() to...
8300         * aclocal.m4 (GROFF_MKSTEMP): This new function.
8301         * configure: Regenerated.
8303         * src/include/groff-getopt.h: Don't use variable names in
8304         declarations.
8306         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
8307         * src/devices/grohtml/Makefile.sub,
8308         src/devices/grohtml/post-html.cc: Updated.
8310 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
8312         * configure.in: Add special check for mkstemp().
8313         * src/libs/libgroff/tmpfile.cc: Use it.
8314         * src/utils/indxbib/indxbib.cc: Ditto.
8315         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
8316         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
8317         `const'.
8319 2001-04-20  Bruce Lilly  <blilly@erols.com>
8321         `Version_string' as C++ object was not visible to linker from C
8322         object files.
8323         Add `const' to `Version_string'.
8325         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
8326         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
8327         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
8328         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
8329         (scanArguments), src/preproc/refer/refer.cc (main),
8330         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
8331         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
8332         (main), src/devices/grohtml/post-html.cc (main),
8333         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
8334         (main), src/utils/hpftodit/hpftodit.cc (main),
8335         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
8336         (main), src/utils/lkbib/lkbib.cc (main),
8337         src/utils/addftinfo/addftinfo.cc (main): Implement it.
8339         * src/roff/groff/pipeline.c: Add _UWIN.
8340         * src/include/nonposix.h: Ditto.
8342 2001-04-20  Werner LEMBERG  <wl@gnu.org>
8344         * src/include/lib.h: Use HAVE_STRERROR.
8345         * src/roff/groff/pipeline.c: Ditto.
8346         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
8347         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
8348         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
8349         * win32-diffs: Updated.
8350         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
8352 2001-04-19  Werner LEMBERG  <wl@gnu.org>
8354         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
8355         instead of hardwired `"troff"'.
8356         (char_buffer::read_file): Remove unused variables.
8357         (char_buffer::write_file_troff): Ditto.
8358         (char_buffer::write_file_html): Ditto.
8359         (generateImages): Ditto.
8360         (abs): Removed.
8361         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
8363         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
8365         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
8366         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
8367         index_search_item::search1): Ditto.
8368         * src/roff/troff/node.h (width_list): Reorder members.
8369         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
8370         (lookup_warning): Ditto.
8371         (prepend_string): Commented out.
8372         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
8373         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
8374         * src/preproc/tbl/main.cc (process_format): Ditto.
8375         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
8376         compiler warnings.
8377         * src/preproc/pic/pic.cc: Updated.
8378         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
8379         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
8380         * src/preproc/refer/command.cc (execute_command): Ditto.
8381         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
8382         * src/preproc/refer/token.cc (lookup_token): Ditto.
8383         * src/preproc/soelim/soelim.cc: Ditto.
8384         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
8385         (isHexDigit): Commented out.
8386         (pushBackBuffer::isString): Remove unused variable.
8387         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
8388         warning.
8389         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
8390         resource_manager::read_resource_arg, read_one_of, parse_extensions):
8391         Ditto.
8392         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
8393         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
8394         lookup_paper_size): Ditto.
8395         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
8396         (text_glob, element_list): Reorder members.
8397         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
8398         compiler warning.
8399         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
8400         return value to `void'.
8401         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
8402         of initializers.
8403         * src/devices/grohtml/html.h (simple_output::check_newline,
8404         simple_output::space_or_newline, simple_output::enable_newlines):
8405         Add return value.
8406         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
8407         compiler warnings.
8408         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
8409         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
8410         output_ligatures, output_charset, read_map): Ditto.
8411         * src/utils/lookbib/lookbib.cc (main): Ditto.
8412         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
8413         (do_file): Fix typo (`=' -> `==').
8414         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
8415         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
8417 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
8419         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
8420         Fix usage of GROFF_BIN_PATH.
8421         * src/roff/nroff/nroff.man: Updated.
8423 2001-04-18  Werner LEMBERG  <wl@gnu.org>
8425         * NEWS: Fixing typos.
8426         Updated.
8428 Version 1.17 released
8429 =====================
8431 2001-04-17  Werner LEMBERG  <wl@gnu.org>
8433         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
8434         directory, not in $(srcdir).
8436 2001-04-16  Werner LEMBERG  <wl@gnu.org>
8438         * doc/groff.texinfo: More info on conditionals.
8440 2001-04-15  Werner LEMBERG  <wl@gnu.org>
8442         * doc/groff.texinfo: Added some info about groff internals.
8444         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
8445         about missing special character only if the name is non-null.
8447 2001-04-14  Werner LEMBERG  <wl@gnu.org>
8449         Removing the grohtml-old device driver which is now obsolete.
8451         * src/devices/grohtml-old/*: Removed.
8452         * font/devhtml-old/*: Removed.
8453         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
8454         Remove comments.
8455         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
8456         * test-groff (PATH): Updated.
8457         * tmac/Makefile.sub (NORMALFILES): Updated.
8458         * tmac/an-old.tmac: Remove special code for html-old device.
8459         Replace `html-or-html-old' register with `an-html'.
8460         * tmac/eqnrc: Updated.
8461         * tmac/html-old.tmac: Removed.
8462         * tmac/troffrc, tmac/troffrc-end: Updated.
8463         * tmac/www.tmac: Remove special code for html-old device.
8464         Replace `html-or-html-old' register with `www-html'.
8466         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
8467         src/libs/libgroff/htmlindicate.cc (graphic_end),
8468         include/htmlindicate.h, src/preproc/grn/*.cc,
8469         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
8470         single argument for consistency with rest of source code.
8472         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
8474 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
8476         * src/roff/troff/troff.man: Fixing typos.
8478 2001-04-13  Werner LEMBERG  <wl@gnu.org>
8480         * doc/pic.ms: Fixing many font switches.
8481         * doc/groff.texinfo: Fixes, additions.
8482         * MORE.STUFF: Updated.
8484 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
8486         * src/devices/grohtml/grohtml.man: Updated manual page regarding
8487         simple anchor.
8488         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
8489         cropping of images.
8490         (removeTempFiles): New function to tidy up temporary files.
8491         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
8492         Many fixes to do with the new inline suppress node and image regions
8493         are much tighter.
8494         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
8495         (generate_img_src): New function.
8496         (html_printer::do_auto_image): Utilizes it.
8497         (do_heading, do_title): Include inline images within their contents.
8498         (html_printer::begin_page): Tidied up comments that are issued to
8499         the html output file.
8500         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
8501         than courier.
8502         (text_glob::is_br): New method used by do_heading.
8503         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
8504         equivalent diversion.
8505         * src/include/html-strings.h: Altered image tags to reflect the
8506         inline image node.
8507         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
8508         parameter.
8509         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
8510         it is already inside a pic image.  Only emit tags if the argument
8511         `-Tps:html' is present.
8512         * src/preproc/tbl/main.cc: Changes to reflect additional
8513         `html_end_suppress' parameter.
8514         * src/roff/troff/env.cc: Only emit eol tag if a node has been
8515         emitted since the last eol tag was written.
8516         * src/roff/troff/env.h: New boolean `emitted_node'.
8517         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
8518         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
8519         * src/roff/troff/node.cc (check_charinfo): New method. 
8520         (troff_output_file::determine_line_limits): Alterations to limit
8521         checking.
8522         * tmac/www.tmac: Changes to reflect new suppress nodes.
8523           
8524 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
8526         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
8527         Escape the html_glyph in the buffer.
8528         (str_translate_to_html): Output the unescaped escaped_char.
8529         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
8530         `frame=void', not `frame=none'.  Add `border=0'.
8532 2001-04-12  Werner LEMBERG  <wl@gnu.org>
8534         * PROBLEMS: Add some words on how to avoid wrapper macros.
8536 2001-04-11  Blake McBride  <blake@florida-software.com>
8538         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
8540 2001-04-11  Werner LEMBERG  <wl@gnu.org>
8542         * font/devlbp/Makefile.sub (CLEANADD): Set it.
8543         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
8544         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
8545         * Makefile.sub (DISTCLEANFILES): Here.
8547         * libs/libgroff/new.cc: Include `nonposix.h'.
8548         * win32-diffs: Updated.
8550 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
8552         Added skeleton macro for defunct macros.
8554         Updated documentation.
8556         When inside displays, an empty input line warning should be
8557         suppressed.  If another macro call is put inside a display,
8558         all subsequent empty lines found in that display caused a
8559         warning to be emitted.
8561         * tmac/doc.tmac (doc-defunct-macro): New macro.
8562         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
8563         (doc-restore-global-vars): Fixed typo.
8564         (doc-empty-line): Check the `doc-display-depth' register to
8565         determine whether we are inside display or not.
8567         * tmac/doc-common: Removed `Or' and `Sf' registers.
8568         Moved obsolete `Ds' macro to doc.tmac.
8570         * tmac/groff_mdoc.man: Bump document date.
8571         Document `.Vt' under ``Variable Types''.
8572         Removed documentation for obsolete `.Or' macro.
8574 2001-04-10  Werner LEMBERG  <wl@gnu.org>
8576         * NEWS: Updated.
8577         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
8579 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
8581         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
8582         (usage): Add stream argument. Don't exit.
8583         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
8584         Write --version output to stdout, not stderr.
8585         (usage): Add stream argument. Don't exit.
8586         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
8587         (usage): Add stream argument. Don't exit.
8588         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
8589         constants.
8590         (usage): Add stream argument. Don't exit.
8591         (main): Write --help output to stdout, not stderr.
8592         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
8593         (usage): Add stream argument. Don't exit.
8594         * src/devices/grops/ps.cc (main): Accept --help and --version.
8595         (usage): Add stream argument. Don't exit.
8596         * src/devices/grotty/tty.cc (main): Accept --help and --version.
8597         (usage): Add stream argument. Don't exit.
8598         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
8599         (main): Accept --help and --version.
8600         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
8601         (main): Accept --help and --version.
8602         * src/preproc/html/pre-html.cc (usage): Add stream argument.
8603         (scanArguments): Accept --help and --version.
8604         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
8605         (main): Accept --help and --version.
8606         * src/preproc/refer/refer.cc (main): Accept --help and --version.
8607         (usage): Add stream argument. Don't exit.
8608         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
8609         exit.
8610         (main): Accept --help and --version.
8611         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
8612         (main): Accept --help and --version.
8613         * src/roff/groff/groff.cc (main): Accept --help and --version.
8614         (synopsis): Add stream argument.
8615         (help): Write --help output to stdout, not stderr.
8616         (usage): Add stream argument. Don't exit.
8617         * src/roff/grog/grog.pl: Accept --help and --version.
8618         (help): New sub.
8619         * src/roff/grog/grog.sh: Accept --help and --version.
8620         * src/roff/nroff/nroff.sh: Accept --help and --version.
8621         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
8622         (usage): Add stream argument. Don't exit.
8623         (main): Accept --help and --version.
8624         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
8625         (usage): New function with stream argument, doesn't exit.
8626         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
8627         (usage): New function with stream argument, doesn't exit.
8628         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
8629         (usage): Add stream argument. Don't exit.
8630         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
8631         (main): Accept --help and --version.
8632         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
8633         exit.
8634         (main): Accept --help and --version.
8635         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
8636         (main): Accept --help and --version.
8637         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
8638         (usage): Add stream argument. Don't exit.
8640 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
8642         Fix indentation in SYNOPSIS.
8644         Updated to include changes of latest BSD mdoc version (basically,
8645         the only change is that `.Fn' and `.Fc' put a final semicolon after
8646         a function declaration in the SYNOPSIS section).
8648         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
8649         (doc-in-synopsis-section): New variable.  Updated all related
8650         functions.
8651         (doc-indent-synopsis-active): New register.
8652         (Nd, Fn, Fo): Use it.
8653         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
8654         `.Cd' with long argument line produces indented wrapped lines. 
8655         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
8656         undesirable line break to be output.
8657         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
8658         `.rs'.
8659         (Fn, Fc): Add final `;' to output.
8660         (doc-save-global-vars, doc-restore-global-vars): Updated.
8661         * tmac/doc-common: Remove `Ex' register.
8662         Updated.
8663         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
8664         copyright.
8666 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
8668         * tmac/doc.tmac (Cd): Simplify code.
8669         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
8671 2001-04-06  Werner LEMBERG  <wl@gnu.org>
8673         Implement continuous underlining for nroff mode.  To do that, a new
8674         request in the ditroff language has been added: `x u N' (N is 0
8675         or 1).
8677         \X and \Y are now transparent to end-of-sentence recognition.
8679         * src/include/printer.h (printer): Add `type' parameter to `special'
8680         method.
8681         * src/libs/libdriver/printer.cc (printer::special): Updated.
8682         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
8684         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
8685         specials of type `p'.
8686         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
8687         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
8688         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
8689         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
8690         (glyph::order): New method.
8691         (tty_printer::add_char): Use it.
8692         (tty_printer::special): New method.
8693         (tty_printer::end_page): Implement it.
8695         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
8696         * src/roff/troff/node.cc (special_node::special_node): Add parameter
8697         to set `no_init_string'.
8698         (special_node::tprint_start): Use it.
8699         (special_node::same, special_node::copy): Updated.
8700         (special_node::ends_sentence): New method.
8701         (troff_output_file::start_special): Add parameter to include
8702         inititialization of special conditionally.
8704         * src/roff/troff/env.h (environment): New member `underline_spaces'.
8705         * src/roff/troff/env.cc (do_underline_special): New function.
8706         (environment::set_font): Use it.
8707         (do_underline): Use it.  This was `underline()'.
8708         (underline): Call `do_underline()'.
8709         (continuous_underline): New function which calls `do_underline()'.
8710         (environment::newline): Use `do_underline_special()'.
8711         (init_env_requests): Updated.
8713         * NEWS, man/troff_out.man: Updated.
8715 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
8717         * font/devutf8/R.proto: Fix code of 'shc'.
8719 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
8721         Many fixes.  Diag lists can now be nested also; additionally,
8722         `-compact' and `-offset' are supported.
8724         * tmac/doc.tmac (doc-have-indent): Replaced with ...
8725         (doc-list-have-indent-stackXXX): A new register stack.
8726         (doc-have-diag-list): Removed.
8727         (Bl): Use `doc-list-have-indent-stackXXX'.
8728         (El): Updated.
8729         (doc-diag-list): Use `doc-compact-list-stackXXX'.
8730         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
8731         (doc-set-vertical-and-indent): Ditto.
8732         (doc-next-list-depth): Removed.
8733         (doc-increment-list-stack): Updated.
8734         (doc-decrement-list-stack): Use `doc-list-depth' instead of
8735         `doc-next-list-depth'.
8736         (doc-end-list, doc-end-column-list): Don't use
8737         `doc-increment-list-stack'.
8738         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
8739         (doc-save-global-vars, doc-restore-global-vars): Updated.
8740         * tmac/doc-common: Updated.
8741         * tmac/groff_mdoc.man: Updated.
8742         * NEWS: Fix typo.
8744 2001-04-02  Werner LEMBERG  <wl@gnu.org>
8746         * src/devices/grotty/grotty.man: Fix grammatical error.
8748 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
8750         Remove .Ld from mdoc package; replace it with special handling of
8751         `...'.
8753         * tmac/doc-common: Remove `Ld' register.
8754         Uncomment `doc-volume-ds-*' strings.
8755         Remove `doc-operating-system-default'.
8756         (Os): Updated.
8757         * tmac/doc-syms (Ld): Removed.
8758         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
8759         `...' specially.
8760         * NEWS: Updated.
8762         * tmac/groff_mdoc.man: Many fixes and updates.
8764 2001-03-29  Werner LEMBERG  <wl@gnu.org>
8766         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
8767         Bond <tkb@tkb.mpl.com>.
8768         * tmac/www.tmac: Save compatibility mode.
8770 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
8772         * tmac/groff_mdoc.man: Many fixes.
8774 2001-03-28  Werner LEMBERG  <wl@gnu.org>
8776         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
8777         isn't recognized.
8779 2001-03-27  Werner LEMBERG  <wl@gnu.org>
8781         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
8782         diversion.  This fixes overlong tags.
8784 2001-03-26  Werner LEMBERG  <wl@gnu.org>
8786         * doc/groff.texinfo: Fixed and improved documentation of fonts.
8787         * tmac/doc-syms: Fix error messages.
8788         * tmac/an-old.tmac: Remove incorrect double backslashes.
8790 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
8792         * tmac/Makefile.sub: Strip mdoc.local also
8793         * tmac/strip.sed: Fixed.
8795 2001-03-24  Werner LEMBERG  <wl@gnu.org>
8797         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
8798         selecting the font size.
8799         * tmac/groff_mdoc.man, NEWS: Document it.
8801 2001-03-23  Werner LEMBERG  <wl@gnu.org>
8803         * src/roff/troff/div.cc (save_vertical_space): Add default argument
8804         to `sv' request.
8805         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
8806         argument to restore previous font family.
8807         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
8809         * doc/groff.texinfo: More fixes and additions (mainly for font
8810         manipulating commands).
8812         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
8813         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
8814         * tmac/Makefile.sub, NEWS: Updated.
8816 2001-03-23  Werner LEMBERG  <wl@gnu.org>
8818         Replaced mdoc implementation.  The new version is `state of the
8819         art', using almost all new features of groff 1.17 -- it won't run
8820         with older versions.
8822         * tmac/doc.tmac: Completely rewritten.
8823         * tmac/doc-common: Ditto.
8824         * tmac/doc-nroff: Ditto.
8825         * tmac/doc-ditroff: Ditto.
8826         * tmac/doc-syms: Ditto.
8827         * tmac/mdoc.local: New file.
8828         * tmac/groff_mdoc.samples.man: Replaced with ...
8829         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
8830         * tmac/strip.sed: Updated.
8831         * tmac/Makefile.sub: Updated.
8832         * INSTALL: Updated.
8834         * tmac/groff_man.man: Add `man.local' to the FILES section.
8836 2001-03-22  Werner LEMBERG  <wl@gnu.org>
8838         * doc/groff.texinfo: Added many @noindent.
8839         Replaced @end_Example -> @endExample.
8840         Added info whether registers are r/o.
8841         Many other additions and fixes.
8843 2001-03-21  Werner LEMBERG  <wl@gnu.org>
8845         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
8846         in makeinfo of texinfo 4.0) to be used in @Def* macros.
8847         Improved @Def* macros: Now the exact syntax of request, register,
8848         and escapes is shown.
8849         Added macros for parentheses and brackets to be used in @Def*.
8850         Many fixes and improvements of the documentation.
8852 2001-03-20  Werner LEMBERG  <wl@gnu.org>
8854         * doc/groff.texinfo: Added new index: `st' (for strings).
8855         Added macros @Defstr(x).
8856         Added macro @Example (adding @group).
8857         Other minor improvements.
8859 2001-03-19  Werner LEMBERG  <wl@gnu.org>
8861         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
8862         `rq' for requests.  `fn' is no longer used.
8863         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
8864         Removed @Deffn(x).
8866         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
8867         number with name of man page.
8869 2001-03-19  Larry Kollar  <kollar@alltel.net>
8871         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
8872         consistency.
8874 2001-03-19  Werner LEMBERG  <wl@gnu.org>
8876         * man/groff_font.man: Document `prepro', `postpro', and `print'.
8877         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
8878         * src/devices/grohtml/grohtml.man: Fixing typos.
8880 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
8882         * tmac/s.tmac (@IP): Pass `.ip' html tag.
8883         * tmac/groff_mwww.man: Remove .LINE macro
8884         * tmac/www.tmac (LINE): Add `.ti'.
8886         * src/devices/grohtml/post-html.cc (html_printer): New member
8887         `indent'.
8888         (html_printer::emit_raw): Use it.
8889         (html_printer::do_linelength): Ditto.
8890         (html_printer::do_pageoffset): Ditto.
8891         (html_printer::do_indentation): Ditto.
8892         (html_printer::do_tempindent): Ditto.
8893         (html_printer::do_break): Ditto.
8894         (html_printer::begin_page): Ditto.
8895         (html_printer::do_indentedparagraph): New function.
8896         (html_printer::troff_tag): Handle `.ip'.
8897         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
8898         Add `<td width=...>' handling.
8899         (html_text::do_table): Add parameter.
8900         (html_text::do_indent): Updated.
8901         * src/devices/groohtml/html-text.h: Updated.
8903 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
8905         Introduced simple html tables to implement indentation.
8907         * src/devices/grohtml/html.h (word, word_list): New structures.
8908         (simple_output): Use it.
8909         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
8910         (html_printer): Improve indentation handling.
8911         (html_printer::emit_raw): Set `in_table' element.  Handle
8912         indentation if set.
8913         (html_printer::write_header): Move conditional downwards.
8914         Don't allow whitespace in tags.
8915         (html_printer::do_linelength): Handle line length and indentation
8916         conditionally.
8917         (html_printer::do_pageoffset): Handle indentation conditionally.
8918         (html_printer::do_indentation): Ditto.
8919         (html_printer::do_tempindent): New function member.
8920         (html_printer::do_fill): Take care of indentation.
8921         (html_printer::do_flush): Finish table.
8922         (html_printer::do_links): Ditto.
8923         (html_printer::do_break): New function for handling `.br' and `.ti'.
8924         (html_printer::troff_tag): Use it.
8925         Handle `.ti'.
8926         (html_printer::flush_globs): Fix.
8927         (html_printer::flush_page): Finish table.
8928         (html_printer::html_printer): Fix error message.  Set up
8929         `linelength'.
8930         (html_printer::add_to_sbuf): Remove special handling of character
8931         code 255.
8932         (to_unicode): Remove `stop()'.
8933         (html_printer::write_title): Cleanup.
8934         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
8935         (html_printer::~html_printer): Flush text and end the line.
8936         Use `put_string()'.
8937         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
8938         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
8939         emission of tags.
8940         (html_text::start_tag): Disable newlines.
8941         (html_text::table_is_void): New function.
8942         (html_text::issue_table_begin): Ditto.
8943         (html_text::issue_table_end): Ditto.
8944         (html_text::push_para): Better table handling.
8945         (html_text::do_indent): New function.
8946         (html_text::do_table): Ditto.
8947         (html_text::done_table): Ditto.
8948         (html_text::do_tt): Handle PRE_TAG.
8949         (html_text::is_in_table): New function.
8950         (html_text::check_emit_text): Handle tables.
8951         (html_text::do_emittext): Use `nl()'.
8952         (html_text::do_para): Handle table.
8953         (html_text::remove_def): New function.
8954         * src/devices/grohtml/output.cc (word, word_list): Implement
8955         methods.
8956         (simple_output::end_line): Flush last word.
8957         (simple_output::simple_comment): Ditto.
8958         (simple_output::begin_comment): Recoded.
8959         (simple_output::end_comment): Ditto.
8960         (simple_output::comment_arg): Removed.
8961         (simple_output::check_newline): Improve test and flush last word.
8962         (simple_output::space_or_newline): Improved.
8963         (simple_output::write_newline): Replaced with...
8964         (simple_output::nl): This.
8965         (simple_output::put_raw_char): Flush last word.
8966         (simple_output::check_space): Removed.
8967         (simple_output::put_translated_string): Ditto.
8968         (simple_output::put_string): Simplified.
8969         (simple_output::put_number): Updated.
8970         (simple_output::put_float): Ditto.
8971         (simple_output::put_symbol): Removed.
8972         (simple_output::enable_newlines): Add `check_newline()'.
8973         (simple_output::flush_last_word): New function.
8975         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
8976         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
8978         * tmac/s.tmac (@PP, @IP): Add html conditional code.
8979         * tmac/an-old.tmac (TP): Ditto.
8981 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
8983         * mdate.sh: Make it POSIX compliant.
8985 2001-03-09  Werner LEMBERG  <wl@gnu.org>
8987         Added the `return' request to end a macro immediately.  It simply
8988         pops iterators from the input stack until a macro iterator is found.
8990         * src/roff/troff/input.cc (input_iterator::is_macro,
8991         macro_iterator::is_macro): New member.
8992         (input_return_boundary): New class to signal an immediate return
8993         to while_request().
8994         (input_stack::add_return_boundary, input_stack::is_return_boundary):
8995         New functions.
8996         (input_stack::clear): Use it.
8997         (input_stack::pop_macro): New function.
8998         (while_request): Use `is_return_boundary()'.
8999         (return_macro_request): New function.
9000         (init_input_requests): Use it.
9002         * src/roff/troff/TODO: Updated.
9003         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9005 2001-03-08  Werner LEMBERG  <wl@gnu.org>
9007         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
9008         cleanup.
9010 2001-03-07  Werner LEMBERG  <wl@gnu.org>
9012         Make `\B' more rigid.
9014         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
9015         parameter.
9016         (get_number_rigidly): New function.
9017         * src/roff/troff/input.cc (do_expr_test): Use it.
9018         * src/roff/troff/token.h: Updated.
9020         * src/roff/troff/request.h: Fix typo (init_html_request ->
9021         init_markup_request).
9023 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
9025         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
9026         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
9027         are now `.begin', `.end', `.image'.
9029         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
9030         (html_printer::add_to_sbuf): Changing type of `code' parameter.
9031         Use add_char_to_sbuf().
9032         (to_unicode): New function.
9033         (char_translate_to_html): Changing type of `ch' parameter.
9034         Use `to_unicode()'.
9035         (html_printer::~html_printer): Comment out doctype string.
9036         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
9037         instead of `.html-end'.
9038         (write_start_image): Use `.begin' and `.image' instead of
9039         `.html-begin' and `.html-image'.
9040         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
9041         (html_begin): Renamed to ...
9042         (begin): This.
9043         (html_end): Renamed to ...
9044         (end): This.
9045         (html_image): Renamed to ...
9046         (image): This.
9047         (init_html_requests): Renamed to ...
9048         (init_markup_requests): This.
9049         * tmac/www.tmac: Updated.
9051 2001-02-28  Bram  <bram@avontuur.org>
9053         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
9054         constructor.
9056 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
9058         * doc/meref.me: Fixing some typos.
9060 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9062         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
9063         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
9064         * src/roff/troff/node.h: Updated.
9066 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
9068         * tmac/groff_tmac.man: Fix typo.
9070 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9072         Fixing a bug which prevented proper end-of-sentence recognition
9073         between an `unformatted' box and the following text.  As a
9074         consequence, vertical line distances are no longer preserved in
9075         boxes after a call to `.unformat' -- because boxes aren't
9076         line-oriented (contrary to diversions), this doesn't make sense
9077         anyway.
9079         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
9080         value.
9081         (vertical_size_node::set_unformat_flag): New method.
9082         * src/roff/troff/node.hh: Updated.
9083         * src/roff/troff/input.cc (word_space_node::reread,
9084         hmotion_node::reread): Reset `unformat' flag after usage.
9085         (unformat_macro): Append only if `set_unformat_flag()' returns
9086         non-zero.
9087         * src/roff/troff/troff.man: Updated.
9089 2001-02-15  Werner LEMBERG  <wl@gnu.org>
9091         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
9092         documentation of `asciify' and `unformat' requests.
9094 2001-02-13  Werner LEMBERG  <wl@gnu.org>
9096         Redesigned the `unformat' request.  It is no longer connected with
9097         `asciify' but rather uses new `reread()' methods if the `unformat'
9098         flag is set.  Additionally, the handling of space characters after
9099         unformatting has been fixed so that they retain their width.
9101         * src/roff/troff/node.h (width_list): New structure to store
9102         original widths of spaces.
9103         (node): Added `unformat' member.
9104         Replaced `num_spaces' variable with `orig_width' list.
9105         * src/roff/troff/node.cc (*node::asciify,
9106         asciify_reverse_node_list): Removed `unformat_only' flag and related
9107         code.
9108         (word_space_node::asciify, word_space_node::word_space_node): Use
9109         `orig_width'.
9110         (word_space_node::~word_space_node): New destructor.
9111         (word_space_node::copy): Updated to handle `orig_width'.
9112         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
9113         (*node::merge_space): Update `orig_width' list if necessary.
9114         (*node::set_unformat_flag): New methods to set the `unformat' flag.
9115         * src/roff/troff/enc.cc (environment::space_newline): Use
9116         `width_list'.
9117         (environment::space): Added method to handle space width and
9118         sentence space width as parameters.  Use `width_list'.
9119         (environment::make_tab_node): Updated.
9120         * src/roff/troff/env.h: Updated.
9121         * src/roff/troff/input.cc (word_space_node::reread,
9122         unbreakable_space_node::reread, hmotion_node::reread): New methods
9123         to handle nodes specially if `unformat' flag is set.
9124         (do_asciify_macro): Renamed back to ...
9125         (asciify_macro): This.
9126         (unformat_macro): New implementation to simply set the `unformat'
9127         flag.
9129         * MORE.STUFF: Added more info about deroff.
9131 2001-02-08  Werner LEMBERG  <wl@gnu.org>
9133         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9134         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
9135         and `add_self()' methods to avoid hyphenation.  For example, the
9136         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
9137         soft hyphen after `foo'.  Now the hyphen list is correctly
9138         `foo<ignore><ignore>bar'.
9140 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
9142         * tmac/groff_tmac.man: Fix `BIR' macro.
9144 2001-02-04  Werner LEMBERG  <wl@gnu.org>
9146         A new escape sequence `\:', inserting a zero-width break point.
9148         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
9149         * src/roff/troff/input.cc (get_copy, token::next, asciify):
9150         Implement it.
9151         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
9152         method.
9153         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
9154         and `asciify()' methods.
9155         * src/roff/troff/node.cc (space_node::space_node): Updated.
9156         (space_node::asciify): Handle `was_escape_colon'.
9157         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9159         Handle `\~' similar to other comparable requests.
9161         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
9162         label.
9163         (token::next): Move creation of an unbreakable_space_node to...
9164         (token::add_to_node_list): Here.
9166         Fix a bug which sometimes prevented hyphenation of words connected
9167         with `\~' or `\ ' (and other escape sequences handled as
9168         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
9169         (after a call to the `unformat' request).
9171         * src/roff/troff/env.h (environment::possibly_break_line,
9172         environment::hyphenate_line): Introducing `start_here' parameter.
9173         * src/roff/troff/env.cc (environment::space_newline,
9174         environment::space): Use it.
9175         (environment::possibly_break_line, environment::hyphenate_line):
9176         Implement it.
9177         * src/roff/troff/input.cc (process_input_stack): Use it.
9178         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9179         space_char_hmotion_node, overstrike_node): Add
9180         `get_hyphenation_type()' method.
9181         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
9182         if `unformat_only' is active.
9184 2001-01-30  Werner LEMBERG  <wl@gnu.org>
9186         Implemented new read-only number register `.linetabs' which
9187         returns 1 if in line-tabs mode, 0 otherwise.
9189         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
9190         * src/roff/troff/env.cc (get_line_tabs): New function.
9191         (init_env_requests): Use it.
9192         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9194         * VERSION, REVISION: Changing to 1.17.0.
9196 2001-01-28  Werner LEMBERG  <wl@gnu.org>
9198         Fixed a bug which prevented hyphenation of words which are finished
9199         with `\)'.
9201         * src/roff/troff/token.h (token): Add enum type
9202         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
9203         * src/roff/troff/input.cc (token::next, token::description,
9204         get_line_arg, token::add_to_node_list, token::process): Use it.
9206 2001-01-27  Werner LEMBERG  <wl@gnu.org>
9208         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
9209         * src/roff/troff/div.cc (do_divert): Use it.
9211         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
9213 2001-01-25  Werner LEMBERG  <wl@gnu.org>
9215         Adding the `linetabs' request.  If set, tab distances are not
9216         computed relative to the input line but relative to the output line.
9218         * src/roff/troff/env.h (environment): New member `line_tabs'.
9219         * src/roff/troff/env.cc (line_tabs_request): Implement request.
9220         (environment::environment, environment::copy): Updated.
9221         (environment::distance_to_next_tab): Use `line_tabs'.
9222         (init_env_requests): Register request.
9223         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
9224         fixes.
9226 2001-01-24  Werner LEMBERG  <wl@gnu.org>
9228         Introducing a new read-only register `.int' which is set to a
9229         positive value if the last output line is interrupted (i.e., if it
9230         contains `\c').
9232         * src/roff/troff/env.cc (init_env_requests): Add it.
9233         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9235 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
9237         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
9238         * src/preproc/html/pre-html.cc (findPrefix): New function which
9239         generates the troff executable name via the system prefix.
9240         * src/preproc/eqn/main.cc: Modified warning message.
9242 2001-01-23  Werner LEMBERG  <wl@gnu.org>
9244         troff's `box' and `boxa' requests didn't preserve temporary
9245         indentation.
9247         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
9248         `saved_target_text_length' members.
9249         * src/roff/troff/div.cc (do_divert): Use them.
9251         Tabs (but not yet leaders and fields) are now handled correctly by
9252         `asciify' request.
9254         * node.h (hmotion_node): Add field `was_tab'.
9255         * env.cc (environment::make_tab_node): Set it.
9256         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
9258         Added new request `unformat' which will, contrary to `asciify',
9259         preserve font information after unformatting (i.e., only nodes
9260         dealing with horizontal space are converted back to input
9261         characters).
9263         * input.cc (asciify_macro): Renamed to ...
9264         (do_asciify_macro): this, having a new parameter `unformat_only'.
9265         (asciify_macro, unformat_macro): New; using do_asciify_macro.
9266         (init_input_requests): Added `unformat'.
9267         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
9268         parameter to control asciification process.
9269         * node.h (*_node::asciify): Ditto.
9270         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9272 2001-01-20  Werner LEMBERG  <wl@gnu.org>
9274         * doc/groff.texinfo: Minor improvement of `.in' documentation.
9276 2001-01-18  Werner LEMBERG  <wl@gnu.org>
9278         * tmac/ps.tmac: Remove call of psold.tmac.
9279         * tmac/psold.tmac: Comment updated.
9280         * tmac/psnew.tmac: Removed since no longer needed.
9281         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
9283         * font/devutf8/R.proto: Adding `shc' glyph.
9284         * font/devutf8/NOTES: Updated.
9286         * test-groff: Updated.
9288 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
9290         First cut of the new html device driver.  Changes to pre-html and
9291         the new grohtml are too numerous to be documented here.
9293         Stuff related to `html' has been renamed to `html-old' and `html2'
9294         stuff has been renamed to `html' (including directories).  The new
9295         html device driver is therefore invoked as `-Thtml'.
9297         Added new `\O' escape to suppress output (needed by html driver).
9299         Added functions and code to pass info about input-level commands
9300         (`.in', `.fl', etc.) to html driver.
9302         Three new functions (.html-begin, .html-end, and .html-image) for
9303         better html handling: `html-begin' will execute the remaining line
9304         if at the outermost nesting level, increasing an internal counter.
9305         `html-end' does the same but decreases the internal counter.
9306         `html_image' puts its arguments into a special node (suppress_node)
9307         to define an image region.
9309         The `output' request has been removed.
9311         * tmac/html-tags.tmac: Removed.
9312         * tmac/arkup.tmac: Updated and renamed to ...
9313         * tmac/www.tmac: New file.
9314         * tmac/markup.tmac Updated and renamed to ...
9315         * tmac/mwww.tmac: New file.
9316         * tmac/Makefile.sub: Updated.
9317         * tmac/an-old.tmac: Updated.
9318         * tmac/eqnrc: Updated.
9319         * tmac/groff_man.man
9320         * tmac/groff_markup.man: Updated and renamed to ...
9321         * tmac/groff_mwww.man: New file.
9322         * tmac/groff_tmac.man: Updated.
9323         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
9324         * tmac/html.tmac: Updated and renamed from html2.tmac.
9325         * tmac/pspic.tmac: Updated html support.
9326         * tmac/s.tmac: Added html output support.
9327         * tmac/troffrc, tmac/troffrc-end: Updated.
9329         * Makefile.in, doc/Makefile: Updated.
9330         * doc/groff.texinfo: Added info about new `\O' escape.
9331         * doc/homepage.ms: Use `MAILTO' macro.
9333         * font/devhtml/DESC.proto: Add `C' font.
9334         * font/devhtml/Makefile.sub: Updated.
9335         * font/devhtml/R.proto: Minor fixes.
9336         * font/devhtml-old/Makefile.sub: Updated.
9338         * src/devices/grohtml-old/Makefile.sub: Updated.
9340         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
9341         method.
9342         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
9343         graphic_start): Add `inline' parameter.  Update.
9344         (html_end_suppress, graphic_end): Update.
9346         * src/include/html-strings.h: New file.
9347         * src/include/htmlindicate.h: Comments updated.
9348         * src/include/printer.h: Updated.
9350         * src/preproc/eqn/main.cc (do_file, main): Updated.
9351         * src/preproc/pic/troff.cc (troff_output::start_picture,
9352         troff_output::finish_picture): Updated.
9353         * src/preproc/tbl/main.cc (process_input_file): Updated.
9355         * src/roff/groff/groff.cc (main): Updated.
9356         Pass device arguments to predrivers also.
9357         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
9358         * src/roff/troff/env.h (environment): Updated.
9359         New elements `need_eol' and `ignore_next_eol' (for html output).
9360         * src/roff/troff/env.cc (environment::environment): Add initializers
9361         for `need_eol' and `ignore_next_eol'.
9362         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
9363         functions.
9364         (point_size, fill, no_fill, center, right_justify, line_length,
9365         indent, temporary_indent, break_request, handle_tab): Use
9366         `add_html_tag()'.
9367         (set_tabs): Use `add_html_tag_tabs()'.
9368         (environment::add_html_tag): Updated.
9369         (environment::do_break): Updated.
9370         * src/roff/troff/div.cc (space_request, flush_output): Use
9371         `environment::add_html_tag()'.
9372         * src/roff/troff/input.cc: Updated.
9373         New variable `html_level' to indicate nested `html-begin' requests.
9374         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
9375         (non_interpreted_char_node, token_node, non_interpreted_node): Add
9376         `force_tprint()' method.
9377         (token::next): Handle `\O'.
9378         (do_suppress): Implement it.
9379         (html_begin, html_end, html_image): New functions.
9380         (init_output_requests): Renamed to ...
9381         (init_html_requests): this.
9382         (main): Use it.
9383         (macro::append_str, macro::append_unsigned, macro::append_int): New
9384         methods.
9385         New variable `output_low_mark_miny' to limit minimal value of y.
9386         (reset_output_registers): Use it.
9387         (output_request): Removed.
9388         (get_output_registers): New function.
9389         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
9390         (*_node): Added `force_tprint()' if necessary.
9391         (special_node): New elements `tf' and `get_tfont()'.
9392         (suppress_node): New class.
9393         * src/roff/troff/node.cc:
9394         New global variables `image_no' and `suppress_start_page'.
9395         (real_output_file): New method `is_on()'.
9396         (troff_output_file): New method `start_special(tfont)'.
9397         (troff_output_file::really_print_line): Use `tprint' conditionally.
9398         (real_output_file::print_line): Updated.
9399         (real_output_file::on): Updated.
9400         (*_node): Added `force_tprint()'.
9401         (special_node::special_node): Initializer updated.
9402         (special_node::same, special_node::copy, special_node::tprint_start):
9403         Updated.
9404         (get_reg_int, get_reg_str): New functions.
9405         (suppress_node::*): New methods.
9406         New global variables last_position, last_image_filename;
9407         (min): New inline function.
9408         * src/roff/troff/reg.h, src/roff/troff/request.h,
9409         src/roff/troff/troff.h: Updated.
9411 2001-01-13  Werner LEMBERG  <wl@gnu.org>
9413         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
9414         documentation of `asciify' request.
9416 2001-01-12  Werner LEMBERG  <wl@gnu.org>
9418         * src/roff/troff/input.cc: Move definition of special characters
9419         like `ESCAPE_TILDE' to ...
9420         * src/roff/troff/input.h: New file.
9421         * src/roff/troff/Makefile.sub (HDRS): Add it.
9423         Extending the .asciify request to `unformat' space characters also.
9425         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
9426         to count input space characters.
9427         Update constructors to take care of it.
9428         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
9429         `ESCAPE_SPACE' instead of normal space.
9430         (word_space_node::asciify): New method.
9431         (unbreakable_space_node::asciify): New method.
9432         (word_space_node::merge_space): New method.
9433         * src/roff/troff/env.cc (environment::space_newline,
9434         environment::space): Add code to initialize `num_spaces' (using the
9435         constructor of `word_space_node').
9436         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9437         Document it.
9439 2001-01-09  Werner LEMBERG  <wl@gnu.org>
9441         * man/groff_char.man: Use table header traps only conditionally.
9443 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
9445         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
9447 2001-01-08  Werner LEMBERG  <wl@gnu.org>
9449         Introducing the `box' and `boxa' requests which are similar to
9450         `di' resp. `da' but omitting a partially filled line (which is
9451         restored after ending the diversion).
9453         * src/roff/troff/div.h (diversion): Add elements to save partially
9454         filled line.
9455         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
9456         partially filled line.
9457         (divert, divert_append): Updated.
9458         (box, box_append): New functions.
9459         (init_div_requests): Use them.
9460         * src/roff/troff/env.h (environment): do_divert() is now a friend.
9461         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9463         * doc/groff.texinfo: Fix documentation of `lf' request.
9465 2000-12-25  Werner LEMBERG  <wl@gnu.org>
9467         * src/roff/troff/troff.man, NEWS: Document `writem' request.
9469 2000-12-21  Werner LEMBERG  <wl@gnu.org>
9471         Ignore `ss' request if in compatibility mode.
9473         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
9474         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
9475         * src/roff/troff/env.cc (space_size): Use it.
9477         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
9478         `ss' request in nroff mode.
9480         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
9481         changes.
9483 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
9485         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
9487 2000-12-13  Werner LEMBERG  <wl@gnu.org>
9489         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
9490         * src/preproc/eqn/neqn.man: Small fixes and additions.
9492 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
9494         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
9495         Fixing typo.
9497         * src/preproc/eqn/neqn.man: New file.
9499         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
9500         negative' warning.
9502         * tmac/e.tmac: Add `T&' macro.
9503         Fix `indent cannot be negative' warning.
9504         * tmac/s.tmac: Fix `indent cannot be negative' warning.
9506 2000-12-07  Werner LEMBERG  <wl@gnu.org>
9508         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
9510 2000-12-06  Werner LEMBERG  <wl@gnu.org>
9512         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
9513         `alloca' symbol .
9515         * MORE.STUFF: Added info about deroff for djgpp.
9517         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
9518         documentation of -rcR switch.
9520 2000-12-03  Werner LEMBERG  <wl@gnu.org>
9522         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
9523         if -rcR=1 (which is now the default in nroff mode), a single, very
9524         long page is created instead of multiple pages: All `ne' and `wh'
9525         requests are put into conditionals; a new macro `an-end' is added to
9526         be called with `em'.
9528         Some other minor cleanups.
9530         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
9532 2000-12-02  Werner LEMBERG  <wl@gnu.org>
9534         Fixing a bug which prevented hyphenation in words followed
9535         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
9537         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
9538         Adding possibly_break_line().
9539         * src/roff/troff/env.h (environment): Make possibly_break_line()
9540         public.
9542         Make `\~' usable in .tr request.
9544         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
9545         (token): Add stretchable_space().
9546         * src/roff/troff/input.cc (token::next, token::delimiter,
9547         token::description, process_input_stack, do_translate,
9548         add_to_node_list, token::process): Use it.
9549         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
9550         for adjusting the space.
9551         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
9552         for stretchable space.
9553         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
9554         (make_node): Add code for stretchable space.
9555         * src/roff/troff/env.cc (environment::add_char): Use it.
9556         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
9557         (get_copy, token::next, transparent_translate, asciify): Use it.
9559         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
9560         doc/groff.texinfo: Updated.
9561         * man/groff.man: Small reorderings.
9563 2000-11-23  Werner LEMBERG  <wl@gnu.org>
9565         * NEWS: Fixes.
9566         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
9567         option.
9568         * src/roff/troff/input.cc (main): Add `config_macro_path' and
9569         `safer_macro_path' to -M option.
9570         * src/roff/troff/troff.man: Fixes.
9572 2000-11-22  Werner LEMBERG  <wl@gnu.org>
9574         Use safer path (except for config files) if -U isn't specified.  Add
9575         a special macro path (without home and current directory) for config
9576         files.  Add home directory to unsafe path for consistency.  Don't
9577         include the home directory in the font path.
9579         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
9580         `macro_path'.
9581         * src/include/macropath.h: Add `config_macrp_path'.
9582         * src/libs/libgroff/fontfile.cc: Fix font path.
9583         * src/roff/troff/input.cc (process_startup_file): Use
9584         `config_macro_path'.
9585         (main): Select unsafe path if -U is given.
9587         * src/preproc/eqn/main.cc (main): Fixing search path for
9588         configuration file.
9589         * src/preproc/eqn/eqn.man: Updated.
9591         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
9592         Updated.
9594         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
9595         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
9596         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9597         src/devices/grotty/grotty.man: Updated.
9599         * Makefile.in: Fix comments.
9601 2000-11-17  Werner LEMBERG  <wl@gnu.org>
9603         * tmac/safer.tmac: Empty file added (again) for compatibility
9604         reasons.
9605         * tmac/Makefile.sub: Updated.
9607 2000-11-16  Werner LEMBERG  <wl@gnu.org>
9609         * src/devices/grodvi/dvi.cc (main),
9610         src/devices/grohtml2/post-html.cc (main),
9611         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9612         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9613         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9614         (main), src/preproc/html2/pre-html.cc (main),
9615         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9616         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9617         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9618         (main), src/utils/hpftodit/hpftodit.cc (main),
9619         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
9620         (main), src/utils/lookbib/lookbib.cc (main),
9621         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
9622         (main): Use stdout for -v.
9623         * src/roff/groff/groff.cc (run_commands),
9624         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
9625         to make direct printing to stdout possible.
9626         * src/roff/groff/pipeline.h: Updated.
9628         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
9629         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
9630         * src/utils/afmtodit/afmtodit.man: Updated.
9632         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
9633         (version): New function.
9634         (usage): Updated.
9635         * src/utils/addftinfo/addftinfo.man: Updated.
9637         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
9638         Fixing copyright dates.
9640         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
9641         replacing it.
9643         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
9644         version_string.
9646         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
9648 2000-11-15  Werner LEMBERG  <wl@gnu.org>
9650         In all programs, make -v return immediately with exit status 0 to
9651         be compliant with the GNU standard.
9653         * src/devices/grodvi/dvi.cc (main),
9654         src/devices/grohtml2/post-html.cc (main),
9655         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9656         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9657         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9658         (main), src/preproc/html2/pre-html.cc (main),
9659         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9660         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9661         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9662         (main): Implement it.
9663         * NEWS: Updated.
9665         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
9666         and postprocessors to the -v option.
9668         * src/roff/grog/grog.pl: Implement -v.
9669         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
9670         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9672         * src/roff/nroff/nroff.sh: Implement -v.
9673         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
9674         * src/roff/nroff/nroff.man: Updated.
9675         
9676         * src/preproc/eqn/main.cc (main): Fix comment typo.
9678         * MORE.STUFF: Added info about djgpp port of grap.
9680 2000-11-14  Werner LEMBERG  <wl@gnu.org>
9682         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
9683         mode (or rather, implemented non-compatibility mode).
9684         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9686         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
9687         replacing it -- we don't find gxditview otherwise.
9688         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
9690         * src/preproc/pic/depend: Removed.  Unnecessary.
9692         Implemented dummy keyword `solid' in pic for compatibility with
9693         AT&T pic.
9695         * lex.cc (lookup_keyword): Added `solid'.
9696         * pic.y: Added SOLID with dummy rule.
9697         * pic.cc, pic_tab.h: Regenerated.
9698         * doc/pic.ms: Updated.
9700 2000-11-13  Werner LEMBERG  <wl@gnu.org>
9702         For security reasons, don't use the current directory but the home
9703         directory while searching and scanning troffrc and troffrc-end.
9704         Similarly, replace the current directory with the home directory
9705         in the font path.
9707         * Makefile.in (fontpath, tmacpath): Remove current directory.
9709         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
9710         two parameters `add_home' and `add_current'.
9711         (search_path::~search_path, search_path::command_line_dir,
9712         search_path::open_file): Remove tests for `dirs' being zero.
9713         * src/include/searchpath.h: Adjust.
9714         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
9715         `safer_macro_path'.
9716         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
9718         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
9719         * src/roff/troff/input.cc: Use `mac_path', initialized with
9720         `macro_path'.
9721         (process_startup_file): Set `mac_path' to `safer_macro_path'.
9722         * src/roff/troff/env.cc: Use `mac_path'.
9724         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
9726         * NEWS, man/roff.man, src/roff/troff/troff.man,
9727         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
9728         Updated.
9730 2000-11-12  Werner LEMBERG  <wl@gnu.org>
9732         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
9734         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
9735         * configure.in: Fix typo in comment.
9736         * configure: Regenerated.
9738         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
9739         copyright dates.
9741 2000-11-08  Werner LEMBERG  <wl@gnu.org>
9743         Add system tmac directory (/usr/local/lib/groff/site-tmac).
9745         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
9746         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
9747         $(systemtmacdir).
9748         Use @libdir@.
9749         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
9750         * tmac/Makefile.sub (install_data): Create
9751         $(systemtmacdir) and $(localtmacdir).
9752         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
9753         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
9754         NEWS, doc/groff.texinfo: Updated and minor fixes.
9756         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
9757         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
9758         $(systemtmacdir) since the wrapper files are platform-dependent.
9760 2000-11-01  Werner LEMBERG  <wl@gnu.org>
9762         * doc/groff.texinfo: Fix typo.
9764 2000-10-26  Werner LEMBERG  <wl@gnu.org>
9766         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
9767           tmac.doc.old -> doc-old.tmac
9768           tmac.an.old  -> an-old.tmac
9770         * tmac/tmac.*: Moved to ...
9771         * tmac/*.tmac: this.
9772         * tmac/man.local: Fix comment.
9773         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
9774         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
9775         Added some `FILES' sections.  More use of @...@ directives.  Other
9776         minor updates.
9777         * arch/djgpp/README, font/devutf8/NOTES: Updated.
9778         * doc/homepage.ms, doc/groff.texinfo: Updated.
9779         * man/groff.man, man/roff.man: Updated.
9780         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
9781         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9782         src/devices/grotty/grotty.man: Updated.
9783         * src/preproc/pic/pic.man: Updated.
9784         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
9785         instead of -mdoc.old.
9786         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
9787         * src/roff/nroff/nroff.man: Updated.
9788         * NEWS: Updated.
9790         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
9792         * tmac/mm.diff: Removed -- it has no use now since the mm package
9793         is part of groff.
9795         * tmac/*: Removed trailing spaces.
9797         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
9798         the tmac subdirectory also).
9800         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
9801         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
9802         stuff since it is no longer needed.
9804         * README, PROBLEMS: Updated.
9806 2000-10-25  Werner LEMBERG  <wl@gnu.org>
9808         Invert current behaviour: Search first FOOBAR.tmac, then
9809         tmac.FOOBAR.
9811         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
9812         (open_mac_file, macro_source): Implement it.
9813         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
9814         doc/groff.texinfo, NEWS: Document it.
9816         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
9817         Small documentation improvements.
9819         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
9820         subdirectory also).
9822         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
9824 2000-10-24  Werner LEMBERG  <wl@gnu.org>
9826         Add local tmac directory (groff/site-tmac).
9828         * Makefile.in: Add $(localtmacdir).
9829         (uninstall_dirs): Add $(localtmacdir).
9830         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
9831         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
9832         in $(localtmacdir).  Create $(localtmacdir).
9833         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
9834         Updated and minor fixes.
9836         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
9838         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
9840 2000-10-23  Werner LEMBERG  <wl@gnu.org>
9842         Move hyphen.us to tmac directory.
9844         * src/roff/troff/hyphen.us: Removed.
9845         * src/tmac/hyphen.us: Added.
9846         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
9848         Change installation structure for data files from .../groff/... to
9849         .../groff/<version><revision>/... to be conform with other GNU
9850         programs.
9852         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
9853         doc/Makefile: Implement it.
9854         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
9855         * configure: Updated.
9856         * arch/djgpp/README, font/devutf8/NOTES: Use it.
9857         * NEWS: Document it.
9858         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
9859         @MACRODIR@ instead of hard-coded directories.
9861 2000-10-22  Werner LEMBERG  <wl@gnu.org>
9863         Implement $GROFF_BIN_PATH environment variable (which defaults to
9864         $bindir) used for child programs of groff and similar wrappers.
9866         * gendefs.sh: Improve documentation.
9867         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
9868         src/preproc/eqn/Makefile.sub (neqn),
9869         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
9870         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
9871         $GROFF_BIN_PATH.
9872         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
9873         $GROFF_PATH__ (the latter for communication with troff).
9874         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
9875         set.
9876         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
9877         doc/groff.texinfo: Document it.
9879         * doc/groff.texinfo: Improve documentation of troff's -a option.
9881 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
9883         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
9884         non-intrusive eol marker.
9885         (troff_output_file::determine_line_limits): New function.
9886         (troff_output_file::draw): Use it.
9887         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
9888         output_pending_lines() instead of output_line().
9889         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
9890         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
9891         createImage): Small fixes.
9892         
9893 2000-10-14  Werner LEMBERG  <wl@gnu.org>
9895         Replace tmac.safer with a real secure solution.
9897         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
9898         system_request, pipe_output): Disable requests if in safer mode.
9899         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
9900         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
9901         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
9902         doc/groff.texinfo, src/roff/groff/groff.man,
9903         src/roff/troff/troff.man, arch/djgpp/README: Updated.
9905         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
9906         (resource_manager::output_prolog): Replace setenv() with putenv().
9908 2000-10-09  Werner LEMBERG  <wl@gnu.org>
9910         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
9911         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
9912         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
9913         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
9914         compilation errors with some compilers.  It seems that this code
9915         is no longer necessary -- if yes, it is easy to add some #ifdef's
9916         for that particular old-fashioned compiler.
9918         * MORE.STUFF: Added info about Meta-tbl.
9920         * doc/groff.texinfo: Added more info about `.if "..."..."'.
9922 2000-10-07  Werner LEMBERG  <wl@gnu.org>
9924         Adding a new escape sequence \B'...': If the string between
9925         the delimiters is a valid numeric expression, return the character
9926         `1', and `0' otherwise.  This is an analogon to \A.
9928         * src/roff/troff/input.cc (do_expr_test): Implement it.
9929         (token::next): Use it.
9930         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
9932         * tmac/tmac.trace: Made independent from escape character.
9934 2000-10-06  Werner LEMBERG  <wl@gnu.org>
9936         Adding a new request .dei: define indirect.  The first and second
9937         parameter of .dei are taken from string registers instead directly;
9938         this very special request is needed to make tmac.trace independent
9939         from the escape character (which might even be disabled).
9941         * src/roff/troff/input.cc (do_define_macro): Implement it.
9942         (define_macro_indirect): New function.
9943         (init_input_requests): Use it.
9945         Adding two requests .ecs and .ecr: Save and restore the escape
9946         character.  These two requests are needed to make tmac.trace
9947         independent from the escape character (which might even be
9948         disabled).
9950         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
9951         Implement it.
9952         (init_input_requests): Use it.
9954         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9956 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
9958         Adding a new option -P and new environment variable GROPS_PROLOGUE
9959         to grops, selecting a different prologue file (minor modifications
9960         by WL).
9962         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
9963         src/devices/grops/ps.cc (main): Implement it.
9964         * src/devices/grops/grops.man, NEWS: Document it.
9966 2000-09-22  Werner LEMBERG  <wl@gnu.org>
9968         * INSTALL: Add info about selecting paper format.
9970 2000-09-21  Werner LEMBERG  <wl@gnu.org>
9972         * src/roff/troff/input.cc (main): Fixing compiler warning.
9973         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
9974         strings.h from the former to the latter.
9975         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
9976         stuff from the former to the latter.
9978 2000-09-11  Werner LEMBERG  <wl@gnu.org>
9980         Implementing two new requests .tm1 and .tmc: The former is similar
9981         to .tm but can output leading spaces; its syntax is similar to
9982         defining a string, i.e., a `"' can be used to mark the beginning of
9983         the string to be written to stderr: `.tm1 " test'.  The latter is
9984         similar to .tm1 but doesn't write out a final newline character.
9986         * src/roff/troff/input.cc (terminal1, terminal_continue,
9987         do_terminal): New functions.
9988         (init_input_requests): Use them.
9989         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9991 2000-09-09  Werner LEMBERG  <wl@gnu.org>
9993         * tmac/groff_mdoc.samples.man: Small fixes.
9995 2000-09-08  Werner LEMBERG  <wl@gnu.org>
9997         * tmac/groff_mdoc.man: Fixing typo.
9999 2000-09-02  Werner LEMBERG  <wl@gnu.org>
10001         Implementing a .nop request which does nothing.
10003         * src/roff/troff/input.cc (nop_request): New function.
10004         (init_input_requests): Use it.
10005         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10007 2000-09-01  Werner LEMBERG  <wl@gnu.org>
10009         * doc/groff.texinfo: Added some comments.
10011 2000-08-30  Werner LEMBERG  <wl@gnu.org>
10013         * src/roff/troff/TODO: Updated.
10015 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10017         * doc/groff.texinfo: Fix comment how to compile the DVI file.
10019 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
10021         * font/devps/generate/Makefile (SHELL): Define explicitly to
10022         "/bin/sh", for non-Unix platforms.
10023         (extraclean): Use a more portable "" quoting instead of a
10024         backslash (which doesn't work on DOS/Windows).
10025         
10026         * font/devlj4/generate/Makefile (extraclean): Ditto.
10028         * font/devdvi/generate/Makefile (extraclean): Ditto.
10030 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10032         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
10033         src/roff/troff/troff.man: Document Eli's latest changes.
10035 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
10037         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
10038         macro file names of the form NAME.tmac as well as tmac.NAME.
10040 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10042         * src/include/posix.h: Remove definition of FILENAME_MAX.
10044         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
10045         `sys_fatal' and `stop' function().
10047         * test-groff: Updated.
10049 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
10051         Added the new troff command .output <arg> to suppress output (while
10052         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
10053         registers (for passing the output dimensions to the output device).
10055         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
10056         parameter.
10057         * src/roff/troff/node.h, src/roff/troff/node.cc
10058         (troff_output_file::really_print_line,
10059         ascii_output_file::really_print_line,
10060         supress_output_file::really_print_line): Use `width' parameter.
10061         (troff_output_file::really_on, troff_output_file::really_off,
10062         output_file::on, output_file::off, real_output_file::on,
10063         real_output_file::off, real_output_file::really_on,
10064         real_output_file::really_off): New functions.
10065         (real_output_file:public output_file): New variable `output_on'.
10066         (real_output_file::begin_page, real_output_file::copy_file,
10067         real_output_file::transparent_char, real_output_file::print_line):
10068         Use it.
10069         (real_output_file::print_line): Use check_output_limits.
10070         * src/roff/troff/reg.h, src/roff/troff/request.h,
10071         src/roff/troff/input.cc (assign_registers): New function to remove
10072         two `goto's.
10073         (do_ps_file): Use it.
10074         (check_output_limits, reset_output_registers, output_request,
10075         init_output_requests): New functions.
10076         (init_input_requests): Updated.
10078         Added new grohtml2 device and html2 preprocessor (coding
10079         not yet finished) which will eventually replace grohtml.
10081         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
10082         Updated.
10083         * src/include/htmlindicate.h, src/include/htmlindicate
10084         (html_begin_suppress, html_end_suppress): New functions.
10085         * src/preproc/tbl/main.cc: Use it.
10086         * src/roff/groff/groff.cc: Add support for html2 device (which will
10087         automatically invoke the html2 preprocessor).
10088         * src/roff/troff/input.cc (is_html2): New variable.
10089         * src/roff/troff/troff.h, src/roff/troff/env.h,
10090         src/roff/troff/env.cc (environment::add_html_tag): New function
10091         (uses `is_html2').
10092         (environment::do_break): Use it.
10093         * font/devhtml2/*: New files.
10094         * src/devices/grohtml2: New device.
10095         * src/preproc/html2: New preprocessor.
10096         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
10098 2000-08-23  Werner LEMBERG  <wl@gnu.org>
10100         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
10102 2000-08-22  Werner LEMBERG  <wl@gnu.org>
10104         * src/include/lib.h: Provide a fix for IRIX to not include
10105         groff-getopt.h.
10107 2000-08-18  Werner LEMBERG  <wl@gnu.org>
10109         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
10110         since some non-GNU sed programs can't handle null regexps.
10111         * configure, src/preproc/eqn/Makefile.sub,
10112         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
10114         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
10115         bug (string.h and strings.h are both needed according to latest
10116         POSIX standard).
10118         * MORE.STUFF: Added info about unroff and troffcvt.
10120 2000-08-08  Werner LEMBERG  <wl@gnu.org>
10122         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
10123         used before -ms.
10125         * tmac/tmac.man.old: Remove unused number register.
10127         * tmac.doc: Minor documentation fix.
10129 2000-08-07  Paul Eggert  <eggert@twinsun.com>
10131         * src/roff/groff/pipeline.c (is_system_shell):
10132         Fix typo: "monocased_shell" no longer exists.
10134 2000-08-07  Paul Eggert  <eggert@twinsun.com>
10136         Remove FILENAME_MAX limits.
10138         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
10139         that the argument length is less than FILENAME_MAX.
10140         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
10141         Use struct hack to allocate and free file name.
10142         (struct xtmpfile_list): fname is now part of the structure,
10143         not a pointer to another string.
10145 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
10147         * src/include/posix.h: Add a default value for FILENAME_MAX.
10149 2000-08-06  Paul Eggert  <eggert@twinsun.com>
10151         Add support for new BSD-style man pages (with ".Dd" instead of
10152         ".TH"), so that "groff -man" understands both styles, even
10153         when running "groff -man" on a host whose system man page
10154         macros don't support ".Dd".
10156         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
10157         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
10158         in case the system man macros don't define Dd or TH.
10160         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
10161         * tmac/tmac.an: New one-line file.
10162         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
10164 2000-08-06  Werner LEMBERG  <wl@gnu.org>
10166         * src/roff/troff/troff.man: Fixing typos.
10168 Version 1.16.1 released
10169 =======================
10171 2000-07-31  Werner LEMBERG  <wl@gnu.org>
10173         Preparing release 1.16.1.
10175         * REVISION: Revision number set to 1.
10176         * MORE.STUFF: Added info about port to DOS.
10177         * NEWS, win32-diffs: Updated.
10179         * src/include/nonposix.h: Remove first line -- this file is used
10180         in C also.
10182         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
10183         link to it.
10185 2000-07-30  Werner LEMBERG  <wl@gnu.org>
10187         * doc/texinfo.tex: Update to latest version.
10189 2000-06-28  Paul Eggert  <eggert@twinsun.com>
10191         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
10192         commands that fail.  Don't assume that "export a=b" is valid shell
10193         syntax.  This is needed for Solaris 2.5.1.
10195         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
10196         comment about missing Solaris headers.
10198         * PROBLEMS: Add section about problems with Sun Make and VPATH.
10200 2000-06-25  Werner LEMBERG  <wl@gnu.org>
10202         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
10203         SET_BINARY().
10205         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
10207         * win32-diffs: Updated.
10208         * README.WIN32: Added CRs to make all Windows editors happy.
10210         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
10211         src/roff/groff/pipeline.c).
10213 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
10215         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
10216         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
10218 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
10220         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
10221         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
10222         are binary files.
10223         (main): Support non-Posix systems with several different styles of
10224         slash characters in file names.
10226         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
10227         (main) [SET_BINARY]: Switch stdin into binary mode.
10229         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
10230         (main): Support file names with several possible slash-type
10231         characters, as given by DIR_SEPS[] in nonposix.h.
10232         (main) [__MSDOS__]: If renaming the temporary index file fails
10233         because it has more than one dot in its trunk, replace the dot
10234         with an underscore and try again.
10235         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
10236         Newline.
10237         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
10239         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
10240         (File::File): Open the input file in binary mode.  Strip CR
10241         characters from each CR-LF pair.
10242         (xbasename): Support file names with several possible slash-type
10243         characters, as given by DIR_SEPS[] in nonposix.h.
10245         * src/include/Makefile.sub (HDRS): Add nonposix.h.
10247         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
10248         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
10249         [!_POSIX_VERSION]: Define for traditional Unix systems.
10250         (real_output_file::real_output_file): Remove the MSVC-specific
10251         call to popen, use instead POPEN_WT, appropriately defined on
10252         nonposix.h.  #include nonposix.h.
10253         (real_output_file::~real_output_file): Remove the MSVC-specific
10254         call to pclose, a suitable macro is now defined on nonposix.h.
10255         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
10256         and WEXITSTATUS instead of assuming traditional Unix
10257         interpretation of the status returned by pclose.
10259         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
10260         call to popen, use POPEN_RT instead (appropriately defined on
10261         nonposix.h).  #include nonposix.h.
10262         (ps_bbox_request): Open the PostScript file in binary mode.
10263         Close the file after processing it.
10264         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
10265         nonposix.h.
10267         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
10268         A version of run_pipeline that doesn't use `fork'.
10269         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
10270         (system_shell_name, system_shell_dash_c)
10271         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
10272         the ugliness of testing DOS/Windows file names for equality, and
10273         support both stock shells and ports of Unix shells.
10275         * src/roff/groff/groff.cc: #include nonposix.h.
10276         (BSHELL): Definition moved to nonposix.h.
10277         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
10278         instead of a literal "-c".
10279         (xbasename): Support file names with several possible slash-type
10280         characters, as given by DIR_SEPS[] in nonposix.h.
10281         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
10282         of literal strings.
10284         * src/preproc/soelim/soelim.cc: #include nonposix.h.
10285         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
10287         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
10288         pic_tab.h.
10290         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
10292         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
10293         eqn_tab.h.
10295         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
10297         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
10298         P_tmpdir is defined, use it instead of the literal "/tmp".
10299         (remove_tmp_files, add_tmp_file): New functions.
10300         (xtmpfile): Record temporary files and register an atexit function
10301         to delete them explicitly, instead of relying on the OS to do
10302         that, which doesn't work on non-Unix systems.
10304         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
10305         (search_path::search_path): Use PATH_SEP instead of a literal
10306         colon.
10307         (search_path::command_line_dir): Ditto.
10308         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
10309         to support non-Posix systems.
10311         * src/libs/libbib/search.cc: #include nonposix.h.
10312         (search_list::add_file): Open the file in binary mode.
10314         * src/libs/libbib/linear.cc: #include nonposix.h.
10315         (file_buffer::load): Remove \r characters preceding \n from the
10316         loaded buffer.
10318         * src/libs/libbib/index.cc: #include nonposix.h.
10319         (make_index_search_item): Open index_filename in O_BINARY mode.
10320         (index_search_item_iterator::get_tag): Ditto.  Remove \r
10321         characters before \n characters.
10322         (index_search_item::check_files): Open files in binary mode.
10323         (index_search_item::munge_filename): Support DOS-style file names
10324         with backslashes and drive letters, use IS_ABSOLUTE.
10326         * src/devices/grops/ps.cc: #include nonposix.h.
10327         (main) [SET_BINARY]: Switch stdout to binary mode.
10329         * src/devices/grolj4/lj4.cc: #include nonposix.h.
10330         (main) [SET_BINARY]: Switch stdout to binary mode.
10332         * src/devices/grolbp/lbp.cc: #include nonposix.h
10333         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
10335         * src/devices/grodvi/dvi.cc: #include nonposix.h.
10336         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
10337         nonposix.h).
10338         (main) [SET_BINARY]: Switch stdout to binary mode.
10339         [_MSC_VER]: Remove an explicit call to _setmode.
10341         * src/include/nonposix.h: New file.
10343         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
10344         operation when building with DJGPP.
10345         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
10346         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
10347         ENVSETUP.
10349         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
10350         MS-DOS.
10351         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
10352         etc. can include a semi-colon on DOS/Windows.
10353         (depend.temp): Use depend1.temp instead of depend.temp1, to
10354         prevent files from overerwiting each other on 8+3 filesystems.
10356         * gendef.sh (t): Change definition to work with DOS/Windows.
10358         doc/groff.texinfo: Apart of some typo corrections, I also changed
10359         some index entris, to make them more non-ambiguous, and also put
10360         @ignore around some parts that are not yet written, to allow the
10361         Info output be readable.
10363 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
10365         Replaced specific checks for function declarations with a generic
10366         routine taken from GNU bfd.
10368         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
10369         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
10370         * configure.in: Use it.
10371         * src/devices/grolbp/lbp.cc, src/include/lib.h,
10372         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
10373         src/roff/groff/groff.cc: Use it.
10374         * Makefile.in, configure: Updated.
10376 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
10378         * src/devides/grolbp/lbp.h: Removed unused variables.
10380 2000-05-31  Keith Thompson  <kst@sdsc.edu>
10382         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
10383         strncasecmp().
10385 2000-05-31  Werner LEMBERG  <wl@gnu.org>
10387         * aclocal.m4 (GROFF_SRAND): New function to test the return value
10388         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
10389         * configure.in: Use it.
10390         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
10391         * configure, Makefile.in: Updated.
10393         * configure.in: Add test for strncasecmp().
10394         * src/include/lib.h: Use it.
10396 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
10398         * src/preproc/grn/Makefile.sub: Add MLIB.
10400 2000-05-29  Nix  <nix@esperi.demon.co.uk>
10402         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
10404 2000-05-29  Werner LEMBERG  <wl@gnu.org>
10406         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
10408         * PROBLEMS: Small update.
10410         * src/devices/grolbp/lbp.cc: Various small fixes.
10412 2000-05-28  Keith Thompson  <kst@sdsc.edu>
10414         * src/roff/nroff/nroff.sh: Fix main loop syntax.
10416         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
10418 2000-05-25  Werner LEMBERG  <wl@gnu.org>
10420         * man/roff.man: Removed unused macro.
10422 2000-05-24  Werner LEMBERG  <wl@gnu.org>
10424         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
10425         This is needed e.g. if you do
10426         `make distclean; ./configure; make dist'.
10428 Version 1.16 released
10429 =====================
10431 2000-05-23  Werner LEMBERG  <wl@gnu.org>
10433         Adding font CWI (constant width italic) to devdvi.
10435         * font/devdvi/CWI: New file.
10436         * font/devdvi/generate/Makefile: Add generating rule.
10437         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
10438         tmac/tmac.dvi: Use it.
10439         * NEWS: Announce it.
10441         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
10442         * font/devlj4/generate/Makefile: Cosmetic changes only.
10444         * man/groff.man: Removed most of the redundant description of
10445         special characters (which is in groff_char.man).  Added font
10446         translation CB->CR for devdvi.  Other minor fixes.
10448         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
10449         (registered) symbols.
10451 2000-05-22  Werner LEMBERG  <wl@gnu.org>
10453         * doc/Makefile: Added rule for creating info files.
10455         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
10456         AMS font metrics.
10457         * font/devdvi/generate/Makefile: Fixed dependencies.
10459         * font/devps/*: Regenerated.  Heavy changes for Bookman and
10460         NewCentury Schoolbook!
10461         * font/devps/generate/afmname: Will now run with GNU awk.
10462         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
10463         * font/devps/generate/Makefile: Cosmetic changes only.
10465 2000-05-21  Werner LEMBERG  <wl@gnu.org>
10467         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
10468         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
10469         `.SS' now produces a heading with a smaller size than `.SH'. 
10470         Completely formatted.
10471         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
10473         * man/groff.man: Improved table appearance.  Use of `eo' request
10474         to reduce number of doubled backslashes in macro definitions.
10475         Replacing `\e' with `\(rs'.  Other minor fixes.
10477         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
10478         to have correct line number.
10480         * INSTALL: Small improvement.
10482 2000-05-20  Bernd Warken  <bwarken@mayn.de>
10484         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
10485         WL).
10487 2000-05-19  Bernd Warken  <bwarken@mayn.de>
10489         * man/groff.man: Complete update (with a lot of corrections by WL).
10491 2000-05-18  Werner LEMBERG  <wl@gnu.org>
10493         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
10495         * font/*/*: Implement it.
10496         * man/groff_char.man, NEWS: Document it.
10498         * src/include/unix.h: Removed.  It isn't used.
10500         * doc/groff.texinfo: Slight improvements.
10502 2000-05-17  Werner LEMBERG  <wl@gnu.org>
10504         * README, win32-diffs: Small fixes and improvements.
10506 2000-05-16  Werner LEMBERG  <wl@gnu.org>
10508         * FDL: New file (the Free Documentation License version 1.1).
10510         * doc/groff.texinfo: Added many start-up values for gtroff.
10511         Some structural improvements of the source code.
10513 2000-05-15  Werner LEMBERG  <wl@gnu.org>
10515         * src/roff/troff/input.cc: Added small comment about troffrc-end.
10516         * src/roff/troff/troff.man: Added info about troffrc-end.
10518 2000-05-14  Werner LEMBERG  <wl@gnu.org>
10520         * Makefile.in (EXTRADIRS): Fix typos.
10521         (dist): Handle deletion of old .tar.gz file correctly.
10522         (DISTDIRS): Include all tty output devices.
10524         * doc/groff.texinfo: Adding more cross references; countless other
10525         fixes.
10527 2000-05-13  Werner LEMBERG  <wl@gnu.org>
10529         * MORE.STUFF: Added Robert Marks's utilities.
10531 2000-05-12  Werner LEMBERG  <wl@gnu.org>
10533         Added win32 port contributed by Blake McBride
10534         <blake@florida-software.com>.
10536         * README.WIN32, win32-diffs: New files.
10537         * NEWS: Updated.
10539         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
10540         (tmove, tmove2): Added parentheses to avoid compiler warnings.
10541         (change): Removed unused variables.
10543         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
10544         (savebounds): Changed return value from `int' to `void'.
10545         * src/preproc/grn/hdb.cc: Ditto.
10547         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
10548         final backslash in comment to avoid compiler warning.
10550         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
10552         * doc/groff.texinfo: More fixes.
10554 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
10556         * tmac/tmac.doc: Documentation fix.
10558 2000-05-11  Werner LEMBERG  <wl@gnu.org>
10560         * doc/groff.texinfo: Reading the source code shows up a lot of
10561         omissions and incorrect data...  More conversion to @Deffn macros.
10563 2000-05-10  Werner LEMBERG  <wl@gnu.org>
10565         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
10566         dependency.
10568         * src/roff/troff/request.h: Removing unused `no_break_flag'.
10570 2000-05-09  Werner LEMBERG  <wl@gnu.org>
10572         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
10573         improvements.
10575         * doc/groff.texinfo: Extended history section.  More conversion to
10576         @Deffn macros.  More .tr documentation.
10578 2000-05-07  Werner LEMBERG  <wl@gnu.org>
10580         * doc/groff.texinfo: Completed tab section.  Added info about
10581         fields.
10583 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
10585         * PROBLEMS: Describe configure script fix for OS/390 Unix.
10587 2000-05-05  Werner LEMBERG  <wl@gnu.org>
10589         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
10590         LaTeX 2e).
10591         * NEWS: Document it.
10593         * man/troff.man: Minor optical improvements.
10595 2000-05-03  Werner LEMBERG  <wl@gnu.org>
10597         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
10599         * font/*/*: Implement it.
10600         * man/groff_char.man, NEWS: Document it.
10602 2000-05-02  Werner LEMBERG  <wl@gnu.org>
10604         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
10605         expansion.
10606         * NEWS: Document the three new man pages.
10608         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
10609         * configure: Updated.
10611         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
10613 2000-05-01  Werner LEMBERG  <wl@gnu.org>
10615         Added grap support to grog.
10617         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
10618         * src/roff/grog/grog.man: Document it.
10620         * doc/groff.texinfo, NEWS: Add info about grap support.
10622         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
10623         (with slight fixes by me).
10625         * tmac/groff_tmac.man: New file documenting tmac mechanism.
10626         * tmac/Makefile.sub: Add groff_tmac.man.
10627         * man/roff.man: New file giving overview of roff system.
10628         * man/troff.man: A short reference of troff.
10629         * man/Makefile.sub: Add roff.man and troff.man.
10631 2000-04-30  Werner LEMBERG  <wl@gnu.org>
10633         Added grap support to groff.
10635         * src/roff/groff/groff.cc: Implement it.
10636         * src/roff/groff/groff.man: Document it.
10638         * src/devices/grotty/grotty.man: Add cp1047 device.
10639         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
10640         Ditto.
10641         * src/roff/groff/groff.man: Ditto.
10642         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
10643         * doc/groff.texinfo: Ditto.
10645         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
10646         for cp1047.
10648 2000-04-29  Werner LEMBERG  <wl@gnu.org>
10650         * man/groff_char.man: Add `pc' glyph.
10651         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
10652         * tmac/tmac.tty: Add `pc' glyph.
10653         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
10654         we use cp1047 output device.
10656         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
10657         there are still hardcoded latin1->unicode values in utf8's font
10658         definition files.
10659         * configure: Updated.
10660         * NEWS: Minor clarification.  Updated.
10662         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
10663         Unix.
10665 2000-04-28  Werner LEMBERG  <wl@gnu.org>
10667         Adding EBCDIC code page 1047.
10669         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
10670         font/devcp1047/DESC.proto: New files.
10672         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
10673         either ascii/latin1 or cp1047.
10674         * Makefile.in: Use it.
10675         * configure: Updated.
10677         Replacing and/or adding `md' (mathdot) glyph with `pc'
10678         (periodcentered) in all text fonts.
10680         * font/*/*: Change it.
10682 2000-04-27  Werner LEMBERG  <wl@gnu.org>
10684         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
10686         * configure.in: Add check for strings.h.
10687         * src/include/driver.h: Use HAVE_STRINGS_H.
10688         * src/devices/grolbp/lpb.cc: Remove string.h.
10690         * src/include/groff-getopt.h: New file.  It will be used instead of
10691         getopt.h (to be included in lib.h) to avoid endless problems with
10692         picky C++ compilers.
10693         * src/include/lib.h: Use groff-getopt.h.
10694         * src/include/Makefile.sub: Updated.
10696         * configure: Updated.
10697         * Makefile.in: Updated.
10699         * NEWS: Mention EBCDIC support.
10701 2000-04-26  Werner LEMBERG  <wl@gnu.org>
10703         * TODO: Some additions.
10705 2000-04-25  Werner LEMBERG  <wl@gnu.org>
10707         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
10708         of mso request.
10710 2000-04-23  Werner LEMBERG  <wl@gnu.org>
10712         * src/roff/troff/troff.man: Minor fixes.
10714 2000-04-22  Werner LEMBERG  <wl@gnu.org>
10716         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
10717         `.T' string register and the incompatible definition of the `.T'
10718         number register (compared to Unix troff).
10720         * man/groff_char.man: Add some missing characters.
10721         * font/devutf8/NOTES: Update.
10723 2000-04-21  Werner LEMBERG  <wl@gnu.org>
10725         * src/include/htmlindicate.h, src/include/lib.h,
10726         src/include/posix.h: Fix copyright.
10728         * src/include/Makefile.sub: Update.
10730 2000-04-20  Werner LEMBERG  <wl@gnu.org>
10732         * src/roff/troff/input.cc (input_char_description): Removing
10733         superfluous space char.
10735         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
10737         * doc/groff.texinfo: Document EBCDIC.
10739 2000-04-19  Werner LEMBERG  <wl@gnu.org>
10741         Introducing `shc' as the glyph name for the soft hyphen character.
10743         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
10744         font/devlatin1/R.proto: Use it.
10746         * NEWS: Updated.
10748 2000-04-18  Werner LEMBERG  <wl@gnu.org>
10750         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
10751         dependency on ASCII order.
10753 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
10755         * src/libs/libgroff/illegal.c: Added EBCDIC table.
10756         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
10758         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
10759         to increase portability.
10761 2000-04-15  Werner LEMBERG  <wl@gnu.org>
10763         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
10764         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
10765         the generic `\n' if under OS/390 Unix.
10767         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
10769         * configure: Regenerated.
10771 2000-04-14  Werner LEMBERG  <wl@gnu.org>
10773         * doc/groff.texinfo: More conversions to @Deffn.
10775 2000-04-12  Werner LEMBERG  <wl@gnu.org>
10777         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
10778         with `:'.
10780         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
10782 2000-04-10  Werner LEMBERG  <wl@gnu.org>
10784         * doc/groff.texinfo: More conversions to @Deffn.
10786 2000-04-08  Werner LEMBERG  <wl@gnu.org>
10788         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
10789         Updated to latest version (glibc 2.1.3).
10791 2000-04-07  Werner LEMBERG  <wl@gnu.org>
10793         * doc/Makefile (clean): Include more index files.
10794         Add rule texinfo->dvi.
10796 2000-04-05  Werner LEMBERG  <wl@gnu.org>
10798         * doc/groff.texinfo: Added new index `op' for operators.  More
10799         info on end of sentence characters.  More use of @Deffn.
10801 2000-03-30  Werner LEMBERG  <wl@gnu.org>
10803         * */*.man: Adding a note that a whitespace can be inserted between
10804         a command line option and its parameter -- we are using GNU getopt.
10806         * src/roff/groff/groff.man: Add example of `-m mandoc'.
10808 2000-03-28  Werner LEMBERG  <wl@gnu.org>
10810         Correct anachronism of calling the man macro file with `-man'
10811         instead of `-m man' etc.
10813         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
10814         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
10815         load tmac.<package>.
10817         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
10819         * NEWS: Updated.
10821         * doc/groff.texinfo: Updated.
10823         * tmac/groff_man.man: Copyright added.
10825 2000-03-27  Werner LEMBERG  <wl@gnu.org>
10827         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
10828         typeset the request resp. escape name with a tt font -- due to a
10829         bug in texinfo.tex it is necessary to use the `-e' switch with
10830         texi2dvi.
10832         Improving info about usage of groff units.
10834         Other minor fixes.
10836 2000-03-20  Werner LEMBERG  <wl@gnu.org>
10838         * doc/groff.texinfo: Added section about man macro package
10839         (I've basically taken groff_man.man).  Introducing new indices `ma'
10840         for macros/strings and `gl' for glyph names.  Other minor fixes.
10842         * tmac/groff_man.man: Fixed some typos.
10844 2000-03-19  Werner LEMBERG  <wl@gnu.org>
10846         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
10847         Other minor fixes.
10849         * doc/texinfo.tex: New file.
10851 2000-03-18  Werner LEMBERG  <wl@gnu.org>
10853         * doc/groff.texinfo: Improved section on number registers.  Other
10854         minor updates.
10856 2000-03-16  Werner LEMBERG  <wl@gnu.org>
10858         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
10859         synopsis.
10861         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
10862         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
10863         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
10864         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
10866         * src/preproc/grn/grn.man: Better synopsis; added copyright.
10868         * src/roff/grog/grog.man: Updated copyright date.
10870 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
10872         * configure.in: Added test for strdup.
10874         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
10875         is available.
10877         Replaced dynamic allocation of arrays `[...]' with `new' operator.
10879         Other minor fixes.
10881 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
10883         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
10885 2000-03-11  Werner LEMBERG  <wl@gnu.org>
10887         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
10888         compilers silent.
10889         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
10890         * src/include/lib.h: Remove some spaces.
10892 2000-03-10  Werner LEMBERG  <wl@gnu.org>
10894         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
10895         initializers from arguments (some compilers don't like this).
10897 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
10899         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
10900         used by pic and eqn to tell grohtml where the graphic regions start
10901         and end.
10902         * src/libs/libgroff/Makefile.sub: Use it.
10903         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
10904         graphic_start() and graphic_end() from htmlindicate.cc.
10906 2000-03-09  Werner LEMBERG  <wl@gnu.org>
10908         * tmac/tmac.safer: Will now work correctly in compatibility mode.
10909         * tmac/groff_man.man: More fixes.
10911 2000-03-08  Werner LEMBERG  <wl@gnu.org>
10913         * doc/Makefile: Added texput.log to the `clean' target.
10914         * doc/groff.texinfo: Added info about delimiters for escapes.
10916 2000-03-08  Bernd Warken  <bwarken@mayn.de>
10918         * src/preproc/pic/pic.man: Add info on conversion of pic images to
10919         other graphic formats.
10921 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
10923         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
10924         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
10925         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
10926         files.
10928 2000-03-07  Werner LEMBERG  <wl@gnu.org>
10930         * doc/groff.texinfo: Spelling fixes.
10932 2000-03-06  Werner LEMBERG  <wl@gnu.org>
10934         * tmac/groff_man.man: Completely revised to cover everything in
10935         tmac.an.
10937         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
10938         Other minor fixings.
10939         * src/roff/troff/env.cc (environment_copy): Improve error message and
10940         fix itoa->i_to_a.
10941         * src/roff/troff/TODO: Updated.
10943         * doc/Makefile: Bug fixes -- this is still provisional, though...
10945         * tmac/eqnrc: Small fixes.
10947 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
10949         Adding a request `evc' to copy environments.
10951         * src/roff/troff/env.cc (environment::copy, environment_copy):
10952         Implement it.
10953         * src/roff/troff/env.h: Add prototype.
10955 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
10957         Adding strsep() -- Solaris 8 doesn't have it.
10959         * configure.in: Test it.
10960         * src/devices/grolbp/lbp.cc: Add code.
10962 2000-03-05  Werner LEMBERG  <wl@gnu.org>
10964         * src/roff/troff/div.cc (macro_diversion::output,
10965         top_level_diversion::output): Fixing an incompatibility with
10966         original troff: \x'0' updates the .a register also.  Thanks to
10967         <Andries.Brouwer@cwi.nl> for pointing this out.
10968         * doc/groff.texinfo: Document it.
10970         * Makefile.in: Create Makefile.dep if necessary before calling the
10971         submake process to avoid warning about nonexistent file.
10973         * NEWS, PROJECTS: Updated.
10975 2000-03-04  Werner LEMBERG  <wl@gnu.org>
10977         * tmac/troffrc: Add tmac.lbp.
10979 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
10981         * tmac/tmac.lbp: New file.
10982         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
10983         command.
10985 2000-03-03  Werner LEMBERG  <wl@gnu.org>
10987         * Makefile.in: Fixing $(subdir).
10989         * README, NEWS: Small fixes.
10991         * test-groff: Adding path to grolbp.
10993         * configure.in: The (new) file src/xditview/Imakefile.in will be
10994         also configured -- it is now possible to build gxditview in a
10995         directory different from $srcdir.
10997 2000-03-02  Blake McBride  <blake@florida-software.com>
10999         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
11001         * MORE.STUFF: Added website of bell labs and info about plot2dev.
11003 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
11005         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
11006         files.
11008 2000-02-29  Werner LEMBERG  <wl@gnu.org>
11010         Adding GNU getopt to the groff distribution.
11012         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
11013         New files.
11014         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
11015         * aclocal.a4: Remove GROFF_GETOPT function.
11016         * configure.in, Makefile.in, PROBLEMS: Update.
11017         * src/include/lib.h: Replace getopt tests with getopt.h.
11018         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
11020         * doc/groff.texinfo: Further checking/updating.  Adding more index
11021         entries.
11023         * man/groff_out.man: Fix nroff mode activation (for emacs).
11024         * man/groff_font.man: Add missing ligature.
11026 2000-02-28  Werner LEMBERG  <wl@gnu.org>
11028         * doc/groff.texinfo: Further checking/updating.  Adding more index
11029         entries.
11031         * src/devices/grolbp/grolbp.man: Added a comment line at the
11032         beginning of the file (similar to shell scripts) which indicates
11033         that `tbl' should be used as a preprocessor.
11035 2000-02-27  Blake McBride  <blake@florida-software.com>
11037         Adapting groff to MS Visual C++ 6.0 compiler (tested with
11038         Windows NT 4.0).  Uses _MSC_VER define where necessary.
11040         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
11041         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
11042         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
11043         src/include/lib.h, src/libs/libgroff/errarg.cc,
11044         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
11045         src/preproc/refer/label.y, src/preproc/refer/label.cc,
11046         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
11047         src/roff/troff/div.cc, src/roff/troff/env.cc,
11048         src/roff/troff/input.cc, src/roff/troff/node.cc,
11049         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
11050         if_to_a() to avoid name clashes.
11051         * src/include/posix.h: Don't use unistd.h.
11052         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
11053         clause for integrating non-Unix xtmpfile() code.
11054         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
11055         structure; use "rt" for popen() in pipe_source(); add getpid()
11056         dummy function.
11057         * src/roff/troff/node.cc: Use special versions of popen() in
11058         real_output_file() and pclose() in ~real_output_file().
11060 2000-02-27  Werner LEMBERG  <wl@gnu.org>
11062         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
11063         LBP-8 series laser printers).  This code has been contributed by
11064         Francisco Andrés Verdú <pandres@dragonet.es>.
11066         * src/devices/grolbp/*: The grolbp output device.
11067         * font/devlpb/*: The font description files.
11068         * Makefile.in: Add grolpb and devlbp subdirectories.
11070         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
11071         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
11072         typographic fixes.
11074         * doc/groff.texinfo: Further checking/updating.  Adding more index
11075         entries.
11077         * NEWS: Updated.
11079         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
11081         * man/groff_font.man: Adding info about obsolete DESC keywords.
11082         * src/devices/grolj4/grolj4.man: Documenting additional DESC
11083         keywords.
11085 2000-02-26  Werner LEMBERG  <wl@gnu.org>
11087         * src/preproc/grn/grn.man: Added info about the gremlin file format
11088         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
11090 2000-02-25  Werner LEMBERG  <wl@gnu.org>
11092         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
11093         friends to be non-integer.
11095         * src/preproc/grn/grn.man: Document it.
11097         * doc/groff.texinfo: Further checking/updating.  Adding more index
11098         entries.
11100 2000-02-24  Werner LEMBERG  <wl@gnu.org>
11102         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
11103         line thicknesses to be integer multiples of this value.
11105         * src/preproc/grn/grn.man: Commenting out the -s option -- the
11106         corresponding code doesn't work (yet).
11108         * doc/groff.texinfo: Further checking/updating.  Adding more index
11109         entries.
11111 2000-02-23  Werner LEMBERG  <wl@gnu.org>
11113         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
11114         specify line thickness instead of base units.  The new default
11115         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
11116         thick lines respectively.
11118         Removed unused variable `prevval'.
11120         * src/preproc/grn/grn.man: Updated.
11122 2000-02-22  Werner LEMBERG  <wl@gnu.org>
11124         * src/preproc/grn/main.cc: Slight formatting.
11126         * src/roff/groff/groff.man: Formatting fix.
11127         * src/preproc/grn/grn.man: Ditto.
11129         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
11131         * doc/groff.texinfo: Further checking/updating.
11133 2000-02-21  Werner LEMBERG  <wl@gnu.org>
11135         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
11137         * test-groff: Added grn subdir to path.
11139         * doc/groff.texinfo: Some restructing and other small improvements.
11141         * src/roff/groff/groff.cc (help): Fixed info string.
11143 2000-02-20  Werner LEMBERG  <wl@gnu.org>
11145         * doc/meref.me: Fix description of .GS request.
11147         * src/roff/troff/troff.man: Fixing typo.
11149         Adding the `grn' preprocessor for gremlin graphic files.
11151         * src/preproc/grn/*: This is the Berkeley distribution written by
11152         David Slattengren and Barry Roitblat, adapted to groff by Daniel
11153         Senderowicz and Werner Lemberg.
11155         * doc/grnexampl.{me,g}: A sample for grn.
11157         * Makefile.in: Added subdirectory entry for grn.
11159         * src/roff/groff/groff.cc: Added support for grn.  It can be now
11160         called with the switch `-g'.
11162         * src/roff/groff/groff.man: Updated.
11164         * src/roff/grog/grog.{man,pl,sh}: Updated.
11166         * NEWS: Updated.
11168 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
11170         * src/include/lib.h: Added xtmptemplate and made xtmpfile
11171         parametrically polymorphic.
11173         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
11174         and the alterations to xtmpfile.
11175         xtmpfile can be requested to return the filename created
11176         and asked not to unlink the temp file.  The default behaviour
11177         if parameters are absent is exactly the same as before.
11179 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
11181         A new request `length' is available which returns the length of a
11182         string in a number register:
11184         * src/roff/troff/input.cc (length_macro): Implement it.
11185         * src/roff/troff/input.cc (init_input_requests): Register it.
11187 2000-02-11  Werner LEMBERG  <wl@gnu.org>
11189         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
11190         of the `substring' request.
11192         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
11193         request.
11195         * src/roff/troff/TODO, NEWS: Updated.
11197 2000-02-09  Werner LEMBERG  <wl@gnu.org>
11199         * src/roff/groff/groff.man: Added an example.
11201 2000-02-06  Werner LEMBERG  <wl@gnu.org>
11203         I've considerably modified the directory structure of the
11204         distribution to get a more vertical layout.  For example, the number
11205         of top level directories has been reduced from 42 to 6.
11207         As a consequence, many changes, especially to the makefiles, were
11208         necessary:
11210         * The makefile variables `top_builddir' and `top_srcdir' have been
11211         introduced.  Virtually all relative paths have been replaced with
11212         absolute ones using these two variables.
11214         * Dependencies (in the files `Makefile.dep') are no longer part of
11215         the distribution.  Instead, they are created during a `make install'
11216         in the build directory.
11218         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
11219         make `top_srcdir' and `top_builddir' absolute.
11221         Some other changes:
11223         * Man pages now depend on the files `VERSION' and `REVISION'.
11225         * The added shell script `mkinstalldirs' will replace `mkdir' in
11226         almost all cases.
11228         * VERSION: Version number increased to 1.16.
11230 2000-02-04  Werner LEMBERG  <wl@gnu.org>
11232         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
11234         * Makefile.in: Removed $(tmac_m) since it is no longer needed
11235         (after an update of the mm stuff).
11237         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
11239 2000-02-03  Werner LEMBERG  <wl@gnu.org>
11241         The .psbb request will now also accept Mac PS images (i.e. using LF
11242         as the EOL character).
11244         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
11245         (with slight modifications).
11246         * troff/input.cc (do_ps_file): Use it.
11248         * test-groff: Add grohtml and grolj4 output devices to PATH.
11250 2000-01-30  Werner LEMBERG  <wl@gnu.org>
11252         * NEWS, MORE.STUFF: Updated.
11254 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
11256         Add the `srand' command to pic.
11258         * pic/lex.cc, pic/pic.y: Implement it.
11259         * pic/pic.man: Document it.
11260         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
11262 2000-01-30  Werner LEMBERG  <wl@gnu.org>
11264         Add a new request `.psbb'.  This does exactly what the external
11265         program psbb did.  It scans a PostScript image file for a
11266         %%BoundingBox comment and extracts the bounding box values (in
11267         PostScript units) which are then stored in the four new (read-only)
11268         number registers `llx', `lly', `urx', and `ury'.
11270         This will allow the usage of the .PSPIC macro without worrying
11271         about unsafe behaviour of groff, i.e., it will work without the
11272         `-U' switch of groff.
11274         * troff/input.cc: Implement it.
11275         * tmac/tmac.pspic: Use it.
11276         * troff/troff.man, grops/grops.man, NEWS: Document it.
11277         * psbb/*, Makefile.in: Remove it since it is no longer needed.
11279         This is bloody C code simply adapted from psbb.c!  Any improvements
11280         welcome.
11282 2000-01-29  Werner LEMBERG  <wl@gnu.org>
11284         * man/groff_font.man: Minor clarifications.
11286         * NEWS: Updated.
11288 2000-01-28  Werner LEMBERG  <wl@gnu.org>
11290         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
11292 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
11294         * man/groff_font.man: Brought up to date regarding tcommand
11295         extensions.
11296         * libgroff/font.cc: Handle everything after `--' as a comment
11297         in the font files.
11298         * devps/*: Added comment delimiter inside devps font files.
11300 2000-01-28  Werner LEMBERG  <wl@gnu.org>
11302         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
11303         \fC...\fP (which now works as expected).
11305         * troff/troff.man: Fix typo.
11307 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
11309         Completed the pass_filenames implementation in troff.
11311         * libdriver/input.cc: Will read the new `F' tcommand.
11312         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
11313         * troff/input.cc: Use it.
11315 2000-01-26  Werner LEMBERG  <wl@gnu.org>
11317         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
11318         font will now be updated even if an invalid font is selected.
11320 2000-01-24  Werner LEMBERG  <wl@gnu.org>
11322         * doc/homepage.ms: Updated for new tmac.arkup.
11324         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
11326         * tmac/tmac.arkup: Cleanup.
11328         Added `\&' to .HTML macro to `leave vertical mode', so to say.
11330         Removed obsolete .LINK macro completely.
11332         The macros .URL, .FTP, and .MAILTO now accept a third argument which
11333         will be immediately appended to the second argument (to be used with
11334         punctuation, for example).
11336         Disabled .CDFTP macro temporarily for security reasons.
11338         * tmac/groff_markup.man: Complete revision for latest changes in
11339         tmac.arkup -- note that it does not yet format correctly with
11340         grohtml :-(
11342 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
11344         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
11345         * devutf8/R.proto: Add mappings for wp, lh, rh.
11346         * devutf8/NOTES: Updated.
11348 2000-01-23  Werner LEMBERG  <wl@gnu.org>
11350         * doc/groff.texinfo: Updated version/copyright info.
11352 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
11354         Added support for two new directives in device descriptions:
11355         `pass_filenames' (to pass the input file name to the output device)
11356         and `use_charnames_in_special' (to support e.g. accented characters
11357         in the `X' request).
11359         * include/font.h, troff/charinfo.h: Declare it.
11361         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
11363         * devhtml/DESC: Use it.
11365         * troff/input.cc: New function encoded_char.
11367         * troff/token.h: Add test for `specialness'.
11369 2000-01-21  Werner LEMBERG  <wl@gnu.org>
11371         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
11372         mistake from the list of files to be installed.
11374 2000-01-18  Werner LEMBERG  <wl@gnu.org>
11376         * README: Added info how to apply patches.
11378 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
11380         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
11382 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
11384         * troff/input.cc: Add support for troffrc-end.
11386         * tbl/main.cc: Altered to issue table-start and table-end special
11387         characters if using the html device.
11389         * devhtml/*: Modified font files to incorporate html encoding of
11390         characters.
11392         * tmac/groff_markup.man: New file documenting tmac.arkup.
11394         * tmac/troffrc-end: New file.  This is invoked after all user
11395         specified macros.  Currently used by the html device to include
11396         tmac.html.  Thus no need for users to specify -mhtml anymore.
11398         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
11399         (MAN7): Add groff_markup.man.
11401         * tmac/tmac.an, tmac/tmac.html: Small html updates.
11403         * tmac/troffrc: tmac.arkup will now be called for the html device.
11405         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
11406         extra device specific information about fonts.
11408         * doc/homepage.ms: New file.  It is an example how an HTML home page
11409         could look like with grohtml.
11411         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
11413 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
11415         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
11416         of Im, Re.
11418         * devutf8/NOTES: Updated.
11420 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
11422         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
11423         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
11424         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11425         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
11426         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
11427         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
11428         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
11429         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
11430         warnings.
11432         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
11434 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
11436         grolj4: Paper size will be searched case-insensitively.
11438         * include/lib.h: Add check for strcasecmp().
11439         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
11440         * configure.in: Check for strcasecmp().
11442 2000-01-11  Werner LEMBERG  <wl@gnu.org>
11444         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
11445         `REVISION'.
11447 2000-01-10  Werner LEMBERG  <wl@gnu.org>
11449         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
11450         revision scheme.
11452         Add a new read-only register, `.Y', which contains the groff
11453         revision.
11455         * troff/input.cc (init_input_requests): Define it.
11456         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
11457         * doc/groff.texinfo, troff/troff.man: Document it.
11459         * libgroff/Makefile.sub (version.cc): Add definition of
11460         `Version_string[]', consisting of `<major>.<minor>.<revision>'
11461         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
11462         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
11463         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
11464         troff/input.cc, pfbtops/pfbtops.c: Use it.
11466 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
11468         Add a revision scheme to the groff package.
11470         * REVISION: New file.
11471         * libgroff/Makefile.sub (version.cc): Use it to define
11472         `revision_string[]'.
11473         * grops/psrm.cc: Use revision_string (converted to an unsigned
11474         integer) in constructor of resource_manager.
11476 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
11478         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
11479         files.
11480         * Makefile.in (DEVDIRS): Add devutf8.
11481         * grotty/tty.cc: Include device.h.
11482         (glyph): Change type of `code' to `unsigned int'.
11483         (tty_printer): New field is_utf8.  Constructor takes device argument.
11484         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
11485         (tty_printer::add_char): Change type of first arg to `unsigned int'.
11486         (tty_printer::put_char): New function.
11487         (tty_printer::end_page): Use put_char() instead of ::putchar().
11488         (make_printer): Pass device to tty_printer constructor.
11489         * nroff.sh: Determine default device by calling 'locale'.  As a
11490         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
11491         Recognize UTF-8 locales.
11492         * tmac/eqnrc: Recognize utf8 like latin1.
11493         * tmac/troffrc: Device utf8 needs tmac.tty.
11495 2000-01-07  Werner LEMBERG  <wl@gnu.org>
11497         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
11499 2000-01-07  Paul Eggert  <eggert@twinsun.com>
11501         Add a new predefined writeable number register, `year',
11502         which contains the current year.
11504         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
11505         * tmac/tmac.s: Use it.
11506         * troff/input.cc (init_registers): Initialize it.
11508 2000-01-06  Werner LEMBERG  <wl@gnu.org>
11510         * PROBLEMS: Fixed typo.
11512 2000-01-04  Paul Eggert  <eggert@twinsun.com>
11514         * PROBLEMS: Add Y2k advice for the yr number register.
11516 2000-01-03  Paul Eggert  <eggert@twinsun.com>
11518         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
11520 2000-01-02  Werner LEMBERG  <wl@gnu.org>
11522         * tmac/tmac.arkup: Slight modification of macros to provide better
11523         appearance for non-HTML formats.
11525 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
11527         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
11528         does not automatically translate to malloc(n) on all OSes
11529         (e.g., SunOS) so do it explicitly.  Also, check the returned
11530         value.
11532 2000-01-01  Werner LEMBERG  <wl@gnu.org>
11534         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
11536         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
11537         expects this variable
11539 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
11541         * doc/Makefile: Added instructions to create HTML and text
11542         versions of some files.
11544 1999-12-31  Werner LEMBERG  <wl@gnu.org>
11546         * Updated INSTALL.gen.
11548         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
11549         better resp. correctly with non-HTML devices.
11551 Version 1.15 released
11552 =====================
11554 1999-12-28  Werner LEMBERG  <wl@gnu.org>
11556         * NEWS, VERSION: Changed to 1.15
11558 1999-12-27  Paul Eggert  <eggert@twinsun.com>
11560         * nroff/nroff.man: -S is safer, not safe.
11562         * groff/groff.cc (main): Use `safer', not `safe', in variable
11563         names.  This does not change the behavior.
11565         * troff/input.cc (main): Likewise.
11567         * nroff/nroff.sh: Likewise.
11569         * troff/input.cc (prepend_string): New function.
11570         (main): Prepend -msafer, so that we check macro libraries for
11571         safety.
11573         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
11575 Version 1.14 released
11576 =====================
11578 1999-12-26  Werner LEMBERG  <wl@gnu.org>
11580         * NEWS, VERSION: Changed to 1.14.
11582 1999-12-24  Werner LEMBERG  <wl@gnu.org>
11584         * refer/refer.cc: Fixing the last fix.
11586 Version 1.13 released
11587 =====================
11589 1999-12-23  Werner LEMBERG  <wl@gnu.org>
11591         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
11592         number disappear.
11594         * NEWS: Updated.
11596         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
11598         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
11599         document conventions, the version number must be a real.
11601 Version 1.12.1 released
11602 =======================
11604 1999-12-22  Werner LEMBERG  <wl@gnu.org>
11606         * VERSION: Changed to 1.12.1.
11608 1999-12-22  Alan Rooks  <arooks@istar.ca>
11610         * refer/refer.cc (do_file): Slight modification to satisfy the
11611         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
11612         UnixWare 7.1.
11614 1999-12-20  Werner LEMBERG  <wl@gnu.org>
11616         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
11617         notices.
11619         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
11620         list of unsafe requests.
11622         * pic/pic.man: Fixed a typo.
11624         * man/groff_out.man: Fixed a typo.
11626 1999-12-18  Werner LEMBERG  <wl@gnu.org>
11628         * Makefile.in: Doc fixes.
11630 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
11632         * groff/groff.cc: Missing `U' option added to getopt().
11634         * troff/troff.man: Missing `U' option added to synopsis.
11636 Version 1.12 released
11637 =====================
11639 1999-12-14  Werner LEMBERG  <wl@gnu.org>
11641         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
11642         to the synopsis.
11644         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
11645         with the more appropriate terms `safer' and `unsafe'.
11647         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
11648         sys_nerr and sys_errlist[].
11650         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
11652         * pic/pic.y, pic/pic.cc: Added check for fmod().
11654 1999-12-13  Werner LEMBERG  <wl@gnu.org>
11656         * VERSION: Changed to 1.12.
11658         Here some patches from various sources; most of them taken from
11659         the Debian distribution.
11661         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
11662         tmac/Makefile.sub: New files copied directly from the NetBSD
11663         distribution.  Probably, some additional adaptation later on is
11664         necessary...
11666         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
11667         of unsafe requests.
11669         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
11670         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
11671         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
11672         (`-S') is now the default.
11674         * README, NEWS: Updated.
11676 1999-12-09  Werner LEMBERG  <wl@gnu.org>
11678         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
11680         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
11682 1999-12-06  Werner LEMBERG  <wl@gnu.org>
11684         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
11685         grief than relief today.  Additionally, it is against the GNU
11686         coding standards.
11688         * configure: Recreated.
11690 1999-12-05  Werner LEMBERG  <wl@gnu.org>
11692         * configure.in: Added GROFF_LIBM.
11694         * configure: Recreated.
11696         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
11697         necessary.
11699         * Makefile.in: Added definition of $(LIBM).
11701         * Makefile.comm (LIBM): Removed.
11703         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
11705 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
11707         * doc/Makefile: Added rule for generation pic.html.
11709         (clean): Files produced by grohtml will be removed also.
11711         * doc/pic.ms: Small fix.
11713         * tmac/tmac.html: Fixed suppression of headers.
11715 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
11717         * tmac/tmac.html: Fixing horizontal arrows.
11719         Turning off hyphenation.
11721         * tmac/tmac.an: Improved support for grohtml; better indentation,
11722         no footers/headers.
11724 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
11726         * tmac/tmac.arkup: Added CDFTP macro
11728         * tmac/tmac.html: All headers are turned off for ms, me, and mm
11729         macros.
11731         * tmac/troffrc: Some additions for HTML stuff.
11733 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
11735         * tmac/tmac.html: Small changes.
11737 1999-09-26  Werner LEMBERG  <wl@gnu.org>
11739         * doc/groff.texinfo: Minor fixes.
11741 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
11743         * devhtml/TR: Changed spacewidth to 3.
11745         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
11747         * tmac/tmac.html: Moved markup macros to tmap.arkup.
11749         * tmac/tmac.arkup: New file.
11751         * grohtml/ChangeLog: New file.
11753 1999-09-16  Werner LEMBERG  <wl@gnu.org>
11755         * doc/groff.texinfo (Common Features): Added Copying chapter.
11756         Changed format to @smallbook.
11758 1999-09-15  Werner LEMBERG  <wl@gnu.org>
11760         * NEWS: Added info about groff.texinfo.
11762         * doc/groff.texinfo: Will now compile (using texi2dvi) without
11763         warning messages.
11765 1999-09-14  Werner LEMBERG  <wl@gnu.org>
11767         * groff/groff.man: More updates.
11769 1999-09-13  Werner LEMBERG  <wl@gnu.org>
11771         * doc/groff.texinfo: New file.  This manual is still very
11772         rudimentary.  It has been originally contributed by Trent
11773         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
11774         additions by me.
11776         * INSTALL: Added information about the `doc' subdir
11778         * troff/troff.man: Minor fixes.
11780         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
11781         reordered options.
11783         * troff/input.cc (usage): Added missing `-ffam' to usage message.
11785         * Makefile.in (dist): groff-$(version).tar.gz must be removed
11786         also, otherwise it is included itself in another call of `make
11787         dist'.
11789         * groff/groff.cc (synopsis): Removed superfluous space.
11791         * PROJECTS, PROBLEMS, NEWS: Updated.
11793         * VERSION: Updated to 1.12beta.
11795         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
11797         * README: Updated: Included documentation about CVS repository,
11798         mailing lists, and daily snapshots.
11800         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
11802 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
11804         * tmac/tmac.an: If the tag didn't fit into the space that the
11805         macro `TP' specifies, the rest of the tag went into the space for
11806         the next line.
11808 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
11810         * grolj4/lj4.cc: Added duplex printing (option `-d').
11812         * grolj4/grolj4.man: Document duplex printing.
11814 1999-09-12  Werner LEMBERG  <wl@gnu.org>
11816         * doc/Makefile (pic.ps): Fixed rule which caused problems with
11817         non-GNUish sed programs.
11819         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
11820         definition.
11822         * configure.in (LIBS): Added `-lc'
11824         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
11826         * pic/tex.cc (solid_arc): Casting M_PI to double.
11828         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
11830         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
11831         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
11832         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
11834         * groff/groff_man.man: New file.  This manual page was originally
11835         written for the Debian GNU/Linux system by Susan G. Kleinmann
11836         <sgk@debian.org>.
11838         * eqn/list.cc (list_box::compute_metrics,
11839         list_box::compute_sublist_width): Removed variable declaration to
11840         avoid shadowing warnings.
11842         * grops/psrm.cc (resource_manager::process_file): Ditto.
11844         * tfmtodit/tfmtodit.cc (main): Ditto.
11846         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
11847         to avoid shadowing warnings.
11849         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
11850         shadowing loop variable.
11852         * groff/groff.man, troff/troff.man: Added doc about grohtml.
11854 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
11856         New grohtml frontend to convert groff input to html.
11858         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
11860         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
11862         * tmac/eqnrc: Added html device.
11864         * tmac/tmac.html: New file.
11866         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
11867         (troff_output::start_picture, troff_output::finish_picture),
11868         tbl/main.cc (process_input_file):
11869         Surrounded output with `graphics_start' and `graphics_end' so that
11870         the html driver can identify non-text portions.
11872         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
11873         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
11874         grotty/tty.ps (tty_printer::set_char): Additional parameter
11875         `name'.
11877         * include/printer.h: Class printer: New function
11878         set_char_and_width; new variables (is_char_named, is_named_set,
11879         named_command, named_char_s, named_char_n) to hold information
11880         about named characters -- needed by the html driver.
11882         * libdriver/printer.cc (printer::set_ascii_char,
11883         printer::set_special_char): Use set_char_and_width.
11885         * devhtml/*: New device files for html driver.
11887         * grohtml/*: New driver grohtml.
11889 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
11891         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
11892         default strings.
11894 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
11896         * libgroff/string.cc (search): Small fix to test against NULL
11897         pointer.
11899 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
11901         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
11902         \b'abc') were stacked in reverse order when processed in a
11903         diversion.
11905         * troff/node.h: Added `*last' to struct `node' to make the above
11906         fix work.
11908         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
11909         The default scale for the 'f' and 't' graphics functions were 'm'
11910         rather than 'u' (i.e., no scaling).
11912 1999-09-11  Peter Miller  <peterm@jna.com.au>
11914         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
11915         do_file), soelim/soelim.man: Added `-I file' option to soelim,
11916         defining include paths.
11918         * soelim/soelim.cc (include_path_append): New function.
11920 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
11922         * tbl/main.cc (process_options): Unix (at least Documenter's
11923         Workbench) tbl allows arbitrary non-alpha characters between
11924         options.
11926 1999-09-11  Paul Eggert  <eggert@twinsun.com>
11928         Y2k fixes.  Don't assume that the current year precedes 2000.
11930         * doc/meref.me: Add \n(y2, \n(y4.
11932         * tmac/doc-common (Yr): New number register.
11933         (Dd): Don't assume current year precedes 2000.
11935         * tmac/tmac.e (td): Likewise.
11936         (y2, y4): New number registers.
11938         * pic/pic.man: Update reference for pic paper to May, 1991
11939         version.
11941 1999-09-11  Werner LEMBERG  <wl@gnu.org>
11943         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
11944         Removed quotation marks which prevented correct expansion of
11945         $(tmac_wrap).
11947         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
11949 1999-09-10  Werner LEMBERG  <wl@gnu.org>
11951         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
11952         `config.cache'.
11954         * Removed configure.old.
11956 1999-08-31  Werner LEMBERG  <wl@gnu.org>
11958         * VERSION: Updated to 1.11.1
11960 1999-05-27  Werner LEMBERG  <wl@gnu.org>
11962         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
11964         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
11965         added quotations around $(tmac_wrap) to avoid syntax error if
11966         variable is empty.
11968         * configure: Newly generated using autoconf 2.13.
11970         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
11972 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
11974         * README, PROJECTS, NEWS, INSTALL, VERSION, 
11975         doc/Makefile. doc/pic.ms, groff/groff.man:
11976         Prepare for 1.11 release.  No code changes.
11977         Documentation for pic added (doc/pic.ms).
11979 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
11981         * Version 1.10 released.
11983 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
11985         * afmtodit/afmtodit.pl: Avoid comment on first line.
11987 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
11989         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
11990         * configure.in: Call it.
11992         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
11993         (distfiles): Doesn't depend on config.log or config.cache.
11995 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
11997         * grog/grog.sh: Use print "" rather than print in END rule.
11999 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
12001         * tbl/main.cc (process_data): Don't give error for excess data
12002         entries that are comments.
12004 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
12006         * tbl/main.cc (process_data): Fix case where new for-scope rules
12007         silently change meaning of code.
12009 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
12011         * troff/env.cc (hyphenate): Loop over all consecutive sequences
12012         of non-zero hyphenation codes.
12014 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
12016         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
12018 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
12020         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
12022 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
12024         * tmac/tmac.andoc: Make it work in compatibility mode.
12026         * refer/token.h (token_info::is_range_sep): New function.
12027         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
12028         * refer/ref.cc (reference::output): More sophisticated check for
12029         multiple pages.
12031         * devps/prologue.ps (MANUAL): New procedure.
12032         * grops/ps.cc (main): New -m option.
12033         (usage): Include -m.
12034         (ps_printer::~ps_printer): Implement -m.
12036         * aclocal.m4 (GROFF_G): New macro.
12037         * configure.in: Call it.
12038         * Makefile.in (g): Provided by configure.
12040         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
12042         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
12043         translations.
12045         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
12046         (tmac_m, tmac_s): Deleted.
12047         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
12048         tmac_s_prefix): New variables.
12049         (MDEFINES): Change accordingly.
12050         * Makefile.comm (.man.n): Use new TMAC_* variables.
12051         * configure.in (GROFF_TMAC): Call.
12052         * aclocal.m4 (GROFF_TMAC): Define.
12053         * tmac/Makefile.sub (stamp_wrap): New target.
12054         (install_data, uninstall_sub): Handle macro wrapping.
12056 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
12058         * tbl/main.cc (main): Ignore -T option.
12060 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
12062         * devlj4/generate/special.map: Add definition of \(nb.
12064         * tmac/tmac.dvi: Add definition of \(nb.
12066         * troff/dictionary.c (dictionary::dictionary): association::v gets
12067         initialized by association::association.
12069         * tmac/Makefile.sub: Avoid using temporary files when installing.
12071         * troff/env.cc (environment::set_font): Make bad font number a
12072         warning.
12074         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
12076         * Makefile.in (datadir): Use share rather than lib.
12078         * groff/groff.cc (basename): Rename to xbasename.
12080 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
12082         * Makefile (CCLIBS): Don't use.
12083         * Makefile.ccpg: Likewise.
12085         * acgroff.m4: Rename to...
12086         * aclocal.m4: Modify extensively for autoconf 2.
12087         * configure.in: Likewise.
12088         * Makefile.in: Likewise.
12090         * groff/pipeline.c (const): Declare as empty if __STDC__ not
12091         defined.
12092         (xstrsignal): Check for definition of NSIG. Conditionalize
12093         on SYS_SIGLIST_DECLARED.  Make return type const.
12095 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
12097         * troff/input.cc (interpolate_macro): Rephrase missing space
12098         warning.
12100 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
12102         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
12103         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
12104         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
12105         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12106         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
12107         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
12108         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
12109         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
12110         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
12111         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
12112         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
12113         Fix 'for' scoping.
12115 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
12117         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
12118         string_iterator.
12119         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
12120         file.
12121         (macro_iterator::macro_iterator): Add additional argument.
12123 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
12125         * troff/div.cc (vertical_size::vertical_size): In place of integer
12126         specifying line spacing use cunits specifying post vertical
12127         space.
12128         (macro_diversion::output, top_level_diversion::output): Likewise.
12129         * troff/div.h: Change declarations accordingly.
12130         * troff/env.cc (pending_output_line): Replace ls field by post_vs
12131         field.
12132         (pending_output_line::pending_output_line,
12133         pending_output_line::output, environment::output,
12134         environment::output_line, environment::output_title,
12135         environment::hyphenate_line):  In place of
12136         integer specifying line spacing use cunits specifying post vertical
12137         space.
12138         (environment::environment): Add post_vertical_spacing and
12139         prev_post_vertical_spacing arguments.
12140         (environment::get_post_vertical_spacing): New function.
12141         (environment::total_post_vertical_spacing): New function.
12142         (environment::post_vertical_spacing): New function.
12143         (init_env_requests): Initialize pvs request and .pvs register.
12144         * troff/env.h: Change declarations.
12146 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
12148         * tmac/tmac.pspic: Immediately remove the temporary file.
12150 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
12152         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
12153         height is specified.
12155 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
12157         * tbl/table.c (struct vertical rule, class table_entry): Use int
12158         not short for start_row and end_row.
12160 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
12162         * troff/input.cc (trapping_blank_line, blank_line_macro): New
12163         functions.
12164         (diverted_space_node::reread, process_input_stack): Call
12165         trapping_blank_line() rather than blank_line().
12166         (init_input_requests): Bind "blm" to blank_line_macro().
12168         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
12170 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
12172         * troff/env.cc (environment::possibly_break_line): Require that
12173         width total excluding width of final space node be greater than
12174         the target text length.
12176 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
12178         * troff/node.cc (kern_pair_node::vertical_extent): New function.
12180 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
12182         * troff/node.cc (charinfo_node): New class.
12183         (glyph_node, composite_node): Derive from charinfo_node.  Change
12184         member functions accordingly.
12186 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
12188         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
12190 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
12192         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
12194         * devps/generate/textmap (notsubset): Add.
12196         * tmac/tmac.a4: New file.
12198 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
12200         * pic/main.cc (had_parse_error): New variable.
12201         (do_picture, do_whole_file): Set had_parse_error if yyparse()
12202         returns non-zero.
12203         (main): Return 1 if had_parse_error is true.
12205 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
12207         * grolj4/lj4.cc (main): Avoid use of strtoul.
12209 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
12211         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
12212         iso_8859_1 or $LESSCHARSET is latin1.
12214 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
12216         * hpftodit: New directory.
12217         * Makefile.in (CCPROGDIRS): Add hpftodit.
12218         * devlj4/generate: New directory.
12220 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
12222         * configure.in: Don't use AC_VFORK.
12223         * groff/pipeline.c (run_pipeline): Use fork() always.
12225 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
12227         * grops/ps.cc (main): Use %1 not %s in error message for -w.
12229         * Makefile.in (CCPROGDIRS): Add grolj4.
12230         (DEVDIRS): Add devlj4.
12231         * grolj4, devlj4: New directories.
12232         * tmac/troffrc: Handle lj4.
12233         * tmac/tmac.lj4: New file.
12235 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
12237         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
12239 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
12241         * troff/input.cc (do_if_request): At end of second string, switch
12242         environments before getting next token.
12244 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
12246         * devps/psstrip.sed: Split rule that strips whitespace on either
12247         side of delimiters.
12249 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
12251         * troff/node.h (font_family::make_definition): Add return value to
12252         declaration.  * troff/symbol.h (symbol::operator==,
12253         symbol::operator!=): Likewise.
12255 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
12257         * groff/groff.cc (main, help, synopsis): Handle -S.
12258         (possible_command::insert_arg): New function.
12260         * tmac/tmac.safer: New file.
12261         * tmac/msafer.man: New file.
12262         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
12264 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
12266         * pic/pic.h, pic/main.cc (safer_flag): New variable.
12267         * pic/pic.y (placeless_element): Avoid unsafe operations if
12268         `safer_flag' is set.
12269         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
12271 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
12273         * eqn/lex.cc (get_token): Put call to add_context() in block to
12274         work around Sun C++ 4.0 bug.
12276         * include/stringclass.h (operator +): Use ?: instead of `if' to
12277         work around Sun C++ 4.0 bug.
12279 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
12281         * tbl/main.cc (process_format): Accept - as a synonym for the _
12282         key letter.
12284         * libbib/index.cc (minus_one): Don't declare as const.
12286 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
12288         * troff/input.cc (get_char_for_escape_name): Push back a newline.
12290 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
12292         * troff/input.cc (write_macro_request): New function.
12293         (init_input_requests): Bind write_macro_request to writem.
12295 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
12297         * tmac/tmac.s (@EN): Turn filling back on even if there was no
12298         equation.
12300         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
12302         * tmac/tmac.s (@TS): Renamed from TS.
12303         (TS): Call LP then TS again.
12304         (cov*ab-init): Alias @TS to TS.
12306         * tmac/tmac.s: Allow QP or RS to initialize.
12308         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
12309         Move initializations of PS and LL here.
12310         (par@init): Don't initialize HY.  Avoid changing environment 0.
12311         (par*env-init): Don't all par@reset.
12313 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
12315         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
12317 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
12319         * Makefile.in (MDEFINES): Add LDFLAGS.
12320         (LDFLAGS): Add definition line.
12322 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
12324         * troff/input.cc (get_optional_char): Split off error check into...
12325         (check_missing_character): New function.
12326         * troff/token.h: Declare it.
12327         * troff/env.cc (margin_character): Don't call get_optional_char.
12328         Only call tok.next() after making the node.
12330         * include/lib.h (getopt): Make 2nd argument char *const *.
12332 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
12334         * nroff/conftest.sh: Deleted.
12336 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
12338         * pic/make-dos-dist: Deleted.
12340 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
12342         * devps/psstrip.sed: Strip comments before stripping trailing
12343         white space.
12345 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
12347         * Version 1.09 released.
12349 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
12351         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
12353 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
12355         * libgroff/font.cc (font::load_desc): Fix typo in error message.
12357 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
12359         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
12360         about returning without a value.
12362         * troff/charinfo.h (charinfo::get_special_translation): Cast
12363         TRANSLATE_NONE to int.
12365         * refer/token.cc (lookup_token, store_token): Remove bogus loop
12366         test.  Fix test so that it works with n unsigned.
12368         * pic/pic.y (defaults_table): Fully bracket initializer.
12369         * pic/lex.cc (lookup_keyword): Likewise.
12370         * eqn/lex.cc (token_table, def_table): Likewise.
12371         * eqn/box.cc (param_table): Likewise.
12372         * troff/input.cc (warning_table): Likewise.
12373         * libgroff/font.cc (table): Likewise.
12374         * grops/ps.cc (ps_printer::special): Likewise.
12375         * grops/psrm.cc (resource_manager::process_file): Likewise.
12376         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
12377         * refer/command.cc (command_table): Likewise.
12378         * addftinfo/addftinfo.cc (param_table): Likewise.
12380         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
12381         about temp's being unused.
12382         (unused): New function.
12384         * groff/pipeline.cc: Declare c_fatal.
12386         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
12387         uchar.
12389         * libbib/index.cc (index_search_item::load): Prevent compiler
12390         warnings about fd_closer's being unused.
12391         (unused): New function.
12393 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
12395         * troff/input.cc (copy_mode_error): Make `prefix' static.
12396         Fix typo.
12398         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
12399         defined.
12400         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
12401         HAVE_CC_OSFCN_H and modify accordingly.
12403         * troff/input.cc (init_charset_table): radicalex overlaps
12404         horizontally.
12406         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
12407         udodo!hans@relay.NL.net).
12408         * groff/configure.in: Call it.
12410         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
12411         * groff/configure.in: Call it.
12412         * include/lib.h: Conditionalize declaration of pclose.
12414         * troff/div.cc (last_page_number): New global variable.
12415         (top_level_diversion::begin_page): Exit if we just printed the
12416         last page.
12417         * troff/div.h (last_page_number): Declare it.
12418         * troff/input.cc (parse_output_page_list): Set last_page_number.
12420         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
12421         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
12422         tmac/tmac.X: Likewise.
12423         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
12424         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
12426 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
12428         * tmac/doc-ditroff (hK): Remove groff specific code which
12429         prevented page-breaks between separate manual entries.  If this is
12430         the first page, don't set the page number to 1.
12432         * acgroff.m4 (GROFF_POSIX): New macro.
12433         * configure.in: Use it.
12435         * troff/node.cc (class real_output_file,
12436         real_output_file::real_output_file,
12437         real_output_file::~real_output_file): Conditionalize use of
12438         popen/pclose on POPEN_MISSING.
12439         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
12440         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
12441         (pipe_source): Similarily.
12443         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
12445         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
12446         presence of declarations by trying to compile example with
12447         conflicting declarations.  (gcc only gives a warning for missing
12448         declarations.)
12450 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
12452         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
12453         (from Ulrich Lauther).
12455 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
12457         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
12459 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
12461         * indxbib/indxbib.cc (write_hash_table): Add code for case where
12462         pointers and ints have different sizes.
12464 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
12466         * tmac/tmac.s (par*env-init): Call par@reset.
12468 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
12470         * tmac/tmac.s (@IP): Switch to a new environment when diverting
12471         tag.
12472         (par*push-tag-env, par*pop-tag-env): New macros.
12474 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
12476         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
12477         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
12479         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
12480         comment.  Include <time.h>.
12482 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
12484         * grops/ps.cc (is_small_h, is_small_v): Deleted.
12485         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
12486         lines.
12488 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
12490         * troff/input.cc (read_request): Only print a prompt if reading
12491         from the terminal.  Also clearerr on EOF if reading from the
12492         terminal.  Declare isatty.
12494 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
12496         * refer/label.y: Rename map_t to map_func and extractor_t to
12497         extractor_func.
12499 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
12501         * include/assert.h: Don't use volatile.
12502         * libgroff/assert.cc: Likewise.
12504 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
12506         * troff/input.cc (abort_request): Look at character in tok before
12507         calling get_copy().
12509 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
12511         * troff/troff.h (NO_RETURN): Deleted.
12512         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
12513         * troff/input.cc (exit_troff): Likewise
12515         * Makefile.in: Remove `Making ...' messages since GNU make now
12516         gives these. 
12518         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
12520 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
12522         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
12523         to constant 1 inch.
12525 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
12527         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
12529 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
12531         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
12532         MARK_REG if there was no left delimiter.
12534 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
12536         * pic/troff.cc (troff_output::text): Set line thickness to
12537         relative before outputting text.
12539         * tmac/tmac.e (@k): Don't zero ?T.
12540         ((z): Likewise.
12542 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
12544         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
12546 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
12548         * troff/input.cc (decode_args): Warn about unquoted tabs (from
12549         Paul Eggert).
12551 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
12553         * troff/input.cc (ignoring): New variable.
12554         (ignore): Set ignoring during call to do_define_macro.
12555         (do_define_macro): Clear ignoring before interpolating terminating
12556         macro.
12557         (copy_mode_error): New function.
12558         (get_char_for_escape_name, read_long_escape_name,
12559         interpolate_arg): Use copy_mode_error.
12560         (warning_table): Add WARN_IG.
12561         * troff/troff.h (WARN_IG): Declare.
12562         (WARN_TOTAL): Change accordingly.
12564         * groff/pipeline.c (strsignal): Rename to xstrsignal.
12565         * groff/groff.cc (strsignal): Delete declaration.
12567 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
12569         * troff/div.cc (page_offset): Use 'm' as default scaling.
12571 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
12573         * nroff/nroff.sh: Ignore -u.
12575 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
12577         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
12579 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
12581         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
12582         drawing box.
12583         (B2): With -Tascii, leave additional vertical space before
12584         and after. Ensure that the left and right indent is restored to
12585         what it was even if the point size changes.  Don't call
12586         par@finish. Change the indent, line length and title length
12587         directly.  With -Tascii, make the width of the box 1n less.
12588         (B1): Remember 1n at the current point size.  Don't call
12589         par@reset.  Change the indent, line length and title length
12590         directly.  Ensure that the temporary indent is preserved.
12591         (par*box-mark-top): Turn off no spacing mode.
12593 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
12595         * Makefile.in (dist): Use .gz suffix.
12597 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
12599         * troff/input.cc (main): Add return 0.
12600         * pic/main.cc (main): Use return instead of exit.
12601         * tbl/main.cc (main): Likewise.
12602         * eqn/main.cc (main): Likewise.
12603         * grops/ps.cc (main): Likewise.
12604         * grotty/tty.cc (main): Likewise.
12605         * groff/groff.cc (main): Likewise.
12606         * grodvi/dvi.cc (main): Likewise.
12607         * refer/refer.cc (main): Likewise.
12608         * indxbib/indxbib.cc (main): Likewise.
12609         * lkbib/lkbib.cc (main): Likewise.
12610         * soelim/soelim.cc (main): Likewise.
12611         * addftinfo/addftinfo.cc (main): Likewise.
12612         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
12613         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
12615         * troff/token.h (process_input_stack): Don't declare as static.
12616         * troff/input.cc: Likewise.
12618         * troff/node.c (invalidate_fontno): Make it a static member of
12619         class font_family.  Change callers.
12620         * troff/node.c: Change declaration.
12622         * tbl/main.cc (struct input_entry_format): Add explicit public
12623         specifier.
12624         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
12625         struct double_hline_stuff): Likewise.
12626         * tbl/table.h (struct entry_format): Likewise.
12627         * pic/object.h (struct saved_state): Likewise.
12629         * include/stringclass.h: Add forward declarations of friend
12630         functions that are later declared as inline.  Don't include inline
12631         specifier in friend declaration.
12633         * libgroff/lib.h: Declare popen and pclose.
12634         * acgroff.m4 (GROFF_POPEN): New macro.
12635         * configure.in: Call it.
12637         * include/lib.h (PI): New constant. Undef first if necessary.
12638         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
12639         * grops/ps.cc (degrees, radians): Likewise.
12640         * libgroff/font.cc (font::get_skew): Likewise.
12642         * grops/ps.cc (is_ascii): New function.
12643         (ps_output::put_string): Use is_ascii.  Use csprint rather than
12644         isprint.
12645         (ps_printer::define_encoding): Use csspace.
12646         * libgroff/strtol.c (ISASCII): New macro.
12647         (strtol): Cast arguments to is*() and tolower() to unsigned char.
12648         Use ISASCII rather than isascii.
12649         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
12650         * libgroff/cset.cc: Likewise.
12651         * libdriver/input.cc: Include cset.h.
12652         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
12653         than isdigit().
12655         * refer/refer.cc (main): Use %ld rather than %d for longs.
12657         * libbib/index.cc (index_search_item_iterator::get_tag): Use
12658         S_ISREG macro.
12660         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
12662 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
12664         * troff/input.cc (hyphenation_code): Skip white space between
12665         char/code pairs.
12667 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
12669         * tbl/table.h (table::entry_list_tailp): New member.
12670         (table::table): Initialize it.
12671         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
12672         behaviour.
12674 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
12676         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
12677         with negative horizontal positions. Remove casts of glyph::hpos to
12678         int.
12679         (USHRT_MAX): Delete definition.
12680         (SHRT_MAX, SHRT_MIN): New definitions.
12681         (glyph::hpos): Change type to short.
12682         (tty_printer::end_page): Output multiple backspaces if necessary.
12683          Remove casts of glyph::hpos to int.
12684         
12685 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
12687         * tmac/tmac.s (@RT): New definition.
12689 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
12691         * refer/refer.cc (do_file): Make sure current_filename is set when
12692         filename is "-".
12694         * pic/common.cc (common_output::dot_line): Handle zero length
12695         lines.
12697 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
12699         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
12700         (par@init): Initialize \n[HY].
12702 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
12704         * troff/dictionary.cc (dictionary::remove): Continue when
12705         r < j < i.
12707 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
12709         * Makefile.com (.y.cc): Avoid ending up with two versions of
12710         $(YTABH).
12712 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
12714         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
12715         (\(,C): Likewise.  Also fix typo.
12717 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
12719         * lib.h: Delete extraneous semi-colon.
12721         * Add pso request: `so' from a pipe.
12722         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
12723         (file_iterator::close): New function.
12724         (file_iterator::~file_iterator, file_iterator::next_file): Use
12725         file_iterator::close.
12726         (file_iterator::backtrace): Say `process' rather than `file' when
12727         the stream is popened.
12728         (pipe_source): New function.
12729         (init_input_requests): Bind ".pso" to pipe_source.
12731 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
12733         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
12735         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
12736         digits in lower case.
12738 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
12740         * Version 1.08 released.
12742         * Makefile.in (dist): Insert || true after ln -s commands that
12743         might fail.
12745         * mm: Update to mm 1.16.
12747         * acgroff.m4 (GROFF_CSH_HACK): New macro.
12748         * configure.in: Call GROFF_CSH_HACK.  Substitute for
12749         SH_SCRIPT_SED_CMD.
12750         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
12751         MDEFINES.
12752         * nroff/Makefile.sub (nroff): New target.
12753         (install_data): Install nroff.
12754         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
12755         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
12757 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
12759         * eqn/Makefile.sub (neqn): Add chmod +x.
12761         * grog/Makefile.sub (grog): Remove spurious semi-colon.
12763 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
12765         * troff/input.cc (string_iterator::string_iterator()): Initialize
12766         lineno and count.
12768 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
12770         * troff/div.cc (macro_diversion::space,
12771         top_level_diversion::space): Don't set high_water_mark.
12772         (macro_diversion::output, top_level_diversion::output): Don't
12773         include post line space in high water mark.
12775 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
12777         * eqn/eqn.y: Don't define YYDEBUG.
12778         * pic/pic.y: Likewise.
12780 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
12782         * tmac/tmac.e ([3): Add space after comma following editors.
12783         Change double spaces to single spaces.
12784         ([4): Change double spaces to single spaces.
12786         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
12787         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
12788         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
12789         after %!PS-Adobe- (for Newsprint).
12791         * troff/div.cc (top_level_diversion::begin_page): When
12792         before_first_page is 1, set page_number to 1.
12794 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
12796         * eqn/box.cc (box::top_level): Protect equation with \&.
12798 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
12800         * groff/groff.cc (possible_command::set_name): Delete old name.
12802         * groff/groff.cc (possible_command::~possible_command): Use
12803         a_delete.
12805         * troff/node.cc (troff_output_file::begun_page): New member.
12806         (troff_output_file::troff_output_file): Initialize it.
12807         (troff_output_file::really_begin_page): Only output V command if a
12808         page has been begun.
12810         * pic/pic.y (placeless_element): Delete argument to PRINT after
12811         use.
12813 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
12815         * Make wrapman work.
12816         * troff/div.h (class top_level_diversion): Replace
12817         first_page_begun by before_first_page (with opposite sense).
12818         * Change first_page_begun to before_first_page inverting sense.
12819         * troff/div.cc (class nl_reg): New class.
12820         (init_div_requests): Use class nl_reg for \n(nl.
12821         (top_level_diversion::begin_page): Don't call
12822         output_file::begin_page if before_first_page is 2;
12823         reset before_first_page afterwards.  If have_next_page_number is
12824         false, then always increment page_number.
12825         * tmac/tmac.an: Set traps within TH rather than at the top-level.
12826         Restore compatibility mode after loading, and then disable
12827         compatibility mode in TH.
12829 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
12831         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
12832         past last line.
12833         * troff/node.h (output_file::trailer): Declare.
12834         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
12835         * troff/node.cc (output_file::trailer): New function.
12836         (troff_output_file::~troff_output_file): Move most code into...
12837         (troff_output_file::trailer): New function.
12838         (class troff_output_file): Delete page_length member. Declare
12839         trailer().
12840         (troff_output_file::really_begin_page): Use current page length
12841         for final V command.
12843         * tbl/main.cc (struct options): New decimal_point_char member.
12844         (options::options): Initialize this.
12845         (process_options): Implement decimalpoint option.
12846         (process_data): Pass decimal_point_char option to table::table.
12847         * tbl/table.h (class table): New decimal_point_char member.
12848         (table::table): Add additional argument.
12849         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
12850         second argument specifying decimal point character.  Use this
12851         instead of '.'.
12852         (table::table): Initialize decimal_point_char.
12853         (table::add_entry): Change call to find_dot.
12855         * troff/input.cc (get_copy, token::next): Implement \V.
12856         (interpolate_environment_variable): New function.
12858 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
12860         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
12861         * pic/pic.y: Likewise.
12863         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
12864         Add casts to int.
12865         * refer/ref.cc (reference::insert_field, reference::delete_field):
12866         Likewise.
12867         * troff/number.cc (parse_term): Likewise.
12869         * acgroff.m4 (GROFF_PROG_YACC): New macro.
12870         * configure.in: Use GROFF_PROG_YACC.
12872         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
12873         and g++.
12874         * Makefile.in (OPTIMIZE): New define.
12875         (DEBUG): Empty by default.
12876         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
12878         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
12879         (GROFF_ARRAY_DELETE): Likewise.
12880         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
12882         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
12884         * devps/psstrip.sed: Use different delimiter on last line (so that
12885         it works with BSD 4.4 sed.)
12887 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
12889         * devps/psstrip.sed: Delete comments.
12891         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
12892         optind, opterr, optarg.
12893         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
12894         opterr, optarg.
12896 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
12898         * Makefile.in (check): Dummy target.
12900 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
12902         * Version 1.07 released.
12904         * Integrate mm 1.11.
12906         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
12907         where start_col was meant.
12909 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
12911         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
12913 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
12915         * troff/input.cc (token::next): Make \z\o'...' and similar things
12916         work.
12918         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
12919         constants.
12920         (environment): Add margin_character_flags member.
12921         * env.cc (environment::environment(symbol),
12922         environment::environment(const environment *): Initialize
12923         margin_character_flags.
12924         (margin_character): Rewrite.
12925         (environment::output_line): Add a margin character if
12926         margin_character_flags is non-zero.  Turn off the
12927         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
12928         zero, use margin_character_node without copying and then set
12929         margin_character_node to 0.
12931         * devps/DESC.in: Change minimum size to 1000.
12933 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
12935         * troff/symbol.h (symbol::hash): Change return type to unsigned
12936         long.
12937         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
12938         Add casts to int.
12940         * test-groff: Use -r rather than -x.
12942         * grops/psfig.diff: Include in distribution again.
12944 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
12946         * Makefile.in (dist): Use gzip.
12948 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
12950         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
12951         unistd.h as well as in stdlib.h.
12952         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
12953         defined; otherwise include <sys/types.h> and <unistd.h> if
12954         UNISTD_H_DECLARES_GETOPT is defined.
12956         * configure.in: use builtin(include, ... rather than include(...
12957         * configure: Regenerate with autoconf 1.3.
12959         * libdriver/print.cc (printer::adjust_arc_center): Use new
12960         algorithm suggested by Andy Fyfe.
12962         * libdriver/printer.cc (printer::adjust_arc_center): New function.
12963         * include/printer.h: Declare this.
12964         * grops/ps.cc (ps_printer::draw): Use it.
12965         * grodvi/dvi.cc (dvi_printer::draw): Use it.
12967 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
12969         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
12971 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
12973         * eqn/main.cc (main): Handle "eqn -".
12975 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
12977         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
12979         * mm: Integrate version 1.08.
12981         * pic/troff.cc (troff_output::finish_picture): Set
12982         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
12983         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
12984         if it's not defined. Check whether the register is non-zero rather
12985         than whether it's not defined.
12986         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
12988         * indxbib/indxbib.cc: Move all signal handling into...
12989         * indxbib/signal.c: New file.
12990         * configure.in: Call AC_RETSIGTYPE.
12992         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
12993         * configure.in: Call GROFF_STRUCT_EXCEPTION.
12994         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
12996         * troff/input.cc (token::token, token::operator=): Work round SGI
12997         C++ bug.
12998         * pic/object.cc (position::position): Likewise.
13000 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
13002         * pic/pic.h: Move declaration of hypot().
13004 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
13006         * pic/pic.h: Declare hypot().
13008         * pic/pic.h: Define M_PI if necessary.
13010 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
13012         * tmac/tmac.e (re): Add alternative version that doesn't use groff
13013         `.ta T' feature.
13015         * devps/prologue.ps (RE): Handle the possibility that the old font
13016         doesn't have a FontName entry.
13018 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
13020         * tmac/tmac.e (fam): Redefine to set family in environment 2.
13021         (@C): Use @fam not fam.
13023 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
13025         * lookbib/lookbib.cc (main): Change type of start to const char *.
13026         * lkbib/lkbib.cc (main): Likewise.
13028         * eqn/lex.cc (definition::definition): Don't use member
13029         initializer syntax for members of anonymous unions.
13031         * troff/input.cc (input_stack::backtrace): Change type of to const
13032         char *.
13034 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
13036         * include/stringclass.h (class string): Declare inline friend
13037         functions as inline in class declaration.
13038         * troff/hvunits.h (class hunits, class vunits): Likewise.
13039         * include/refid.h (class reference_id): Likewise
13040         * troff/troff.h (points_to_units(units), scale(units, double)):
13041         Delete declarations.
13042         * libdriver/input.cc (get_char): Delete declaration.
13043         * include/lib.h: Change 2nd argument of getopt from const char **
13044         to char **.
13045         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
13046         char **' before assigning to a `const char **'.
13047         * tbl/table.cc: Delete extra declarations of prints().
13049 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
13051         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
13052         char **' before assigning to a `const char **'.
13054         * libgroff/errarg.cc (errarg::errarg): Don't use member
13055         initializer syntax for members of anonymous unions.
13057 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
13059         * mm: Integrate version 1.07.
13061 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
13063         * troff/input.c (translate2): Rename to
13064         (translate_no_transparent).
13065         (init_input_requests): Rename tr2 to trnt.
13067 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
13069         * troff/charinfo.h (class charinfo): Add transparent_translate field.
13070         (charinfo::set_translation, charinfo::set_special_translation):
13071         Add second argument that specifies value for
13072         transparent_translate.
13073         (charinfo::get_translation, charinfo::get_special_translation):
13074         Add optional second argument that specifies whether translation is
13075         being used for transparent throughput.
13076         * troff/input.cc (charinfo::set_translation,
13077         charinfo::set_special_translation): Handle second argument.
13078         (charinfo::charinfo): Initialize transparent_translate.
13079         (translate): Split main part off into
13080         (do_translate): New function.  Pass argument saying whether
13081         translation applies to transparent throughput.
13082         (translate2): New request.
13083         (init_input_requests): Bind translate2 to `tr2'.
13085 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
13087         * tbl/table.h (class table): Add `nokeep' flag.
13088         * tbl/main.cc (process_options): Handle `nokeep' option.
13089         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
13090         table::do_bottom): Don't output keep/release macro definitions or
13091         calls when `nokeep' option has been specified.
13093 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
13095         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
13097 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
13099         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
13100         block_entry::divert, alphabetic_block_entry::divert): Add extra
13101         argument giving column separation.
13102         (table::compute_widths): Pass column separation to
13103         table_entry::divert().
13104         (block_entry::do_divert): If an entry spans multiple columns and a
13105         minimumum width has been specified for each column, then set the
13106         line length to the sum of the widths (plus possibly the column
13107         separations).
13109         * troff/input.cc (set_escape_char): Don't set the escape_char
13110         until after calling has_arg().
13112 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
13114         * tbl/table.cc (table::do_top): Add missing \s0 for double box
13115         case.
13117         * tbl/table.cc (table::print_double_hline): Avoid extra new line
13118         in case where r > nrows - 1.
13120         * tbl/table.cc (BODY_HEIGHT): Deleted.
13121         (LINE_SEP): New definition.
13122         (table::print_single_hline, table::print_double_hline,
13123         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
13124         table::do_row, table::do_top): Use LINE_SEP space before a line
13125         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
13127         * tbl/table.cc (text_entry::print_contents): New function.
13128         (text_string_name, right_text_string_name): Deleted.
13129         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
13130         (simple_text_entry::do_width, numeric_text_entry::do_width,
13131         alphabetic_text_entry::do_width): Don't store the contents of the
13132         entry in a string.
13133         (left_text_entry::simple_print, right_text_entry::simple_print,
13134         center_text_entry::simple_print,
13135         alphabetic_text_entry::simple_print,
13136         numeric_text_entry::simple_print): Print the entry directly
13137         instead of using the stored string.
13139 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
13141         * devps/Makefile: Strip PostScript files.
13142         * devps/prologue: Rename to...
13143         * devps/prologue.ps.
13144         * devps/psstrip.sed: New file.
13145         * devps/download: Use .pfa rather than .ps for installed versions
13146         of fonts.
13148 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
13150         * troff/env.cc (input_trap): Give a warning if the argument is out
13151         of range.
13153         * troff/env.cc (adjust): Treat negative argument as missing. Round
13154         argument > 5 down to 5.
13156         * troff/env.cc (center, right_justify): Make negative argument zero.
13158         * troff/div.cc (page_offset, vertical_position_traps): Treat
13159         invalid argument as missing.
13160         * troff/env.cc (line_spacing, line_length, title_length, indent,
13161         underline, hyphen_line_max_request, control_char,
13162         no_break_control_char, widow_control_request, adjust, input_trap,
13163         point_size): Likewise.
13164         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
13165         constant_space): Likewise.
13166         * troff/input.cc (compatible, shift, warn_request,
13167         set_escape_char): Likewise.
13169         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
13170         * tbl/table.cc (table::table): Likewise.
13172         * Makefile.dev (install_dev): depends on $(DEVFILES).
13174 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
13176         * devX75, devX75-12, devX100, devX100-12: New directories.
13177         * Makefile.in: Add these to DEVDIRS.
13179         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
13180         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
13181         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
13182         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
13183         targets.
13184         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
13185         (uninstall): New target.
13186         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
13187         uninstall_prog, uninstall_dev): New targets.
13189         * troff/div.cc (return_request): Treat an invalid argument as
13190         missing.
13192 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
13194         * tmac/tmac.e ((f): Set up the environment even when there's a
13195         current diversion.  Transperently throughput a call to @N.
13196         (@N): New macro.
13198 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
13200         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
13201         up to vertical resolution.
13203         * tbl/table.cc (table::do_row): Change row number after printing
13204         stuff list.
13206         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
13208 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
13210         * Rename CHANGES to NEWS.
13212 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
13214         * libgroff/new.cc (operator new): Avoid calling malloc(0).
13216 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
13218         * man.ultrix: Removed.
13220 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
13222         * Makefile.comm (extraclean): Delete files whose names begin with
13223         `='.
13225         * pic/troff.cc (troff_output::text): Fix typo in implementation of
13226         aligned text.
13228 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
13230         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
13231         * troff/div.cc (page_length, need_space, space_request): Treat
13232         invalid optional argument as missing.
13233         * troff/env.cc (number_lines): If the first argument is present
13234         but not a number, turn on line numbering, don't change the next
13235         line number and parse the remaining arguments.
13237         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
13239 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
13241         * eqn/box.h: Change declaration accordingly.
13242         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
13243         the specified size was bad but don't give an error.  Check for
13244         overflow.
13245         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
13246         * eqn/lex (do_size): Likewise.
13248 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
13250         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
13251         compatible headers.
13253 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
13255         * tbl/table.cc (table::init_output): Improve error message when
13256         table won't fit on one page.
13258 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
13260         * pic/troff.cc (troff_output::start_picture): Generate line
13261         containing a horizontal motion equal to the width of the picture.
13263         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
13264         using GROFF_COMMAND_PREFIX environment variable.
13266 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
13268         * mdate.sh: Use $NF rather than $(NF).
13270 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
13272         * pic/main.cc (main):  Use %1 not %c in argument to warning.
13274         * eqn/main.cc (main): Output code to check that geqn was given the
13275         correct -T option.
13277 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
13279         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
13280         `ln -s ../Makefile .; make; rm -f Makefile'.
13282         * troff/hyphen: Rename to...
13283         * troff/hyphen.us:
13284         * troff/input.cc (main): Delete -H option. Don't call
13285         read_hyphen_file().
13286         * troff/env.cc: Include searchpath.h and macropath.h.
13287         (exception_dictionary): Deleted.
13288         (ht): Deleted.
13289         (read_hyphen_file): Deleted.
13290         (hyphenation_language): New struct.
13291         (class trie, class hyphen_trie): Move declarations up.
13292         (trie_node::~trie_node): Deleted.
13293         (trie::delete_trie_node): New function.
13294         (trie::do_delete): New pure virtual function.
13295         (hyphen_trie::do_delete): New function.
13296         (trie::~trie): New function.
13297         (hyphen_trie::~hyphen_trie): New function.
13298         (trie::clear): No need to chcek that tp is not 0.
13299         (current_language, language_dictionary): New variables.
13300         (hyphen_word): Give an error if no current language.  Use
13301         exceptions dictionary in current language.
13302         (hyphen_trie::read_patterns_file): Find file using macro_path.
13303         Allow comments (starting with %) in patterns file.  Don't make it
13304         a fatal error if the file can't be found.
13305         (hyphenate): Return if no current language.  Get the exceptions
13306         dictionary and the hyphenation patterns from the current language.
13307         (set_hyphenation_language): New variable.
13308         (hyphenation_patterns_file): New function.
13309         (hyphenation_language_reg): New class.
13310         (hyphenation_language_reg::get_string): New function.
13311         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
13312         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
13313         register.
13314         * groff/groff.cc (main, help, synopsis): Delete -H option.
13315         * include/Makefile.sub: Don't define HYPHENFILE.
13316         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
13317         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
13318         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
13319         hyphenation patterns.
13321 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
13323         * eqn/neqn.sh: New file.
13324         * eqn/Makefile.sub: Handle neqn.sh.
13326         * eqn/eqn.h: Declare `nroff' variable.
13327         * eqn/box.cc (param_table): Add `nroff' param.
13328         (nroff): Define it.
13329         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
13330         variable.
13331         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
13333         * troff/troff.h (WARN_FONT): New warning.
13334         (WARN_TOTAL): Change accordingly.
13335         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
13336         (warning_table): Add WARN_FONT.
13337         * troff/node.cc (mount_font_no_translate): Pass argument to
13338         font::load_font.  If this is non-zero, give a warning.
13339         Don't give an error message when accessing a font that has already
13340         been found to be invalid.
13341         * include/font.h (font::load, font::load_font): Add additional
13342         optional argument which suppresses error message if the font is
13343         not found.
13344         * libgroff/font.cc (font::load_font): Handle additional argument.
13345         (font::load): Add additional argument. If this is non-null, set it
13346         to 1 and don't give error message.
13348         * include/printer.h (printer::end_page): Add argument giving
13349         length of page.
13350         * libdriver/input.cc (do_file): Pass this.
13351         * grops/ps.cc (ps_printer::end_page): Add argument.
13352         * grodvi/dvi.cc (dvi_printer::end_page,
13353         draw_dvi_printer::end_page): Add argument.
13354         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
13355         columns_per_page members. New member nlines.
13356         (DEFAULT_LINES_PER_PAGE): Deleted.
13357         (tty_printer::tty_printer): Don't compute lines_per_page from
13358         font::paperlength. Don't compute columns_per_page from
13359         font::paperwidth.
13360         (tty_printer::add_char): Don't check horizontal position against
13361         columns_per_page. Grow glyphs vector if neccessary.
13362         (tty_printer::end_page): Add argument giving page_length in units.
13363         Discard lines past end of page.
13365 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
13367         * tmac/tmac.tty-char: Fix definition of \(/l.
13369         * tmac/tmac.X: Define \(en.
13371 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
13373         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
13374         lpq, then use lp rather than lpr.
13376         * tmac/tmac.s (par@reset): Don't call `ad'.
13377         (par*env-init): Call `ad'.
13379 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
13381         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
13382         date.
13384         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
13385         * indxbib/indxbib.cc: Likewise.
13387 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
13389         * libgroff/putenv.c: New file.
13390         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
13391         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
13392         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
13393         stdlib.h with AC_HAVE_HEADERS.
13395 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
13397         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
13398         does not exist.
13400 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
13402         * eqn/box.cc (gsize): Make it an int.
13403         (set_gsize): Parse argument handling increment or decrement.
13404         (box::top_level): Convert gsize to a string.
13406         * troff/input.cc (exit_troff): Make buf unsigned char [].
13407         Call to make_temp_iterator casts buf to char*.
13409         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
13411         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
13412         * Makefile.cpg (depend.temp): Likewise.
13414         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
13416         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
13418 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
13420         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
13422 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
13424         * Version 1.06 released.
13426         * Integrate mm 1.04.
13428 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
13430         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
13432 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
13434         * afmtodit/afmtodit.pl: Add -n option that disables generation of
13435         ligatures command.
13436         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
13437         afmtodit. Regenerate.
13439         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
13440         @f back past the current position.
13442         * tmac/tmac.e: Change calls to @R so that comments are not part of
13443         arguments.
13445 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
13447         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
13449         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
13450         check that we can link a call to a function declared in <stdio.h>.
13451         (GROFF_UNISTD_H): New macro.
13452         * configure.in: Call it.
13453         * Makefile.in: Document it.
13454         * include/posix.h: New file.
13455         * troff/troff.h: Don't include <osfcn.h>
13456         * troff/input.cc: Include posix.h.
13457         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
13458         osfcn.h.
13459         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
13460         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
13461         <fcntl.h>.
13462         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
13463         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
13464         * libbib/search.cc (O_RDONLY): Delete definition.
13465         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
13466         Don't include <osfcn.h>.
13468         * acgroff.m4 (GROFF_TIME_T): New macro.
13469         * configure.in: Call it.
13470         * Makefile.in: Document it.
13472         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
13473         * configure.in: Call it.
13474         * Makefile.in: Document -DTRADITIONAL_CPP.
13475         * include/ptable.h: Don't include generic.h.
13476         (name2): Define it.
13478         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
13479         Afterwards remove [T1 and [T2.
13480         (ref*spec!0, ref*spec!2): Use T1 rather than T.
13481         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
13482         (ref*add-T2): Renamed from ref*add-T.
13483         (ref*add-T1): New macro.
13485 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
13487         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
13489         * libbib/index.cc: Include <fcntl.h>.
13490         (O_RDONLY): Define if necessary.
13491         (make_index_search_item, index_search_item_iterator::get_tag,
13492         index_search_item::check_files): Use O_RDONLY.
13493         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
13494         (O_RDONLY): Define if necessary.
13495         (search_list::add_file): Use O_RDONLY.
13496         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
13497         <sys/stat.h>.
13498         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
13499         (main): Use these.
13501         * libbib/index.cc (S_ISREG): Define it if necessary.
13502         (index_search_item::load): Use S_ISREG.
13504         * include/driver.h: Include <errno.h>.
13506 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
13508         * eqn/box.cc (body_height): Increase default value to 85.
13509         (body_depth): Increase default value to 35.
13511 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
13513         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
13514         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
13515         protected from expansion with \E.
13517         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
13519         * Makefile (Makefile): New target.
13521         * Makefile.sub (configure, distfiles): New targets.
13523         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
13524         construct.
13526 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
13528         * eqn/box.cc (param_table): Add body_height and body_depth.
13530         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
13532 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
13534         * psbb/Makefile.sub: Don't link with libgroff.a.
13536         * acgroff.m4 (GROFF_PUTENV): New macro.
13537         * configure.in: Call GROFF_PUTENV.
13538         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
13539         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
13540         is defined.
13542         * troff/env.cc (distribute_space): Rename force_forward argument
13543         to force_reverse.  Reverse the list if force_reverse is true.
13545 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
13547         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
13549         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
13550         height or depth to be negative.  Guard against SUP_RAISE quantity
13551         being negative.
13553 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
13555         * devps/generate/textmap: Add `an' (arrowhorizex).
13556         * tmac/tmac.ps: \(an overlaps horizontally.
13557         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
13559         * devps/symbolchars: Add arrowverttp, arrowvertbt.
13560         * devps/textmap: Add arrowvertex.
13561         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
13562         updownarrow delimiters.
13563         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
13565         * tbl/table.cc (simple_entry::position_vertically,
13566         block_entry::position_vertically):  For a centered entry, perform
13567         the motion in two stages.
13569         * refer/refer.cc (split_punct): Don't call lookup_token if there
13570         is no token.
13572 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
13574         * troff/input.cc (token::next): Delete token_node after copying
13575         token.
13577         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
13578         cur_point_size.
13580         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
13582         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
13584 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
13586         * grops/ps.cc (usage): -b option takes an argument.
13588         * devps/prologue (PLG): New procedure.
13589         * grops/ps.cc (main, usage): New -g option.
13590         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
13591         length using PLG.
13593 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
13595         * include/cset.h: Include <limits.h> if we have it.
13597         * libgroff/illegal.cc: New file.
13598         * include/lib.h (illegal_input_char): Use table.
13599         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
13600         * pic/lex.cc (ARG1): Renumber to 14.
13601         * eqn/lex.cc (ARG1): Likewise.
13603         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
13604         (eg 1.05.90) correctly.
13606 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
13608         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
13609         Rename $r and $R registers to $v and $V.
13610         ($r, $R): Initialize to 0.
13611         (@v, @V): New macros.
13612         (sz): Call @v.
13613         (@M): Call @V.
13615         * troff/input.cc (main, usage): Add -R option that says not to
13616         load troffrc.
13617         * eqn/main.cc (main, usage): Rename -n to -R.
13619 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
13621         * devps/DESC.in: Leave font positions 5-9 blank.
13622         * devdvi/DESC.in: Likewise.
13624         * grog/grog.pl: Handle `.PS <file' correctly.
13626         * troff/input.cc (input_stack::push): Improve error message when
13627         input stack limit exceeded.
13629 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
13631         * refer/refer.cc (main): Fix typo in handling of `a' option.
13633         * refer/refer.cc (do_bib): In state START after a newline remain
13634         in state START.
13636         * groff/groff.sh: Deleted.
13637         * groff/Makefile.sub: Delete handling of groff.sh.
13639         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
13640         to determine whether to use \X'ps:...'.
13641         * tmac/troffrc: Set 0p register to 0.
13642         * tmac/tmac.ps: Set 0p register to 1.
13644         * groff/groff.cc: Support -X option. Give warning for -TXps and
13645         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
13646         * tmac/troffrc: Support -r.X=1.
13648         * pic/troff.cc (troff_output::dot): Don't test
13649         zero_length_line_flag.
13651 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
13653         * include/lib.h: Declare getopt() and friends unless
13654         STDLIB_H_DECLARES_GETOPT is defined.
13656         * doc/chars.tr: Delete.
13657         * man/groff_char.man: New file.
13659 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
13661         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
13662         user has changed register format.
13664 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
13666         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
13667         `postpro' command in DESC file.  Get spooler command from `print'
13668         command in DESC file.  Execute spooler command with /bin/sh.
13670         * groff/groff.cc: Split Unix-specific parts into...
13671         * groff/pipeline.c: New file.
13673         * LICENSE: Delete.
13674         * COPYING: New file.
13675         * all files: Update copyright notices.
13677         * Rearrange files.  Redo Makefiles.  Use autoconf.
13679 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
13681         * troff/input.c (charinfo_to_node_list): Interpret character
13682         definition with escape_char of `\'.
13684 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
13686         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
13687         Define INT_DIGITS as big enough for 64-bit integer.
13688         * lib/strtol.c: Don't include lib.h.
13689         * lib/lib.h: Delete ifdef __cplusplus stuff.
13691 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
13693         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
13694         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
13695         get DESC from current directory.
13697 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
13699         * tbl/main.c (main): Always reset the line number when reading
13700         from stdin.
13702         * tbl/table.c (table::print_single_hline, table::print_double_hline,
13703         table::define_bottom_macro, table::do_row, table::do_top): Round
13704         vertical spacing up to vertical resolution.
13706 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
13708         * ps/ps.h (enum resource_type): Avoid comma at end of
13709         enumerator-list.
13710         * dvi/dvi.c (class dvi_printer): Likewise.
13711         * dvi/tfmtodit.c (gf::load): Likewise.
13712         * refer/label.y (struct expression): Likewise.
13713         * refer/refer.c (class label_processing_state): Likewise.
13714         * refer/indxbib.c (do_file): Likewise.
13715         * troff/troff.c (enum warning_type): Likewise.
13716         * tbl/main.c (process_data): Likewise.
13717         * troff/charinfo.h (class charinfo):
13719 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
13721         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
13723 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
13725         * groff.c: Move to new groff subdirectory.
13726         * groff/Makefile: New file.
13727         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
13729         * man/mdate.sh: Use ls -L if supported.
13731         * Consolidate all header files produced by gendef into lib/defs.h.
13732         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
13733         Don't include path.h.
13734         * lib/Makefile (path.h): Don't generate.
13735         * troff/input.c: Include defs.h. Don't include config.h.
13736         * troff/Makefile (config.h): Don't generate.
13737         * refer/index.h: Don't include suffix.h.
13738         * refer/index.c: Include defs.h.
13739         * refer/indxbib.c: Include defs.h.
13740         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
13741         defs.h.
13742         * refer/Makefile (suffix.h, path.h): Don't generate.
13743         * groff.c: Don't include config.h. Include defs.h.
13744         * Makefile (config.h): Don't generate.
13745         (lib/defs.h): Generate.
13746         (topclean): Remove lib/defs.h.
13748 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
13750         * lib/malloc.c, lib/getpagesize.h: Deleted.
13751         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
13752         related stuff.
13753         * lib/Makefile: Delete malloc-related stuff.
13754         * lib/new.c: Workaround COOKIE_BUG if necessary.
13756         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
13757         needed header files directly.
13758         * refer/refer.h: Omit definition of DEFAULT_INDEX.
13759         * Makefile: Include definition of DEFAULT_INDEX in path.h.
13761 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
13763         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
13764         argument.
13765         * lib/font (font::load_desc, font::load): Don't split argument of
13766         unknown command.
13767         (font::handle_unknown_font_command): Change type.
13768         * ps/ps.c (ps_font::handle_unknown_font_command,
13769         handle_unknown_desc_command): Change type.
13770         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
13772 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
13774         * lib/font.h (font::handle_unknown_font_command): Add file and
13775         line arguments.
13776         * lib/font.c (font::handle_unknown_font_command):
13777         * ps/ps.c (ps_font::handle_unknown_font_command):
13778         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
13779         lineno arguments.  Use _with_file_and_line functions for error
13780         reporting.
13782         * lib/fontfile.c (font::unknown_desc_command_handler): New static
13783         data member.
13784         * lib/font.c (font::set_unknown_desc_command_handler): New
13785         function.
13786         (font::load_desc): For unknown commands, call
13787         unknown_desc_command_handler if not null.
13788         * lib/font.h (class font): Declare them.
13789         (FONT_COMMAND_HANDLER): New typedef.
13790         * ps/ps.c (handle_unknown_desc_command): New function.
13791         (main): Set bflag if we had a -b option. Call
13792         font::set_unknown_desc_command_handler.
13793         (broken.h): Don't include.
13794         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
13795         submake 
13796         * ps/devps/Makefile: Add `broken' command to DESC file using
13797         BROKEN_SPOOLER_FLAGS.
13799         * macros/tmac.e ([, ]): Add as synonyms for { and }.
13801         * macros/tmac.e ($p): Only exdent if \$3 > 0.
13803         * macros/tmac.e (@R, @S): New macros.
13804         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
13805         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
13806         Declare $H, $[0-9], .. macros with @S.
13807         Declare |0, |1, |2, |3 strings with @S.
13809         * macros/tmac.e (@S): Rename to @U.
13811         * macros/tmac.e (@z): Define @b and bp as empty instead of
13812         deleting them,
13814         * macros/tmac.e (@m): Deleted.
13815         (@h): Don't call @m.
13816         (@z): Don't set @m trap.
13818         * macros/tmac.e ($h, $f): Define |z as empty string.
13820         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
13821         (@q): Likewise.
13823         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
13824         removing them.
13825         ()f): Likewise for * register.
13827         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
13828         argument is missing, don't change $R.  Call sr with three
13829         arguments when initializing.
13831 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
13833         * macros/tmac.e (sr): New macro.
13834         Initialize $r and $R using sr.
13836         * macros/tmac.e (,): Delete \*(#[.
13838         * troff/env.c (set_tabs): Read the tab type even if the position
13839         is bad.  Allow the position of the first tab stop to be negative.
13841 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
13843         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
13844         _POSIX_VERSION.
13845         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
13846         rather than -DPATHCONF_MISSING.
13847         * Makefile: Get rid of PATHCONF_MISSING.
13849         * refer/map.c: New file.
13850         * refer/index.c: Interface to mmap through map.c.  Rename map_size
13851         to map_len.
13852         * refer/Makefile: Handle map.c.
13853         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
13855 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
13857         * Makefile: RANLIB should be `true' if there is no ranlib.
13858         * lib/Makefile (libgroff.a): Simplify.
13859         * driver/Makefile (libdriver.a): Simplify.
13861         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
13862         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
13863         defined.
13865 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
13867         * troff/env.c (compare_ranges): Declare as extern "C".
13869         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
13871         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
13873 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
13875         * pic/troff.c (troff_output::text): Merge in grops_output::text,
13876         but conditionalize use of \X based on \*(.T.
13877         (grops_output::*): Deleted.
13878         * pic/output.h: Delete declaration of make_grops_output.
13879         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
13880         by default. -n sets it to 0.
13881         (usage): Corresponding changes.
13882         * groff.c (main): Don't pass -x or -p to pic.
13883         * groff.sh: Likewise.
13885         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
13886         to be non-zero.
13888         * ps/devps/afmtodit: Change calculation of asc_boundary and
13889         desc_boundary.  Make these bounds inclusive.
13890         * ps/devps: Regenerate font files.
13892 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
13894         * macros/tmac.latin1: New file.
13895         * macros/tmac.tty-char: Use tmac.latin1.
13896         (tmac.tty-tr): Deleted.
13897         * macros/Makefile: Install tmac.latin1.
13898         * macros/tmac.dvi: Use tmac.latin1.
13899         * macros/troffrc: Translate \[char160] onto no-break space here.
13900         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
13902 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
13904         * macros/tmac.Xps: Use `do' request.
13906         * macros/tmac.ps: Use `do' request.
13908         * macros/tmac.e (@C): Use `do' request.
13910         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
13911         * macros/Makefile: Install tmac.X*.
13913         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
13914         * tty/Makefile: Don't install tmac.tty*.
13915         * macros/Makefile: Install tmac.tty*.
13917         * dvi/tmac.dvi: Move to macros.
13918         * dvi/Makefile: Don't install tmac.dvi.
13919         * macros/Makefile: Install tmac.dvi.
13921         * ps/tmac.ps*: Move to macros.
13922         * ps/Makefile: Don't install tmac.ps*.
13923         * macros/Makefile: Install tmac.ps*.
13925         * eqn/box.c: Provide draw_lines parameter corresponding to -D
13926         option.
13927         * macros/eqnrc: Set draw_lines parameter based on device.
13928         * groff.c: Don't pass -D flag to eqn.
13929         * groff.sh: Likewise.
13930         * eqn/main.c: Warn about use of -D.
13932         * troff/input.c (process_startup_file): New function.
13933         (main): Call process_startup_file().
13934         * macros/troffrc: New file.
13935         * macros/Makefile: Install troffrc.
13936         * groff.c (main): Don't pass extra -m option to troff. For a 
13937         pseudo device pass the name of the pseudo device to troff using
13938         -d.
13939         * groff.sh: Likewise.
13940         * groff.c (possible_command::prepend_arg): Deleted.
13942         * troff/input.c (do_request): New function.
13943         (init_input_requests): Bind "do" to do_request.
13945         * eqn/main.c (main): Instead of loading eqnchar from device directory,
13946         load eqnrc from macro directory.
13947         * macros/eqnrc: New file.
13948         * macros/Makefile: Install eqnrc.
13949         * ps/devps/eqnchar: Deleted.
13950         * ps/devps/Makefile: Don't install eqnchar.
13951         * dvi/devdvi/eqnchar: Deleted.
13952         * dvi/devdvi/Makefile: Don't install eqnchar.
13953         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
13954         variable optM.
13956         * lib/device.[ch]: New files.
13957         * lib/font.h (font::set_device_name, font::get_device_name):
13958         Deleted.
13959         * lib/fontfile.c: Use device.h.
13960         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
13961         * troff/input.c: Delete definition of `device'.
13962         (main): Don't initialize device.
13963         * troff/troff.h: Include device.h rather than declaring device.
13964         * troff/Makefile: No need to handle DEVICE.
13965         * driver/input.c: Include device.h. Don't use
13966         font::{set,get}_device_name.
13967         * groff.c, Makefile: Rename device.h to config.h.
13968         * groff.c: Use library device variable.
13969         * eqn/main.c: Use library device variable.
13970         * eqn/Makefile: No need to handle DEVICE.
13972         * lib/searchpath.[ch]: New files.
13973         * lib/Makefile: Handle searchpath.[ch].
13974         * troff/input.c (open_file, init_dirs): Deleted.
13975         (macro_dirs): Deleted.
13976         (open_mac_file, macro_source): Use class search_path.
13977         (add_string, struct string_list): Move definition.
13978         (main): Change -M option to use macro_path. Delete call to
13979         init_dirs().
13980         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
13981         Rewrite to use class search_path.
13982         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
13983         * lib/Makefile: fontfile.c depends on searchpath.h.
13984         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
13985         MACROPATH.
13986         * lib/macropath.[ch]: New files.
13987         * troff/Makefile: No need to handle MACROPATH.
13989         * troff/input.c: Delete DUMP code.
13990         * lib/fontfile.c, lib/font.h: Delete
13991         font::forget_command_line_font_dirs.
13993         * troff/input.c (push_token): New function.
13994         (handle_first_page_transition): Use push_token().
13995         (process_input_stack): Change handling of a space at the beginning
13996         of the line.
13998 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
14000         * troff/input.c (font_dirs): Delete unused variable.
14002         * eqn/lex.c (do_set): Correct error messages.
14004 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
14006         * troff/input.c (do_define_string): Allow the string name to be
14007         followed immediately by a tab.
14008         (define_character): Likewise.
14010 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
14012         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
14013         be negative.
14015         * troff/input.c (input_iterator::is_file): New virtual function.
14016         (file_iterator::is_file): New function.
14017         (input_stack::end_file): New function.
14018         (input_stack::next_file): Handle the situation where there is no
14019         file on the input stack correctly.  Avoid making two passes over
14020         the input stack.
14021         (next_file): Make the filename optional; in this case call
14022         input_stack::end_file().
14024 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
14026         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
14027         produce a real _ charater when the current font is CW and _
14028         otherwise.
14030         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
14031         expression to work around gcc 2.2 bug.
14033 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
14035         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
14037         * troff/env.c (environment::add_padding): New function.
14038         (environment::add_char): Use add_padding().
14039         (environment::space): Likewise.
14040         (environment::wrap_up_field): Add some padding if there is none
14041         and there's no current tab.
14042         * troff/env.h: Declare environment::add_padding.
14044 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
14046         * pic/pic.y: undef fmod and rand before declaring them.
14048 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
14050         * troff/input.c (main): If the DESC file specifies a font name of
14051         0, then leave the corresponding font position empty.
14053         * nroff.sh: New file.
14054         * Makefile (install.nobin): Install nroff.sh.
14056         * tty/devlatin1/R.proto: Add ao as synonym for de.
14057         * tty/tmac.tty-char: Define ao as o.
14059         * tty/dev{ascii,latin1}/R.proto: Add aq.
14060         * tty/tmac.tty-char: Delete definition of aq.
14062 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
14064         * troff/input.c (init_charset_table): Don't translate 0240.
14065         * ps/tmac.ps: Translate char160 to space.
14066         * dvi/tmac.dvi: Likewise.
14067         * tty/tmac.tty: Likewise.
14069 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
14071         * dvi/tmac.dvi: Add support for all Latin-1 characters.
14073         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
14074         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
14075         \(oe, \(r?, \(r!.
14077         * tty/tmac.tty-char: Add \(ah.
14079         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
14080         No need to define \(FM and \(!/. Conditionalize all character
14081         definitions.
14083         * ps/devps/lgreekmap: Add +h, +f, +p.
14085         * ps/tmac.psnew: New file.
14086         * ps/Makefile: Install tmac.psnew.
14088         * troff/input.c (charinfo_to_node_list): Don't ever interpret
14089         character definitions in compatible mode.
14091         * troff/input.c (remove_character): New function.
14092         (init_input_requests): Bind remove_character to "rchar".
14094         * ps/tmac.psold: New file.
14095         * ps/Makefile: Install tmac.psold.
14096         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
14097         characters into tmac.psold.  Make these definitions unconditional.
14099         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
14101         * ps/tmac.ps: Don't define \('c and \('C.
14103         * ps/devps/textmap: Move Greek characters to...
14104         * ps/devps/symbolchars:
14106 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
14108         * ps/devps/text.enc: Add quotesingle.
14109         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
14110         * tty/tmac.tty-char: Likewise.
14111         * dvi/devdvi/texmi.map: Add +h, +f, +p.
14112         * dvi/devdvi/texi.map: Add Fn.
14113         * dvi/devdvi/msam.map: Add lz.
14114         * dvi/tmac.dvi: Handle Bq, bq, aq.
14116         * pic/lex.c (get_token): Recognize 'th.
14117         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
14119 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
14121         * ps/devps/textmap: Move di, mu, +- to...
14122         * ps/devps/symbolchars:
14124         * macros/tmac.s (@XS): Don't call par@reset or fi.
14125         (XA): Call LP. Turn off adjustment. Reduce line length.
14127         * macros/tmac.s: Initially alias XS to LP.
14128         (XS): Rename to @XS.
14129         (cov*ab-init): Alias XS to @XS.
14131 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
14133         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
14134         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
14135         (token::is_size, token::changes_env): Deleted.
14136         * troff/number.c (parse_term): No need to process \s explicitly.
14137         Call tok.next() only after scale indicator has been processed.
14138         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
14139         \f etc explicitly.
14140         (token::next): Handle \s, \f, \S, \H immediately rather than
14141         returning them as tokens.
14142         (token::operator==, token::description, token::add_to_node_list,
14143         token::process): Remove handling of deleted tokens.
14145         * troff/env.c (environment::add_char): When adding padding
14146         indicator character, call start_line() if necessary.
14148 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
14150         * ps/devps/afmtodit: Don't output 0 kerns.
14152         * ps/devps/afmtodit: Remove directory from name of encoding in
14153         font description file.
14155         * ps/devps/afmtodit: Improve error messages.
14157         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
14159         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
14160         * ps/devps/FontMakefile: Deleted.
14161         * ps/devps/afmname: New file.
14163         * ps/devps/symbol.sed: New file.
14164         * ps/devps/symbol.diff: Deleted.
14165         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
14166         Generate zapfdr.afm from zapfd.afm.
14168         * tty/tmac.tty (tty-char): Prefix definition with ".
14170         * macros/tmac.an (TP): Don't start a diversion if one has already
14171         been started.
14173         * tty/tmac.tty-char: Add Latin-1 characters.
14175         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
14177 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
14179         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
14180         Move declaration of struct horizontal_span.
14182         * tbl/table.c (table::table): Initialize span_list.
14183         (table::~table): Delete span_list.
14185         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
14187         * ps/devps/Makefile: Avoid dependency on GNU make.
14189         * ps/tmac.ps: Check that character does not already exist before
14190         defining it.
14192         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
14193         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
14194         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
14195         files.
14197         * tty/tmac.tty-char: New file.
14198         * tty/Makefile: Install tmac.tty-char.
14199         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
14200         tmac.tty-char.
14202         * tty/tmac.tty: Fix definition of \(34.
14204         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
14205         bracket-drawing characters onto |. Add *o.
14207         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
14208         only if current_field.
14210         * troff/dictionary.c (dictionary::lookup): Free old_table after
14211         rehashing. 
14213 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
14215         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
14216         whose glyphs are identical to glyphs of some Roman character.
14218         * tty/devlatin1/R.proto (bu): Deleted.
14219         * tty/devascii/R.proto (bu): Deleted.
14220         * tty/tmac.tty: Add definition of \(bu.
14222         * eqn/main.c (do_file): Pass FILE as argument.
14223         (main): Automatically load eqnchar.  New options -F and -n.
14224         Pass do_file an opened FILE.
14225         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
14226         No need to include font.h.
14227         * groff.sh: Likewise.  Don't need to use - for standard input.
14228         Prefix files with -- if first file starts with -.
14230         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
14232         * troff/env.c (environment::possibly_break_line): Don't set line
14233         to 0 across call to output_line().  Don't call output_line() until
14234         after discarding nodes after break.
14236 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
14238         * request.h (macro::empty): Declare it.
14239         * input.c (macro::empty): New method.
14240         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
14241         macro is empty.
14243 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
14245         * troff/env.c (environment::start_field): Decrement space_total
14246         when a space is frozen.
14248 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
14250         * macros/tmac.an (R): Delete macro.
14252         * troff/input.c (get_copy, token::next): Support \# (like \" but
14253         newline is ignored).
14255         * troff/input.c (token::next): Fix error message in 'Y' case.
14257 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
14259         * eqn/delim.c (define_extensible_string): Recognize any prefix of
14260         a delimiter name.
14262 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
14264         * c++test.c: Include <osfcn.h>.
14266         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
14267         <errno.h> doesn't.
14269 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
14271         * tbl/table.c (table::divide_span): Don't count column separation
14272         if expand was specified.
14274         * tbl/main.c (process_format): Don't ignore width specs in
14275         continued format.  Give warning for changing equal widths or
14276         column separation in continued format.
14277         (process_data): Set column separation, minimum width, equal
14278         columns at end of table.
14280 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
14282         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
14283         node::add_discretionary_hyphen): Use soft_hyphen_char.
14284         (set_soft_hyphen_char): New function.
14285         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
14287         * Makefile (c++tested): Give more helpful message if test fails.
14289 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
14291         * troff/input.c (init_charset_table): Translate 0240 to
14292         an unbreakable space.
14294         * troff/token.h (token::hyphen_indicator): New function.
14295         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
14296         translation.
14297         * troff/input.c (translate): Allow translation to \%.
14298         * troff/node.c (node::add_char): Handle
14299         TRANSLATE_HYPHEN_INDICATOR.     
14300         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
14302         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
14303         for \(hy.
14305         * tty/devlatin1/R.proto: \(hy and - should print as 055.
14307 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
14309         * groff.c (run_commands): If the last command gets a SIGPIPE send
14310         a SIGPIPE to all children than haven't yet terminated.  When
14311         command terminates, set pid field to -1.
14313 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
14315         * groff.c (main): Pass an appropriate -filename option to gxditview.
14317 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
14319         * Makefile.bd (install): Remove existing program before copying.
14321         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
14322         programs which have Unix counterparts to be installed with
14323         user-specified prefix.
14325         * troff/input.c (exit_troff): Don't check if exit_started.
14326         (exit_request): Don't call exit_troff if exit_started.
14328         * Makefile.bd (install.mm): Rename to install.dwbmm.
14330 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
14332         * driver/input.c (do_file): Add missing break for '#' case.
14334 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
14336         * troff/input.c (input_stack::clear):  Clear past any boundaries and
14337         then add the boundaries back.
14339         * troff/input.c (exit_troff): Return immediately if already
14340         exiting.
14342         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
14343         end macro.
14344         (pg*end-page): If the text has ended and there are no more
14345         footnotes or keeps, exit.
14347         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
14349         * troff/input.c (init_charset_table): Make \(rq transparent by
14350         default.
14352         * macros/tmac.an: Define lq and rq strings.
14354         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
14356 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
14358         * troff/env.c (environment::final_break): New function.
14359         (environment::newline): Set prev_line_interrupted to 2 if
14360         exit_started.
14361         * troff/env.h: Declare environment::final_break.
14362         * troff/input.c (exit_troff): Call environment::final_break()
14363         instead of environment::do_break().
14365         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
14366         doesn't already exist.
14367         * macros/man.local: New file.
14368         * macros/tmac.an: Load man.local.
14369         * macros/man.ultrix: New file.
14371 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
14373         * troff/input.c (exit_groff): Rename to...
14374         (exit_troff): New function.
14376         * troff/div.c (exit_started, done_end_macro,
14377         seen_last_page_ejector): New global variables.
14378         (began_page_in_end_macro): New static variable.
14379         (exit_flag): Deleted.
14380         (top_level_diversion::top_level_diversion): Initialize
14381         last_page_count.
14382         (top_level_diversion): More elaborate test for whether
14383         cleanup_and_exit() should be called.
14384         Set began_page_in_end_macro if the end macro isn't yet finished.
14385         * troff/div.h (top_level_diversion::last_page_count): New data
14386         member.
14387         (top_level_diversion::set_last_page): New function.
14388         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
14389         * troff/env.c (do_break): Zero prev_line_interrupted.
14390         * troff/input.c (exit_flag): Delete declaration.
14391         (LAST_PAGE_EJECTOR): New magic cookie.
14392         (token::next): Handle LAST_PAGE_EJECTOR.
14393         (exit_groff): Set exit_started and done_end_macro instead of
14394         exit_flag.  Call top_level_diversion::set_last_page.  Push a
14395         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
14396         another ejection after setting seen_last_page_ejector.
14398 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
14400         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
14402         * macros/tmac.e (TH): Make sure there's room for the initial
14403         header.
14405         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
14406         Set FVS in points rather than units.
14408 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
14410         * troff/div.c (top_level_diversion::add_trap): Don't consider the
14411         position of empty slots.
14413 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
14415         * ps/devps/S: Fix height and depth of parenrightex.
14416         * ps/devps/symbol.diff: Regenerate.
14418 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
14420         * tmac.e (u): Do underlining as in -mgs.
14422 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
14424         * tty/tty.c (tty_printer::end_page): If overstriking is
14425         suppressed, still turn overstruck horizontal and vertical lines
14426         into +.
14428         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
14429         2.1.
14431         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
14433 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
14435         * Version 1.05 released.
14437 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
14439         * tty/tty.c: Instead of keeping an array of glyphs and then
14440         sorting it, keep a ordered linked list of glyphs for each line.
14442         * driver/driver.h: Include stddef.h.
14444         * tty/tty.c (compare_glyph):
14445         * refer/refer.c (rcompare):
14446         * troff/env.c (compare_ranges): Arguments of qsort comparison
14447         function should be const void *.
14449         * troff/number.c (parse_term):
14450         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
14451         switch statement.
14453         * refer/label.y (consider_authors): Don't access variables
14454         constructed under a condition outside that condition: put braces
14455         round for statement containing declaration; redeclare use of same
14456         variable later.
14458         * pic/pic.y (text_expr): Delete production that allows
14459         parenthesised text_expr.
14460         (expr): Allow a conditional_expr to appear in parentheses.
14461         (conditional_expr): Rename to any_expr.
14463         * mm: Install new version 1.01 from jh.
14465         * lib/font.c (font::get_width): Cache scaled widths.
14466         (font::font): Initialize widths_cache.
14467         (font::~font): Destroy widths_cache.
14468         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
14470 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
14472         * c++test.c, c++test.ref: New files.
14473         * Makefile: Check that the C++ compiler works.
14475         * ps/tmac.pspic (PSPIC): Do a break.
14477         * ps/tmac.ps: Move definition of PSPIC into...
14478         * ps/tmac.pspic: New file.
14479         (PSPIC): Draw box around picture, but make it invisible to grops.
14480         * ps/tmac.ps: Load tmac.pspic.
14481         * ps/Makefile: Install tmac.pspic.
14483 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
14485         * lib/font.c (scale_round): If n is negative,
14486         subtract .5 before truncating floating point result.
14488         * lib/fontfile.c: Include <errno.h>.
14490 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
14492         * driver/input.c (get_char): Inline. Don't update current_lineno.
14493         Change callers to up date current_lineno if necessary.
14494         Use get_char() instead of getc(current_file).
14496 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
14498         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
14500 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
14502         * tty/tty.c (tmac.tty): Define \(rg as (R).
14504 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
14506         * lib/lib.h: New define a_delete.
14507         * Use a_delete instead of delete when deleting an array of objects
14508         without destructors.
14510         * lib/lib.h: Rename adelete to ad_delete.
14511         * Change uses of adelete.
14513 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
14515         * eqn/eqn.y: Include lib.h.
14517         * troff/node.c (grow_font_table): Delete old_font_table.
14519         * mm: Install new version from jh.
14521 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
14523         * tbl/table.h (format_type): Make global instead of local to class
14524         entry_format.  Prefix enumerators with FORMAT_.
14525         * tbl/table.c, tbl/main.c: Corresponding changes.
14526         * refer/token.h (token_type): Make global.  Prefix enumerators
14527         with TOKEN_.
14528         * refer/token.[ch]: Corresponding changes.
14529         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
14531         * troff/div.c (node::set_vertical_size): Don't name argument.
14533 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
14535         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
14536         * lib/lib.h: Define adelete accordingly.
14537         * pic/object.c (graphic_object::graphic_object):
14538         * tbl/main.c (format::~format):
14539         * tbl/table.c (table::~table):
14540         * refer/ref.c (reference::~reference, reference::merge,
14541         reference::insert_field, reference::delete_field): Use adelete.
14543         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
14544         * refer/token.h:
14545         * tbl/table.h: Corresponding changes.
14547         * common.c (common_output::dashed_arc, common_output::dotted_arc):
14548         Ensure total_angle is positive.
14550 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
14552         * refer/ref.c (reference::merge, reference::insert_field,
14553         reference::delete_field): Avoid delete[0].
14555         * refer/token.c (init_special_chars): Move calls to cmupper
14556         outside calls to init_two_char_letter to work around bug in gcc
14557         2.0.
14559 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
14561         * lib/new.c (operator new): Use __builtin_new for g++.
14563         * pic/object.c (graphic_object::~graphic_object):  Don't use
14564         delete [] on 0.
14566         * pic/object.c (output::compute_scale): Initialize max_width and
14567         max_height.
14569 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
14571         * troff/input.c (write_request): Call fflush.
14573         * troff/node.h (class composite_node): Move declaration to node.c
14574         * troff/input.c (charinfo_to_node): Rename to ...
14575         (charinfo_to_node_list): Return node list rather than composite
14576         node.
14577         * troff/node.c (make_composite_node): New function.
14578         (make_node, add_char): Call make_composite_node instead of
14579         charinfo_to_node.
14580         (class composite_node): Add a tfont * member.  Delete font_size
14581         member.
14582         (composite_node::composite_node, composite_node::copy,
14583         composite_node::size): Corresponding changes.
14584         (composite_node::tprint): Provide constant spacing, emboldening
14585         and track kerning as specified in tfont.
14586         (composite_node::width): Change width calculation accordingly.
14587         * troff/env.h (environment::composite): New member.
14588         (environment::is_composite, environment::set_composite): New
14589         functions.
14590         * troff/env.c (environment::environment): Initialize composite.
14591         * troff/input.c (charinfo_to_node): Call
14592         environment::set_composite.
14593         * troff/node.c (make_composite_node, make_glyph_node): Use the
14594         plain version of the tfont if the environment is composite.
14596         * troff/node.c (font_info::get_space_width): Additional argument
14597         giving space_size.  Handle constant space correctly. Scale by
14598         space_size unless constant spaced.
14599         (env_sentence_space_width): New function.
14600         * troff/node.h: Declare it.
14601         * troff/env.h (environment::get_space_size,
14602         environment::get_sentence_space_size,
14603         environment::get_narrow_space_width,
14604         environment::get_half_narrow_space_width): Make inline.
14605         (environment::get_space_width): Make inline.  Just call
14606         env_space_width.
14607         * troff/env.c: Delete definitions for funtions made inline.
14608         (environment::space_newline, environment::space): Use
14609         env_sentence_space_width(). Don't scale by space_size.
14610         * troff/node.h: Move declarations of env*space_width() functions
14611         into env.h.
14613 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
14615         * macros/tmac.s (PS): Don't try to set negative indent.
14617 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
14619         * pic/pic.y: Fix min function.
14621 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
14623         * man/mdate.sh: Clear LANGUAGE.
14625 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
14627         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
14628         * pic/lex.c: New COMMAND keyword.
14629         * pic/pic.y (print_args, print_arg): New rules.
14630         (placeless_element): Use print_args for PRINT.
14631         New COMMAND element.
14633 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
14635         * troff/input.c (terminal): Handle missing argument correctly.
14637         * pic/pic.y (text_expr): New rule.
14639         * pic/pic.y: Implement := operator.
14641 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
14643         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
14644         mdoc.
14646 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
14648         * ps/devps/dingbatsrmap: Include this in the distribution.
14650         * macros/tmac.doc: Replace with new version from 2nd Networking
14651         Release. Fix loading of doc-* files.
14652         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
14653         * macros/tmac.doc.old: New file.  Apply fixes that had been
14654         applied to old tmac.doc.
14655         * macros/tmac.andoc: Check that we're running under groff.
14656         * macros/Makefile: Rework.
14658 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
14660         * tbl/table.h (format_type): 
14661         * refer/token.h (token_type): If NESTED_TYPES is defined, use
14662         typedef to make these types visible at file scope.
14663         * Makefile: Add NESTED_TYPES configuration option.
14665         * troff/div.c (mark): At the top level use the value of
14666         nl_reg_contents rather than the current vertical position.
14668 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
14670         * tty/tty.c: Implement \D for horizontal or vertical lines.
14671         (tty_printer::set_char): Use vec_used+2 as serial number.
14672         Don't allow size of vector to exceed USHRT_MAX-2.
14673         Split off part into...
14674         (tty_printer::add_char): New function.
14675         (tty_printer::draw): New function.
14676         (compare_glyph): Handle equal serial numbers.
14677         (tty_printer::end_page): Handle overstruck characters from \D.
14678         (main, usage): Implement -d option.
14680 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
14682         * tbl/main.c (process_format):
14683         * eqn/text.c (split_text):
14684         * troff/input.c (token::next): Use inner block for declarations
14685         with initializers in switch statement.
14687 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
14689         * pic/common.c (common_output::dash_line): Cope with zero-length
14690         lines.
14692 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
14694         * Version 1.04 released.
14696 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
14698         * macros/tmac.an (TH): Define a macro an-init to define variables
14699         based on command line arguments.
14700         (an-header): Call it.
14702 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
14704         * Makefile (install.mm): Rename to install.dwbmm.
14706         * Makefile: Integrate mm.
14707         * mm: New directory.
14709 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
14711         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
14712         <sys/types.h>.
14714         * pic/troff.c (troff_output::simple_spline,
14715         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
14716         shadowing parameter.
14718         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
14720         * lib/ptable.h: Add explicit casts when converting from unsigned
14721         long to unsigned.
14723         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
14724         * dvi/devdvi/Makefile: Install SA, SB.
14726         * refer/indxbib.c: Add declaration of mktemp.
14728         * refer/lookbib.c: Add declaration of isatty.
14730 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
14732         * pic/lex.c (interpolate_macro_with_args):  While collecting
14733         arguments, keep track of whether we're in a string.
14735 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
14737         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
14738         down with \v, so as to avoid problems with top of page trap
14739         setting no space mode.
14741 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
14743         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
14745 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
14747         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
14748         Improve error message.
14750 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
14752         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
14753         printf("%03o");
14755 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
14757         * groff.c (possible_command::execp): Always use _exit() after a
14758         failed exec.
14760         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
14761         NO_SYS_WAIT_H   configuration options.
14762         * groff.c: Use these options.  Use POSIX-style macros to extract
14763         fields from the status returned by wait().
14765 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
14767         * tbl/table.c (table::compute_separation_factor): Allow the
14768         separation factor to drop to 0.
14770 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
14772         * refer/search.c: Include <errno.h>.
14774 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
14776         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
14778         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
14779         C++. 
14781         * pic/lex.c (input_stack::bol): Move definition out of class body.
14783         * pic/main.c: On MSDOS munge argv[0].
14785         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
14787         * lib/ptable.c (hash_string): Use unsigned long rather than
14788         unsigned.
14789         (next_ptable_size): Use unsigned rather than int.  Give an error
14790         message if we've hit the largest table size.
14791         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
14792         table size.
14794         * pic/object.h (object_spec): Make flags unsigned long.  Declare
14795         flags as const unisgned long rather than as enums.
14797         * pic/output.c: Deleted.
14799         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
14801         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
14802         Add additional argument.
14803         (line_entry::note_double_vrule_on_{left,right}): Set value of
14804         douvle_vrule_on_{right,left} flag according to argument.
14805         (simple_line_entry::simple_print,
14806         simple_line_entry::double_line_print): If adjacent to double vrule
14807         on a corner extend rather than shorten the rule by half the double
14808         vrule sep.
14810         * troff/number.c (parse_term): In checking for overflow, handle the
14811         case where the current horizontal position is negative.
14813 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
14815         * pic/object.c (draw_arrow): Check for object having zero length.
14817 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
14819         * eqn/main.c (do_file): Split off inline equation handling into...
14820         (inline_equation): New function.  Search for starting delimiter
14821         using...
14822         (delim_search): New function. Don't recognize a delimiter that
14823         occurs in the name of an escape sequence, number register, string
14824         etc.
14826 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
14828         * eqn/delim.c (delim_box::compute_metrics): Don't call
14829         define_extensible_string if left is 0.
14830         (delim_box::output):  Don't print the left delimiter if left is 0.
14831         (delim_box::debug_print): Check for left == 0 before calling printf.
14833 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
14835         * troff/Makefile (majorminor.c): Include only digits in
14836         minor_version.
14838 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
14840         * refer/dirnamemax.c: new file.
14841         * refer/genlimits.c: Deleted.
14842         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
14843         Don't check path length.
14844         * refer/Makefile: Add dir_name_max.o; delete genlimits.
14845         * Makefile: Add PATHCONF_MISSING option.
14847         * refer/indxbib.c (get_cwd): New function.
14848         (main): Use get_cwd().
14849         * lib/getcwd.c: New file.
14850         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
14851         GETCWD in SUBFLAGS.
14852         * lib/Makefile: Compile getcwd.o.
14854         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
14855         userdict.
14857         * refer/indxbib.c (main): Check success of mktemp.
14859         * lib/tmpfile.c: New file.
14860         * lib/Makefile: Add tmpfile.c.
14861         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
14862         * ps/ps.h: Delete declaration of mktemp().
14863         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
14864         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
14865         * driver/driver.h: No need now to include errno.h.
14867         * everywhere: Set errno to 0 before calling fopen().
14869         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
14870         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
14871         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
14873 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
14875         * troff/env.h (translate_space_to_dummy): Declare it.
14876         * troff/env.c (environment::space_newline, environment::space):
14877         If translate_space_to_dummy is set then make the width of spaces 0.
14878         * troff/input.c (translate): If the second character of a
14879         translation is a space, translate to unbreakable space.  If the
14880         first character is a space, set or clear translate_space_to_dummy
14881         according to whether the second character is \&.  Weird!
14883 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
14885         * groff.c (run_commands): Don't use non-zero exit code because a
14886         command gets SIGPIPE.
14888         * groff.c, groff.sh: Use -mXps with -TXps.
14890         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
14891         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
14892         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
14893         (ps_printer::special): New specials invis and endinvis.
14894         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
14895         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
14896         (ps_printer::end_page): Check that invis_count == 0.
14897         (ps_printer::invis_count): New member.
14898         (ps_printer::ps_printer): Initialize invis_count to 0.
14900         * troff/env.c (environment::hyphenate_line): Hyphenation
14901         indicator at beginning of word inhibits splitting after -, \(em
14902         etc.
14904         * pic/pic.y (element): Allow another element to follow } without
14905         any intervening separator.
14907 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
14909         * pic/lex.c (get_delimited): Allow tabs before delimiter.
14911 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
14913         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
14914         declaration of wait() in header files.
14915         * Makefile: Get rid of -DHAVE_UNION_WAIT.
14917         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
14919         * lib/lib.h: Declare return type of strerror as char *.
14921         * man/Makefile: Add g flag to sed substitutions.
14922         * Makefile (shgroff, bindist): Likewise.
14924 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
14926         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
14927         * ps/devps/prologue (PBEGIN): Define showpage after pushing
14928         userdict.
14930 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
14932         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
14933         userdict.
14935 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
14937         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
14938         group.
14940 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
14942         * troff/input.c (define_number_reg):  If currently undefined,
14943         don't define it if the argument is an invalid expression.
14945         * Makefile: Ignore return value of `if' commands without `else'
14946         parts.
14948         * Makefile: Split up CPPDEFINES into a series of separate
14949         configuration options.
14951         * troff/input.c (init_registers): Use time_t instead of long
14952         unless LONG_FOR_TIME_T is defined.  Use returned result rather
14953         than passing pointer.
14954         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
14956         * lib/Makefile (fontpath.h): Use gendef.
14958 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
14960         * troff/input.c (input_iterator::shift): Delete argument name.
14961         * troff/node.c (suppress_output_file::really_begin_page,
14962         suppress_output_file::really_transparent_char, node::ascii_print,
14963         node::tprint): Delete names of unused arguments.
14965 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
14967         * refer/label.y (string):  Pass $4 to command_error.
14969 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
14971         * Version 1.03 released.
14973 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
14975         * Makefile: Pass definition of SHELL in SUBFLAGS.
14977         * gendef: New file.
14978         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
14979         ps/Makefile: Use gendef to construct header files that are
14980         constructed from the Makefile.
14982         * macros/Makefile: make all should build stripped version of tmac.e.
14984         * refer/Makefile (clean): Remove y.output.
14986 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
14988         * ps/pfbtops.c (main): Add -v option which prints out a version
14989         number.
14990         * ps/Makefile (pfbtops): Link with libgroff.a.
14992 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
14994         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
14995         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
14997         * refer/lkbib.c (main): Always terminate reference with blank
14998         line.
14999         * refer/lookbib.c (main): Likewise.
15001         * refer/linear.c (file_buffer::load): Check that the file is not a
15002         binary file.
15004         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
15005         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
15006         Delete second inclusion of <sys/param.h>.
15008 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
15010         * troff/token.h (token::special): Deleted.
15012         * tbl/main.c (process_format): Rework so that opt->tab_char is
15013         recognized only when appropriate.
15015         * ps/Makefile (clean): Remove pfbtops.
15017 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
15019         * lib/font.c (text_file::next): Don't return if we have got a
15020         blank line.
15022 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
15024         * refer/refer.c (store_reference): Get hash code from old_table[i]
15025         when rehashing the table.
15027 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
15029         * eqn/box.c (box::top_level): Save size and prev size using \R and
15030         restore it afterwards. Set the size to the size at the beginning
15031         of the line.
15032         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
15033         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
15035         * refer/Makefile (limits.h): Use ./genlimits.
15037 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
15039         * refer/index.c: Delete declarations of stat() and fstat().
15041 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
15043         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
15045 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
15047         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
15049 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
15051         * troff/input.c (token::get_char): Handle \e.
15053         * refer/linear.c: Delete declarations of fstat() and stat().
15055 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
15057         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
15058         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
15060 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
15062         * troff/input.c (do_define_macro): Improve error handling for end
15063         of file while defining macro.
15065 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
15067         * eqn/box.h: Fix declaration of set_gsize.
15068         * eqn/box.c (set_gsize): Make argument const char *.
15069         (gsize): Declare as char *.
15070         * eqn/main.c (main): Don't convert gsize to int.
15071         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
15073         * Version 1.02 released.
15075 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
15077         * macros/tmac.andoc: New file.
15078         * macros/Makefile: Install tmac.andoc.
15080         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
15081         operator new and delete on OP_DELETE_BROKEN not being defined.
15082         * Makefile: Mention OP_DELETE_BROKEN.
15084 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
15086         * Makefile (bindist): Pass SUBFLAGS.
15088 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
15090         * Makefile, groff.c: Pass definitions to groff.c via device.h.
15092         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
15093         parameter.
15095         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
15097         * ps/ps.h, ps/psrm.c: Make comment_table and
15098         header_comment_table local to resource_manager::process_file.
15100         * groff.sh: With -TXps pass -printCommand option to gxditview.
15102         * groff.c (possible_command::print): Implement using
15103         append_arg_to_string.
15105         * xditview: Merge in new implementation with own ChangeLog.
15107 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
15109         * groff.c (main): Implement PRINT_OPTION.
15110         (append_arg_to_string): New command.
15111         (device_table): Set PRINT_OPTION flag for Xps.
15113 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
15115         * troff/groff.h: Rename to troff.h.
15117         * pic/lex.c (lookup_keyword, docmp): New functions.
15118         (get_token): Use new lookup_keyword.
15119         Don't include key.h.
15120         * pic/key.[ch], pic/pic.gperf: Deleted.
15121         * pic/Makefile: Remove gperf stuff.
15123         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
15124         into output.h.
15125         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
15127         * troff/Makefile, troff/node.c: Move definition of
15128         STORE_WIDTH into node.c.
15130         * etc/grog.pl, etc/grog.sh: Support -mdoc.
15132 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
15134         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
15135         dvi/devdvi/texb.map: Add lq and rq.
15136         dvi/devdvi: Regenerate fonts.
15137         * ps/devps/textmap: Add lq and rq.
15138         * ps/devps: Regenerate fonts.
15139         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
15140         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
15142         * pic/object.c (position_rectangle): When checking radius
15143         cope with possiblity that width or height is negative.
15144         (box_object::box_object): Have separate xrad and yrad with
15145         signs matching signs of dim components.
15146         (box_object::{north,south}_{east,west}): Use xrad and yrad.
15147         (box_object::print): With rounded boxes use absolute values
15148         for dim and rad arguments.
15150         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
15151         in fontpath.h.
15153         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
15155         * various files: Add explicit destructors to keep Saber CC +d
15156         happy.
15158 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
15160         * eqn/box.c (box::top_level): Restore fonts correctly after
15161         font changes in line containing inline equation.  Also
15162         restore previous font as well as current font.
15163         * eqn/pbox.h: Define necessary string and register names.
15165         * troff/input.c (token::next): Case 'R' calls do_register.
15166         (do_register): New function.
15168 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
15170         * groff.c, groff.sh: Support Xps device.  Allow each device
15171         to have a pseudo_name and a real_name.
15173         * groff.c (run_commands): Don't print `Broken pipe' messages.
15175         * ps/pfbtops.c: New file.
15176         * ps/Makefile: Add pfbtops.
15178         * troff/number.c (parse_term): Improved error message.
15180 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
15182         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
15184         * Makefile: Integrate refer.
15185         * refer: New directory.
15186         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
15187         man/lkbib.man: New files.
15188         * man/Makefile: Support refer man pages.
15190         * lib/lib.h: Declare is_prime.
15191         * lib/prime.c: New file.
15193         * troff/input.c (macro_source): New function.
15194         (init_input_requests): Bind "mso" to macro_source.
15196         * troff/env.c (environment::possibly_break_line): Maintain
15197         pointer to pointer to node to be split in ndp so as to avoid
15198         using address of freed node.
15200         * troff/env.c (environment::hyphenate_line): Maintain pointer to
15201         pointer to first node to be hyphenated in startp so as to
15202         avoid using address of freed node.
15204         * troff/env.c (class trie, class hyphen_trie): Make the
15205         elements of the trie be of type char not unsigned char.
15206         Declare arguments to be const char* instead of unsigned char *.
15207         
15208         * troff/env.c (hyphenate): Initialize hbuf[0].
15210         * troff/input.c (set_string): Declare p to be char * and cast
15211         *p to unsigned char when necessary.
15213         * troff/input.c (do_define_macro): Declare s to be const
15214         char*. Cast element to unisgned char when necessary, Declare
15215         d to be an int.  Handle EOF better.
15217         * troff/Makefile, troff/input.c: Different scheme for passing
15218         definitions of MACROPATH, HYPHENFILE and DEVICE.
15220 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
15222         * tty/devascii/R.proto: Delete entry for em.
15223         * tty/devlatin1/R.proto: Likewise.
15225 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
15227         * troff/input.c (translate): Stop when we get a space. Treat eof
15228         like newline.
15230         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
15232 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
15234         * tbl/main.c (process_format): A font name following a `f'
15235         modifier that starts with a digit can be only one character long.
15236         Also deal with EOF on the second character of the font name.
15238 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
15240         * troff/input.c (token::next): Turn \~ into an
15241         unbreakable_space_node.
15242         * troff/node.c (unbreakable_space_node): New class.
15243         * troff/node.h: Declare it.
15245 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
15247         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
15248         it's >= 0, before outputting it as a single byte.
15250 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
15252         * lib/font.c: Make font_char_metric::code an int.
15253         (font::get_code): Change return type to int.
15254         (font::load): Allow code to be arbitrary integer.
15255         * lib/font.h (font::get_code): Change return type to int.
15256         (font::number_to_index): Change argument type to int.
15257         * troff/input.c (token::next):  In case 'N', allow any value.
15258         Store value in token::val.
15259         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
15260         (token::get_char, token::add_to_node_list, token::process): Get
15261         number from val.
15262         (charinfo::set_number): Change argument to int.
15263         (charinfo::get_number):  Require that NUMBERED flag be set.
15264         (get_charinfo_by_number): Store numbered characters not between 0
15265         and 255 in a dictionary.
15266         * troff/charinfo.h (get_charinfo_by_number): Change argument type
15267         to int.
15268         (charinfo::number): Change type to int.
15269         (charinfo::set_number): Change type of set_number to int.
15270         * troff/node.c (troff_output_file::put_char_width,
15271         troff_output_file::put_char): Test whether character is numbered
15272         using charinfo::numbered().
15273         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
15274         values of num.
15275         * lib/nametoindex.c: New implementation to cope with arbitrary
15276         number characters.
15278         * troff/input.c (token::operator==): Test val for
15279         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
15280         TOKEN_SIZE.
15282         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
15283         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
15285 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
15287         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
15288         variable.
15290         * all Makefiles: rm targets of cp and >.
15292         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
15293         it.
15295         * eqn/lex.c (def_table): Add dollar.
15297 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
15299         * troff/input.c (do_width): Push back newline before closing delim
15300         like do_bracket.
15302 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
15304         * groff.c (possible_command::prepend_arg): New function.
15305         (main): Prepend device -m option.
15306         * groff.sh: Put device -m options before command-line options.
15308 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
15310         * macros/tmac.an (IP): Quote argument to TP.
15312         * ps/ps.c (main): New option -b, which sets...
15313         (broken_flags): New variable.
15314         (ps_printer::~ps_printer): Incorporate the setup section in the
15315         prolog if (broken_flags & NO_SETUP_SECTION).
15316         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
15317         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
15318         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
15319         ps_printer::print_needed_font_comment,
15320         ps_printer::print_supplied_font_comment,
15321         ps_printer::print_include_font_comments,
15322         ps_printer::lookup_doc_font, ps_printer::download_fonts,
15323         ps_printer::read_download_file, read_document_fonts, add_font,
15324         skip_line, parse_fonts_arg, document_font::document_font,
15325         document_font::~document_font, document_font::download,
15326         ps_output::include_file):  Deleted.
15327         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
15328         rather than %!PS-Adobe-2.0.  Make calls to
15329         resource_manager::need_font for each font that we used. Replace
15330         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
15331         print_supplied_font_comment, print_needed_font_comment by call to
15332         resource_manager::print_header_comments. Output %%Orientation
15333         comment. Output %%Requirements: numcopies comment if ncopies > 1.
15334         Don't output the prolog directly.  Instead call
15335         resource_manager::output_prolog.  Only define #copies when ncopies
15336         > 1.  Delete calls to print_include_font_comments  and
15337         download_fonts.  Add call to resource_manager::document_setup.
15338         (ps_printer::do_file): Call resource_manager::import_file instead
15339         of including it ourselves.
15340         (ps_printer::do_import): Likewise.  Also don't call
15341         merge_import_fonts. Push userdict on the dictionary stack before
15342         and pop it afterwards.
15343         Move declaration of ps_output into ps.h.
15344         * ps/psrm.c: New file implementing resource_manager class.
15345         * ps/ps.h: New file declaring ps_output and resource_manager
15346         classes.
15347         * ps/devps/zapfdr.ps:
15348         * ps/devps/symbolsl.ps:
15349         * ps/devps/prologue:  Use 3.0 conventions.
15350         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
15351         Add default definition of BROKEN_SPOOLER_FLAGS.
15352         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
15353         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
15355 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
15357         * etc/grog.pl: New file.
15358         * Makefile (GROG): New variable.
15359         Add GROG to SUBFLAGS.
15360         * etc/Makefile (GROG): New variable.
15361         (install.nobin): Install $(GROG) rather than grog.sh.
15363 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
15365         * eqn/special.c (special_box::compute_metrics): Make the input and
15366         output strings the same.  Get the new height and depth from the
15367         predefined height and depth registers.  Also make subscript kern
15368         and skew available.
15369         (special_box::compute_subscript_kern, special_box::compute_skew):
15370         New functions.
15372         * eqn/box.c (pointer_box::compute_skew,
15373         simple_box::compute_metrics, box::top_level)
15374         * eqn/text.c (prime_box::compute_metrics,
15375         prime_box::comput_subscript_kern)
15376         * eqn/limit.c (limit_box::compute_metrics):
15377         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
15378         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
15379         negative numbers in `nr' requests with a leading 0.
15381 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
15383         * eqn/special.c: New file.
15384         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
15385         Add new rule for simple.
15386         * eqn/lex.c (token_table): Add SPECIAL.
15387         * eqn/box.h: Declare make_special_box.
15388         * eqn/Makefile: Add special.[co].
15390 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
15392         * ps/devps/prologue: Possibly set packing to true while defining.
15393         Create grops dictionary here.  Initialize local variables before
15394         defining procedures.
15395         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
15396         the dictionary stack. Set strokeadjust and overprint to false if
15397         the relevant operators are defined.
15398         (PEND): New procedure.
15399         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
15400         prologue.  Do everything else in the setup section.
15401         (ps_printer::do_import): Just call PBEGIN and PEND around the
15402         picture. Also push userdict before, and pop it afterwards.
15404 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
15406         * troff/node.c (bracket_node::tprint): Brackets were being printed
15407         1m too low.
15409         * macros/tmac.an (SH, SS): Set fill mode.
15411 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
15413         * troff/div.c (top_level_diversion::begin_page): Set
15414         high_water_mark to 0.
15416 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
15418         * man/mdate.sh: New file.
15419         * man/mdate.c: Deleted.
15420         * man/Makefile: Use mdate.sh instead of mdate.
15421         (mdate): Deleted.
15423         * eqn/lex.c (do_gsize): Supply missing argument to error message.
15425 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
15427         * man/mdate.c: New file.
15428         * man/*.man: Replace modification date by @MDATE@.
15429         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
15430         (mdate): New target.
15432         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
15433         Remove illegal input characters.
15435 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
15437         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
15439 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
15441         * troff/div.c (begin_page): Change behaviour when
15442         !first_page_begun and !break_flag.
15444         * troff/input.c (do_name_test): Return 0 if argument is empty.
15446         * troff/input.c (read_long_escape_name): Require closing ] to be
15447         at same input level as opening [.
15449         * troff/input.c (read_increment_and_escape_name): New function.
15450         (get_copy, process_input_stack): Use this for \n.
15452 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
15454         * troff/div.c (top_level_diversion::begin_page): Ignore the
15455         current value of page_number if !first_page_begun.
15457         * groff.c (main): Fix declaration of buf.
15459         * troff/input.c (do_name_test): New function.
15460         (token::next): Implement \A.
15461         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
15462         (token::description, token::add_to_node_list, token::process):
15463         Handle TOKEN_ESCAPE.
15464         * troff/token.h: New token TOKEN_ESCAPE.
15466 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
15468         * pic/main.c (do_picture): Allow space before and after filename
15469         following `<'.  Check that the filename is not empty.
15471 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
15473         * Version 1.01 released. 
15475         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
15477         * dvi/tmac.dvi: ftr HR to H.
15479         * macros/tmac.e: Round up computation of $r.
15481         * xditview/tmac.X:  Don't give up completely in compatibility mode.
15482         Use \n(.s instead of \n[.s].
15484         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
15485         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
15486         Add u to factors inside \s[...]. Rename frac to dvi-frac.
15487         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
15488         short names in the char definitions.
15490         * ps/tmac.ps: Don't give up completely in compatibility mode.
15491         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
15492         quote in front of \n(.s. Add u to factors inside \s[...].
15494 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
15496         * tty/tmac.tty: Call the nroff request.
15498         * macros/tmac.e ((x, )x):  Better definitions that work properly
15499         in a diversion.
15500         (@0, @1): Helper macros for (x.
15502         * macros/tmac.e ($s, hl): Use \l rather than \D.
15504         * tty/tmac.tty: Make it work better in compatibility mode.
15505         (pchar): Rename to tty-char.
15507         * macros/tmac.e (@E): New macro.
15508         (r, i, b, rb, bi): Use @E.
15510         * macros/tmac.e (@F): Don't use (;...) syntax.
15512         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
15513         it was modified for groff.
15515         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
15517         * macros/tmac.e (<., .>): Removed.
15518         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
15520         * macros/tmac.e: Remove check that groff is being used.
15522         * macros/tmac.e (@C): Change families only if using groff; turn
15523         compatibility mode off while changing familes. Save compatibility
15524         mode before changing families and restore it afterwards.
15526         * macros/tmac.e (@h): Remove test for offset + line length.
15528         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
15529         (lo, th, ac): Define to call @S instead of using als.
15531         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
15532         the ratio of the vertical spacing to the point size in units
15533         expressed as a percentage.  Use these instead of $10r and $10R,
15534         Delete $10r and $10R.
15536         * lib/font.c (font::load): In default computation of space_width,
15537         divide by sizescale.  Use scale_round.
15539         * macros/tmac.an (TP): Don't call `nf'.
15540         (an-do-tag): Don't call `fi'.
15542 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
15544         * troff/input.c (process_input_stack): Handle the case where
15545         spaces at the beginning of an input line are followed by a
15546         newline.
15548 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
15550         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
15551         * groff.sh: Use pic -x with the dvi device.
15553         * dvi/devdvi/FontMakefile (H): Don't use -s.
15555         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
15556         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
15557         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
15558         in FONTS.
15560 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
15562         * ps/psfig.diff: New file.
15563         * ps/tmac.psfig: New file.
15565 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
15567         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
15568         (]-): Don't call ref*do-tl.
15570         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
15572         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
15573         (fn@do-FS): Rename to fn*do-FS.
15575         * troff/input.c (transparent_translate): New function.
15576         (process_input_stack): Apply transparent_translate before calling
15577         diversion::transparent_output(unsigned char).
15579 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
15581         * troff/input.c (do_define_macro): Define the macro before calling
15582         skip_line.
15584         * xditview/Makefile: Add DEVICES variable.  Change install target
15585         to use this.
15587 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
15589         * groff.c (run_commands): Handle the possibility that there are
15590         child processes other than those forked by us.
15592 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
15594         * lib/string.c (string::append): New function.
15595         * lib/stringclass.h: Declare it.
15597 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
15599         * eqn/main.c (main): New option -N which sets
15600         no_newline_in_delim_flag. 
15601         (do_file): If no_newline_in_delim_flag is set don't allow newlines
15602         in delimiters.
15603         * groff.c (main): Pass -N on to eqn.
15604         (help, synopsis): Mention -N.
15605         * groff.sh: Implement -N.
15607 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
15609         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
15610         (]-): Call ref*do-tl if ref*need-tl is non-zero.
15611         (XP): Allow as initializer.
15613 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
15615         * troff/env.c (environment::wrap_up_field): If field_spaces are
15616         non-zero and we have a current_tab, subtract padding from
15617         tab_distance.  If this makes tab_distance <= 0, use the next tab
15618         stop instead.  If there isn't any next tab or it's a left tab,
15619         wrap up the current tab.
15620         (environment::start_field): Initialize tab_precedes_field.
15621         (environment::wrap_up_tab): If there's a current field, update
15622         pre_field_width, field_distance and tab_precedes_field.
15623         * troff/env.h (environment::tab_precedes_field): New member.
15625 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
15627         * ps/ps.c (ps_printer::do_file): New function.
15628         (ps_printer::special): Bind to `file' special.
15629         (ps_printer::do_exec): Set ndefined_styles to 0.
15631 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
15633         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
15634         Avoid stripping first character from the start of unrecognized
15635         escapes.  Use lex_error instead of error to report errors.
15636         * eqn/lex.c (get_token): Rework handling of escapes.
15637         (lex_error): Move declaration into...
15638         * eqn/eqn.h.
15640         * xditview/xditview.c (main): Make -page option work.
15642         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
15644 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
15646         * macros/tmac.s (B2): Correct size of box.
15648 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
15650         * macros/tmac.s (B2): Postpone drawing the box until in the
15651         top-level diversion.
15653         * tty/tmac.tty: Add font translations for C, CR, CW.
15655         * groff.c (synopsis, help): Document -i.
15656         * groff.sh: Implement -i.
15658         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
15659         Simplify the construction of SN.
15661         * troff/number.c (parse_term): Give `|' a higher precedence.
15662         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
15663         accordingly.
15665         * macros/tmac.s (B2): Use par@finish instead of par@reset.
15667 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
15669         * lib/string.c (string::move): New function.
15670         * lib/stringclass.h: Declare it.
15672 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
15674         * troff/env.c (distribute_space): Add optional argument
15675         `force_forward'.
15676         (environment::wrap_up_field): Call distribute_space with
15677         `force_forward' argument of 1.
15679 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
15681         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
15682         Inline it.  Move reallocation into...
15683         (string::grow1): New function.
15684         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
15685         dependencies to include library header files.
15686         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
15688 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
15690         * macros/tmac.s (@NH): Use the same number registers than -ms does
15691         for the heading level counters.  Use the same string that -ms does
15692         for the number for this heading.
15694 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
15696         * lib/new.c (operator new): Cast result of malloc to char *.
15698         * troff/input.c (spring_trap, lookup_request): Add assert that nm
15699         is not null.
15701 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
15703         * groff.c (main): Support -i.
15705 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
15707         * pic/pic.h: Include <osfcn.h>.
15709         * ps/ps.c: Add declaration of mktemp.
15711         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
15712         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
15713         argument as union wait *.
15714         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
15715         argument to union wait *.
15717 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
15719         * tty/tmac.tty: Add definition of \(co.
15721         * pic/object.c (make_arc): Only increase radius when radius
15722         strictly less than d.
15723         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
15724         more than once.
15726         * troff/env.c (environment::environment(symbol),
15727         environment::environment(const environment *)):  Initialize
15728         input_trap_count.
15730 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
15732         * tbl/main.c (main): Add exit(0).
15734         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
15736         * pic/main.c (main):
15737         * eqn/main.c (main):
15738         * tbl/main.c (main):
15739         * etc/soelim.c (main):
15740         * driver/printer.c (printer::~printer):
15741         * troff/node.c (real_output_file::~real_output_file,
15742         real_output_file::flush):  Check for errors on stdout.
15744         * most files: Add 1991 to copyright notice.
15746         * macros/tmac.s: Don't test \n(.x and \n(.y.
15748         * troff/input.c (token::next): Rename `escape_char' label to
15749         `handle_escape_char' and `normal_char' label to
15750         `handle_normal_char'.
15752 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
15754         * groff.c (main, synopsis, help): Support -a option.
15755         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
15756         to trflags while parsing options.
15758 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
15760         * troff/number.c (parse_term): With `m', `M' and `n' scale
15761         indicators, convert scale factor to hunits before scaling.
15763 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
15765         * lib/font.c (scale_round): Better test for overflow when n is
15766         negative.
15768 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
15770         * tbl/main.c (process_format): Add second argument of type
15771         options*. Change callers.  Allow opt->tab_char as well as '\t'
15772         between format items.
15774 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
15776         * macros/tmac.an (PD): With no arguments, make sure register PD is
15777         at least \n[.V].
15778         (TH): Call PD with no argument, instead of setting register PD
15779         directly.
15781 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
15783         * Version 1.00 released.
15785 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
15787         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
15789         * dvi/devdvi/DESC: Mount CW instead of CR.
15791         * dvi/tmac.dvi: Add definition of \(tm.
15793         * dvi/devdvi/texsy.map: Add lh, and rh.
15794         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
15795         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
15797         * dvi/devdvi/FontMakefile: Generate H from cmss10.
15798         * dvi/devdvi/Makefile: Install H.
15799         * dvi/devdvi/H: New file.
15801 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
15803         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
15804         be 0.
15806 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
15808         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
15810         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
15812         * macros/tmac.s (@EN): Handle the case where the equation is empty
15813         but the label is not.
15815 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
15817         * troff/groff.h: New warning category WARN_SPACE.
15818         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
15819         WARN_SPACE to warning_table.
15820         (interpolate_macro): Give a warning of type WARN_SPACE if the name
15821         is longer than two characters and is not defined, but the first
15822         two characters do make a defined name.
15824         * PROBLEMS: New file.
15826         * CHANGES: New file.
15827         * README-0.6, README-1.00: Deleted.
15829         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
15830         * xditview/devX75/Makefile: Make devX75-12.
15831         * xditview/devX100/Makefile: Make devX100-12.
15833         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
15834         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
15836 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
15838         * README-0.7: Rename to README-1.00.
15840         * macros/tmac.pic: New file.
15841         * macros/Makefile (install.nobin): Install tmac.pic.
15843 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
15845         * troff/env.c (hyphen_word): Correct the test for whether the
15846         token is a hyphen.  Reset npos to 0.
15848         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
15850 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
15852         * macros/tmac.s (ds*common-end): Call par*reset.
15853         (PE): Likewise.
15854         (par@reset-indent): Deleted.
15856         * macros/tmac.s (@IP): Divert the label.
15858 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
15860         * xditview/draw.c (setGC): Use a line width of .1m rather than
15861         .04m by default; round rather than truncate value.
15863         * tbl/table.c (class empty_entry): New class.
15864         (empty_entry::empty_entry, empty_entry::line_type): New functions.
15865         (table::add_entry): Represent empty entries by objects of type
15866         empty_entry.
15867         (table_entry::line_type): Return -1.
15868         (table::determine_row_type): Ignore entries with line_type 0.
15869         Treat type -1 as non-lines.
15871 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
15873         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
15874         macros/tmac.s: Rename \(-d to \(Sd.
15876 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
15878         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
15879         * xditview/libXdvi/DviChar.c: Likewise.
15880         * dvi/devdvi/texsy.map: Add `<<', `>>'.
15882 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
15884         * troff/div.c (top_level_diversion::begin_page): Call
15885         init_output() if the_output is 0.
15887 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
15889         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
15890         ESCAPE_c.
15891         (get_copy): Turn \E into ESCAPE_E.
15892         (token::process, asciify): Handle ESCAPE_E.
15894         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
15895         (RD): New macro.
15896         (DS): Implement `.DS R'.
15898 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
15900         * macros/tmac.s (FS): New macro.
15902         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
15904         * macros/tmac.s (cov*tl-init): Remove after first execution
15905         instead of aliasing to @nop.  Call top of page macro explicitly
15906         instead of setting trap; call @init first.  Set pg@top as top of
15907         page macro.
15908         (cov*auto-init): Deleted.  Set cov*tl-init instead of
15909         cov*auto-init as top of page trap. 
15910         (TL, LP): Do a break instead of calling cov*tl-init.
15911         (cov*print): With RP format but no TL, alias FS and FE to @FS and
15912         @FE; in this case also give a warning and always start another
15913         page. No need to set pg@top here.
15914         (cov*tl-init): Rename to cov*first-page-init.
15916         * macros/tmac.s (RP): Do `.pn 0'.
15917         (cov*tl-init): With RP format don't do `.pn 0'.
15919         * macros/tmac.s (pg@cs-top): Set no space mode.
15921         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
15922         (cov*ab-init): Alias TL, AU and AI to these.
15924 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
15926         * macros/tmac.s (@EQ): Move the space before the equation into @EN
15927         (@EN): Do nothing unless \n[dl] is > 0.
15929 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
15931         * pic/object.c (ellipse_object::radius): New function.
15933         * VERSION: Change version to 0.7.
15935         * tbl/table.c (block_entry::do_divert): Declare return type as
15936         void.
15937         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
15939 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
15941         * troff/column.c: New file.
15942         * troff/Makefile: Corresponding changes.
15944         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
15945         Friend of vunits.
15947         * troff/div.c (top_level_diversion::space): If the space causes
15948         the first-page transition and springs a trap, truncate the space
15949         to 0.
15951 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
15953         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
15954         the document.
15956         * pic/troff.c (troff_output::line_thickness,
15957         troff_output::set_fill): Do a horizontal motion to compensate for
15958         the width of the \D escape sequence.
15960 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
15962         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
15963         (not X75).
15965         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
15966         to printf.
15968         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
15969         Supply empty definition.
15970         (text_entry::simple_print, simple_text_entry::simple_print):
15971         Delete declarations.
15972         (table::add_entry): Represent empty entries by objects of type
15973         `simple_entry'.
15975 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
15977         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
15979         * tbl/table.c (left_text_entry::add_tab): New function.
15981         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
15982         initialize like LP.
15984 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
15986         * troff/env.c (environment::start_field): Give an error message if
15987         there is no next tab.
15989 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
15991         * troff/env.c (hyphenate): Skip initial elements with zero
15992         hyphenation code.
15994         * macros/tmac.s (par@init): Keep VS in points rather than units.
15996 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
15998         * pic/main.c (main): Implement `-c' option.
15999         * pic/output.h: Declare make_tpic_output().
16000         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
16001         protected.
16002         (tpic_output): New class.
16003         (tpic_output::tpic_output, tpic_output::set_pen_size,
16004         tpic_output::command, make_tpic_output): New functions.
16006 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
16008         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
16009         if they're not already defined.
16010         * tbl/table.c (init_output): Don't test \n(.g.
16012         * troff/input.c (do_if_request): Delete `g' condition. Recognize
16013         `d', `r' and `c' conditions even in compatibility mode.
16015 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
16017         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
16018         box.
16020 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
16022         * troff/env.h (environment::prev_line_interrupted): New member.
16023         (environment::get_prev_line_interrupted): New function.
16024         * troff/env.c (environment::newline): Set prev_line_interrupted.
16025         (environment::environment(const environment *),
16026         environment::environment(symbol)): Initialize
16027         prev_line_interrupted.
16028         * troff/input.c (process_input_stack): Don't give special
16029         treatment to space and newline at the beginning of the line if the
16030         previous line was interrupted.
16032 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
16034         * eqn/eqn.y: Disallow PRIME by itself.
16035         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
16036         PRIME.
16037         (def_table): Remove definition of '.  Define prime to be `.
16039         * eqn/eqn.y: Split off part of rule `script' into a new rule
16040         `nonsup'.
16042 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
16044         * macros/tmac.s ({, }): New string aliases.
16046 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
16048         * README-0.7: New file.
16050 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
16052         * macros/tmac.s: New file.
16053         * man/groff_ms.man: New file.
16054         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
16055         * Makefile.bd: Similarily.
16056         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
16057         definition of TMAC_S.
16058         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
16059         * macros/TODO: New file.
16061 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
16063         * troff/env.c (right_justify): New function.
16064         (init_env_requests): Bind this to request "rj".
16065         (center_lines): Set right_justify_lines to 0. If we get a bad
16066         integer, center 1 line.
16067         (environment::environment(symbol), environment::environment(const
16068         environment *)): Initialize right_justify_lines.
16069         (environment::get_right_justify_lines): New function.
16070         (init_env_requests): Bind this to number_register ".rj".
16072         * troff/env.c (environment::choose_breakpoint): Implement
16073         hyphenation_margin and hyphenation_space.
16074         (environment::get_hyphenation_space,
16075         environment::get_hyphenation_margin): New functions.
16076         (init_env_requests): Bind these to .hys and .hym.
16077         (hyphenation_space_request, hyphenation_margin_request): New
16078         functions
16079         (init_env_requests): Bind these to hys and hym.
16080         (environment::environment(symbol), environment::environment(const
16081         environment *)): Initialize hyphenation_margin and
16082         hyphenation_space.
16083         * troff/env.h: Corresponding changes to class environment.
16085 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
16087         * troff/div.c (blank_line): Always do a break.
16089         * eqn/box.c (do_text): Turn off escapes while appending text to
16090         string.
16092 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
16094         * troff/input.c (while_break_request, while_continue_request): New
16095         functions.
16096         (init_input_requests): Bind these to "break" and "continue".
16097         (while_depth, while_break_flag): New variables.
16098         (while_request): Update while_depth.  Break out of loop if
16099         while_break_flag is set.
16101 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
16103         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
16104         rather than 0.
16106 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
16108         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
16110         * stringify: New file.
16111         * Makefile (groff.o): Use stringify.
16113         * xditview/tmac.X: Remove definition of \(rn.
16114         * xditview/libXdvi/DviChar.c: Remove radicalex from
16115         Adobe_symbol_map.
16117 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
16119         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
16120         (alphabetic_block_entry::alphabetic_block_entry,
16121         alphabetic_block_entry::divert, alphabetic_block_entry::print):
16122         New functions.
16123         (block_entry::divert): Split off body into ...
16124         (block_entry::do_divert): If the block is alphabetic, subtract 2n
16125         from the line length; also update the span width to dl+2n, and the
16126         alphabetic span width to dl.
16128         * driver/input.c (do_file):  While reading argument to D command,
16129         when expanding buffer, multiply szp by sizeof(int) rather than 2
16130         in the argument to memcpy.
16132         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
16133         width of alphabetic columns.
16135 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
16137         * troff/node.c (lookup_family): Supply second argument to lookup.
16139         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
16140         search, return immediately if v is 0.
16142         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
16143         (troff_output::start_picture): Set this reg.
16144         (troff_output::end_picture): Remove this reg
16145         * eqn/box.c (box::extra_space): Don't produce `\x's if
16146         EQN_NO_EXTRA_SPACE_REG is defined.
16148         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
16149         * eqn/text.c (split_text): Map ' to \(fm when it's the first
16150         character.
16152 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
16154         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
16155         requests.
16157         * troff/div.c (top_level_diversion::top_level_diversion):
16158         Initialize page_number to 0.
16160 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
16162         * groff/troff (environment::environment(const environment *)):
16163         Initialize name to e->name, rather than "anonymous".
16165 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
16167         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
16168         requested_page.  Split middle part into ...
16169         (FindPage): New function.
16170         (SetValues): If we don't yet know the last page, and the requested
16171         page is greater than the current page, call FindPage.
16172         Update the font_map_string before doing this.
16174         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
16175         Translate \(lh and \(rh into left and right double arrows.
16177         * troff/node.c (class hyphen_inhibitor_node): New class.
16178         (hyphen_inhibitor_node::hyphen_inhibitor_node,
16179         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
16180         hyphen_inhibitor_node::type,
16181         hyphen_inhibitor_node::get_hyphenation_type): New functions.
16182         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
16183         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
16184         word.
16186 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
16188         * troff/node.h (dummy_node::get_hyphenation_type,
16189         transparent_dummy_node::get_hyphenation_type):  Declare them.
16190         * troff/node.c: (dummy_node::get_hyphenation_type,
16191         transparent_dummy_node::get_hyphenation_type): New functions.
16193 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
16195         * xditview/libXdvi/draw.c: If M_PI not defined after including
16196         math.h, then define it.
16198         * xditview/Makefile: Add definition of AR. Pass it to the submake
16199         in libXdvi.
16200         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
16202 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
16204         * troff/dictionary.h (object_dictionary::alias): Declare return
16205         value as int.
16206         * troff/dictionary.c (object_dictionary::alias): Return non-zero
16207         if the old name was defined.
16208         * troff/input.c (alias_macro): Give a warning if the old name was
16209         not defined.
16210         * troff/reg.c (alias_reg): Likewise.
16212 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
16214         * troff/input.c (token::next): Delete implementation of \R.
16216         * macros/Makefile: Strip comments from tmac.e while installing it.
16218         * troff/input.c: New variable `nroff_mode'.
16219         (troff_request, nroff_request): New functions.
16220         (init_input_requests): Bind `troff' and `nroff' to troff_request
16221         and nroff_request.
16222         (do_if_request): Compute results of t and n conditions from
16223         nroff_mode.
16225         * text/text.c (split_text): Fix typo in >=.
16227         * eqn/lex.c: Add definition of `==' to def_table.
16229 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
16231         * pic/tex.c (tex_output::start_picture): Change the definitions of
16232         \graph and \graphtemp so that they work properly with Plain TeX.
16234         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
16235         argument to `ar' is not less than the first.
16237         * pic/pic.y: Allow a comma between elements of the variable list
16238         in the argument to `reset'.
16240         * pic/object.c (arc_object::arc_object): Fix computation of
16241         radius.
16243         * eqn/main.c (main): Add exit(0).
16245 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
16247         * troff/div.c (begin_page): Test no_space_mode after doing the
16248         break, but still push the page ejector cookie before doing the
16249         break.  Also set the next page number after doing the break.
16250         
16251         * xditview/xditview.c (NewFile): Don't set the title and icon name
16252         if this is the first file and its name is `-'.
16253         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
16254         the X75 and X100 devices.
16255         (main): If a device has the XT_OPTION flag set and there's exactly
16256         one file argument, pass the driver -xrm and -title options to set
16257         the icon name and window title to the name of the file.
16259         * troff/env.c (environment_switch): If there was an argument but
16260         it wasn't a valid number or name, then pop an environment but
16261         don't give an error message on underflow.
16263         * troff/number.c (start_number): Correct spelling in error message.
16265         * troff/input.c (token::delimiter): Don't print an error message
16266         if err is false.
16268         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
16269         ParseDrawFunction if dw->display_enable is true.
16271 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
16273         * pic/pic.y: Parse text positioning like normal attributes, so as
16274         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
16275         positioning attribute.
16277 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
16279         * tbl/main.c (process_data): When in state START while reading a
16280         text block, don't change to state MIDDLE if c is a newline.
16282 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
16284         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
16285         so as to avoid shadowing parameter.
16287 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
16289         * tbl/table.c (trim_space): Deleted.
16290         (table::add_entry): Don't call trim_space.
16292 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
16294         * VERSION: Change version to 0.6.
16296         * troff/number.c (parse_expr): Make == work.
16298 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
16300         * man/grog.man: New file.
16301         * man/Makefile: Add grog.n to MAN1PAGES.
16302         * etc/grog.sh: New file.
16303         * etc/Makefile: Install grog.sh as grog.
16305 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
16307         * troff/input.c (token::next): Implement \E.
16309 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
16311         * xditview/tmac.X: Change font translations to match tmac.ps.
16313         * troff/input.c (non_empty_name_warning): Don't give a warning if
16314         `\{' terminates the name.
16316 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
16318         * ps/devps/symbol.diff: New file.
16319         * ps/devps/FontMakefile: Mention symbol.diff.
16321 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
16323         * troff/node.c (font_position): Use get_long_name to read the
16324         external_name.
16326         * troff/env.c (environment_switch): If we get a number that's < 0
16327         or >= NENVIRONMENTS, treat it like a name.
16328         Change NENVIRONMENTS to 10.
16330         * troff/groff.h: Remove definition of FONTS_MAX.
16331         * troff/node.h (class font_family): Make map a pointer instead of
16332         an array. Add a map_size member. Make it a class. Make nm const
16333         and public. Make invalidate_fontno a friend.
16334         * troff/node.c: Define font_table_size. Make font_info a pointer
16335         rather than an array.
16336         (class troff_output_file): Allocate font_position dynamically. Add
16337         nfont_positions member.
16338         (troff_output_file::set_font): Grow font_position if necessary.
16339         (troff_output_file::~troff_output_file): Delete font_position.
16340         (troff_output_file::troff_output_file): Allocate font_position.
16341         (grow_font_table): New function.
16342         (troff_output_file::really_begin_page,
16343         troff_output_file:really_copy_page): Use nfont_positions rather
16344         than FONTS_MAX.
16345         (mount_font_no_translate, mount_style): Call grow_font_table if
16346         necessary.
16347         (font_family::font_family): Allocate map.
16348         (font_family::make_definite): Grow map if necessary. Use
16349         font_table_size instead of FONTS_MAX.
16350         (font_family::~font_family): New function.
16351         (invalidate_fontno): Use font_family::map_size.
16352         (get_fontno, env_space_width, env_half_narrow_space_width,
16353         env_narrow_space_width, symbol_fotno, is_good_fontno,
16354         get_bold_fontno, make_glyph_node): Use font_table_size rather than
16355         FONTS_MAX.
16356         (next_available_font_position): Never return 0.
16358 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
16360         * ps/tmac.ps: Add font translations for compatibility with dpost.
16362 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
16364         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
16365         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
16366         Move definitions baseline_sep, shift_down, column_sep,
16367         matrix_side_sep into...
16368         * eqn/box.c: Add them to param_table.
16369         * eqn/pbox.h: Add declarations to pbox.h.
16371         * troff/input.c (set_string): Cast value to unsigned char *.
16373         * troff/token.h (process_input_stack): Declare it static before
16374         declaring it a friend.
16376 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
16378         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
16379         and bottom.
16380         * dvi/devdvi/EX: Regenerate.
16382         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
16383         transparent.
16385 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
16387         * eqn/lex.c: In defaults_table, make definition of `dot' call
16388         `dot_def'.  Don't explicitly make it roman.  Similarily for other
16389         accents.
16391         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
16392         argument.
16393         (for_input::get, for_input::peek): Use this.
16394         (do_for): Add by_is_multiplicative argument.
16395         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
16396         Change semantic value of optional_by to be a double plus a flag
16397         saying whethet the by clause is multiplicative.
16399         * eqn/lex.c (get_delimited_text): Remember location of start of
16400         definition.  Improve error handling when EOF is encountered.
16402         * lib/font.h: Rename handle_x_command to
16403         handle_unknown_font_command.
16404         * lib/font.c (font::load): Call handle_unknown_font_command for
16405         any unknown command in the font description file.  Don't call
16406         handle_x_command. Include the name of the command in the argv.
16407         Improve message for unknown command after kernpairs or charset
16408         command.
16409         * ps/ps.c (ps_font::handle_x_command): Rename to
16410         handle_unknown_font_command.  Remove message about `x download'
16411         command.  Give error message for wrong number of arguments.
16412         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
16413         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
16414         handle_unknown_font_command. Give an error message for wrong
16415         number of arguments.  Rename design_size to designsize.
16416         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
16417         checksum', `designsize' instead of `design_size'.
16419 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
16421         * eqn/*.[chy]: Change underaccent to uaccent.
16423         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
16424         give it the same precedence as ACCENT.
16425         * eqn/other.c (make_underaccent_box): New function.
16426         * eqn/box.h: Declare it.
16427         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
16428         def_table.
16430 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
16432         * pic/pic.y (reset_all): New function. Called in rule for RESET.
16433         (parse_init): Call reset_all.
16434         (define_variable): When defining scale reset only those
16435         pre-defined variables that are scaled.
16436         (defaults_table): Add `scale' as non-scaled value.
16438         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
16439         together with the text; allow any number of positioning words;
16440         allow center as a positioning word.
16442         * pic/object.c (output::compute_scale): Get picture maximum height
16443         and width from variables called maxpswid and maxpsht.
16444         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
16446 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
16448         * pic/object.c (object_spec::make_text): Multiply textht by number
16449         of text items.
16451         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
16452         occur.
16453         (do_sprintf): New function.
16454         (pic.gperf): Add sprintf token.
16455         (text, sprintf): New rules.
16457         * pic/pic.y: `rand()' with no arguments returns a random number
16458         in the range [0,1).
16460         * pic/pic.y: Allow a bare expression to be an attribute: change
16461         precedences to support this.  Change optional_ordinal rule to
16462         optional_ordinal_last to avoid reduce/reduce conflict.
16463         * pic/object.c (object_spec::object_spec): Initialize direction.
16465         * pic/pic.y: Implement ^ operator meaning exponentiation.
16467         * troff/node.h: Add default argument to mount_font.
16468         * troff/node.c (font_position): Read an optional third argument
16469         giving the external_name.
16470         (mount_font): Add optional argument giving the external_name.
16471         (mount_font_not_translate): Have additional argument giving
16472         external name.  Use this name to load the font.  Pass both names
16473         to font_info::font_info.
16474         (font_info::font_info): Have additional argument giving
16475         external_name.
16476         (class tfont): New member external_name.
16477         (font_info::get_tfont): Use external name to construct tfont_spec.
16479 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
16481         * eqn/lex.c (init_table): Add argument giving device.  Define
16482         name of device to be "1".
16483         (do_ifdef): Counts as true if the argument has been defined with
16484         `define'.
16485         * eqn/main.c (main): Call init_table with device argument. Make
16486         device local to main.
16487         * eqn/eqn.h: Change declaration of init_table. Remove declaration
16488         of device.
16490         * pic/lex.c (get_delimited): Allow text to be delimited by
16491         matching {}s.  Don't recognize ending delimiter within a string.
16493         * troff/input.c (get_delim_name): New function.
16494         (token::next): Implement \C.
16496         * lib/font.c (font::load): Grok ---.  Add an alias for each
16497         character based on its code.
16498         (font::get_code_width): Deleted.
16499         * lib/font.h (class font): Declare font::number_to_index().
16500         Remove declaration of font::get_code_width.
16501         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
16502         to indices of named characters.
16503         (font::number_to_index): New function.
16504         * troff/input.c (font::number_to_index): New function.
16505         (get_charinfo_by_number, charinfo::get_number,
16506         charinfo::set_number): New functions.
16507         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
16508         (token::process, token::description, token::get_char,
16509         token::add_to_node_list, token::operator==): Handle
16510         TOKEN_NUMBERED_CHAR.
16511         * troff/charinfo.h: Declare get_charinfo_by_number,
16512         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
16513         charinfo class.
16514         (charinfo::numbered): New function.
16515         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
16516         * troff/env.h (class environment): Remove declaration of ...
16517         * troff/env.c (environment::make_numbered_char_node): Deleted.
16518         * troff/node.c (make_numbered_node): Deleted.
16519         (class numbered_glyph_node): Remove.
16520         (troff_output_file::put_char_width, troff_output_file::put_char):
16521         Handle numbered chars.
16522         (troff_output_file::numbered_char): Removed.
16523         (tfont::get_code_width): Removed.
16524         (make_glyph_node): Don't search special fonts for numbered
16525         characters.
16526         * troff/node.h: Remove declaration of make_numbered_node.
16527         * driver/input.c (do_file): Handle N command.
16528         * driver/printer.h: Add declaration of ...
16529         * driver/printer.c (printer::set_numbered_char): New function.
16530         * dvi/tfmtodit.c (main): Generate unnamed entries.
16531         * ps/devps/afmtodit: Likewise.
16532         * xditview/xtotroff.c (MapFont): Likewise.
16533         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
16535         * tbl/main.c (process_format): If multiple widths are specified
16536         for a column but all the widths are the same, don't give an error
16537         message.
16539         * tbl/table.c (table::do_row): If the current row is all lines and
16540         the stuff doesn't contains a line, mark the top of the row after
16541         printing stuff before the row.  If the current row is not all
16542         lines and the stuff doesn't contain a line, don't unnecessarily
16543         mark the top of the row before printing the stuff.
16544         
16545 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
16547         * troff/groff.h: Remove MAX_PATH.
16548         * troff/input.c (open_file): Dynamically allocate space for the
16549         path.
16550         (open_mac_file, process_macro_file): Corresponding changes.
16552 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
16554         * troff/node.h (class output_file): Make copy_file pure.  Add
16555         vspace method ifdef COLUMN. Add is_printing method.
16556         * troff/node.c: Add class printing_reg. Add class
16557         real_output_file. Derive other output_file classes from
16558         real_output_file; in these classes rename begin_page to
16559         really_begin_page, print_line to really_print_line, copy_file to
16560         really_copy_file, transparent_char to really_transparent_char.
16561         Move output_file::flush to real_output_file. Add printing member
16562         to class output_file.
16563         * troff/div.h: Remove printing member from top_level_diversion.
16564         Add vspace member function to class diversion ifdef COLUMN. Add
16565         some declarations ifdef COLUMN.
16566         * troff/div.c (top_level_diversion::copy_file,
16567         top_level_diversion::transparent_output,
16568         top_level_diversion::output): Don't test printing member before
16569         output.
16570         * troff/input.c: Handle initial variable_space_request ifdef
16571         COLUMN.
16572         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
16573         but comment it out.
16575 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
16577         * troff/div.c (diversion::need): Make any space forced.  If we
16578         sprung a trap, set truncated_space to minus the distance to the
16579         trap and set needed_space to the amount that was needed.
16580         (top_level_diversion::space): A forced space turns no_space_mode
16581         off.
16582         (class constant_vunits_reg): New class.
16583         (init_div_requests): Implement number registers .trunc and .ne
16584         using constant_vunits_reg.
16585         (class truncated_space_reg): Deleted.   
16587         * troff/div.h: Don't have a no_space_mode member in diversion.
16588         Instead have it in top_level_diversion.
16589         * troff/div.c (diversion::diversion): Don't initialize
16590         no_space_mode.
16591         (top_level_diversion::top_level_diversion): Initialize
16592         no_space_mode.
16593         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
16594         (macro_diversion::output): Don't clear no_space_mode.
16596         * troff/input.c (diverted_space_node::reread): Don't call
16597         environment::do_break.  In fill mode, act like a blank line.
16598         (diverted_copy_file_node::reread): Don't call
16599         environment::do_break.
16601         * troff/div.c (blank_line): New function.
16602         * troff/div.h: Declare it.
16603         * troff/input.c (process_input_stack): Call it.
16605         * troff/div.c (truncated_space_reg::get_string): New function.
16606         (init_div_requests): Bind to .trunc.
16607         (space_request, top_level_diversion::space,
16608         top_level_diversion::output, macro_diversion::space,
16609         macro_diversion::output): Update truncated_space.
16610         (macro_diversion::output): Redo calculations when trap sprung.
16611         (macro_diversion::output, macro_diversion::space): No need for
16612         trap_flag.
16614         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
16615         after truncating post line spacing.
16617 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
16619         * ps/devps/prologue (MF, SF): Make them work even if setfont is
16620         defined as a procedure rather than as an operator.
16622 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
16624         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
16626 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
16628         * troff/div.c (top_level_diversion::output): Merge
16629         output_file::print_line and output_file::end_of_line member
16630         functions.
16631         * troff/div.h (class output_file):
16632         * troff/node.c (troff_output_file::print_line,
16633         troff_output_file::end_of_line, output_file::end_of_line,
16634         ascii_output_file::print_line, suppress_output_file::print_line):
16635         Corresponding changes.  
16637 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
16639         * troff/input.c (token::next): Don't give a warning for `\.'.
16641         * troff/env.c (environment::get_center_lines): New function.
16642         (init_env_requests): Bind number register .ce to it.
16643         * troff/env.h: Declare it.
16644         * tbl/table.c (table::init_output): Define reset macro to restore
16645         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
16646         Then do .ce 0.
16647         (table::print): If center option not given, then imply center
16648         option if SAVED_CENTER_REG > 0.
16650 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
16652         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
16653         Troff.ps from DOWNLOAD.
16654         
16655         * troff/Makefile: Change comment in DEFINES to avoid confusing
16656         System V make.
16658         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
16659         code.  Don't try to catch errors with stopped.
16660         (check_line_lengths): New function.
16661         * ps/devps/prologue (EXEC): Deleted.
16662         (EBEGIN, EEND): New procedures.
16664 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
16666         * troff/input.c: Include request.h before node.h.
16667         * troff/node.c: Likewise.
16668         * troff/env.c: Likewise.
16669         * troff/div.c: Likewise.
16670         * troff/node.h (class special_node): Store argument as a macro
16671         rather than a char *.
16672         * troff/node.c (special_node::special_node, special_node::copy):
16673         Grok this.
16674         (special_node::~special_node): Deleted.
16675         (special_node::tprint): Deleted.
16676         (special_node::tprint_start, special_node::tprint_end,
16677         special_node::tprint_char): New functions.
16678         (troff_output_file::special): Deleted.
16679         (troff_output_file::start_special, troff_output_file::end_special,
16680         troff_output_file::special_char): New functions.
16681         * troff/input.c (special_node::tprint): New function.
16682         (do_special): Use macro not char *.
16683         (do_transparent_macro): Deleted.
16684         (token::next): Don't call do_transparent_macro.
16686         * troff/input.c (token::next): Add 'Y' case.
16687         (do_transparent_macro): New function.
16688         * troff/node.c (troff_output_file::special): Handle newlines with
16689         argument using new continuation convention.
16690         * driver/input.c (get_string): Cope with continuation convention.
16691         (do_file): Don't call skip_line after calling get_string(1).
16692         * ps/ps.c (ps_printer::special, ps_printer::do_import,
16693         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
16694         arg.
16695         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
16696         with +.
16698 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
16700         * troff/input.c (asciify): By default, illegal input characters
16701         should return empty string.
16703         * troff/input.c (copy_file): Handle first page transition like title.
16704         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
16706         * troff/input.c (token::next): Improve error message for EOF after
16707         escape character.
16708         (input_char_description): New function.
16709         (get_char_for_escape_name): Use input_char_description.
16710         (token::next): Warn about unrecognized escape sequences.
16711         (warning_table): Add WARN_ESCAPE.
16712         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
16713         accordingly.
16715         * troff/token.h: Remove declaration of process_input_stack.
16717         * troff/input.c: Remove declaration of init_hyphen_requests.
16718         * troff/request.h: Correct spelling in declaration of same.
16720         * troff/input.c (token::next): Check whether escape_char is 0.
16722 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
16724         * groff.c (main, usage, help): Implement -P and -L options.
16725         * groff.sh: Likewise.
16727         * troff/input.c (token::next): Use some gotos to avoid code
16728         duplication.
16730         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
16731         Avoid calling symbol::symbol if name empty.
16733 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
16735         * troff/input.c (init_input_requests): Make \n(.x return the major
16736         version number and \n(.y return the minor version number.
16737         * troff/Makefile: Construct file majorminor.c defining
16738         major_version and minor_version automatically from ../VERSION.
16740         * troff/node.c (class glyph_node): Make operator new and operator
16741         delete public.
16742         (class ligature_node): Similarily.
16744         * troff/input.c (operator==(const macro &, const macro &)): New
16745         function.
16746         (non_interpreted_node::same): Use this.
16747         (string_iterator::string_iterator): Make macro& argument const.
16749         * troff/input.c (input_iterator::get): New function. Don't make
16750         asciify_macro or class non_interpreted_node friends of class
16751         input_iterator.
16752         (non_interpreted_node::interpret): Use input_iterator::get.
16753         (asciify_macro): Likewise.
16755         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
16756         ~non_interpreted_node): Deleted.
16757         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
16758         Deleted.
16760         * troff/symbol.h: Make all symbol member functions const.
16762         * lib/strtol.c: New file.
16763         * lib/Makefile: Add strtol.c.
16764         * Makefile: Define STRTOL as strtol.o to include strtol in
16765         libgroff.a.
16767 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
16769         * pic/troff.c (troff_output::simple_circle): Divide by scale.
16771 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
16773         * troff/input.c (do_special): Use input_level.
16775         * troff/token.h (TOKEN_BACKSPACE): New token.
16776         (token::backspace): New function.
16777         * troff/input.c (token::description, token::next, token::process):
16778         Grok TOKEN_BACKSPACE.
16779         (do_special): Turn TOKEN_BACKSPACE back into \b.
16781         * troff/token.h (token::leader): New function.
16782         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
16784         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
16786         * troff/input.c (do_special): Use token::description in error
16787         message.
16789 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
16791         * troff/input.c (decode_args): Combine quoted and
16792         quote_input_level variables. Make it a for (;;) loop.
16794         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
16796         * troff/input.c (read_long_escape_name): The test for whether to
16797         expand buffer was off by 1.
16798         (read_string): Similarily.
16800 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
16802         * troff/input.c: Use `const int' rather than `static const int'.
16804         * troff/div.h (diversion::copy_file): Declare as pure virtual.
16805         (macro_diversion::copy_file): New function.
16806         * troff/node.h: New class diverted_copy_file_node.
16807         * troff/node.c: Implement it.
16808         * troff/input.c (copy_file): Use diversion::copy_file. Handle
16809         first page transition by pushing a diverted_copy_file_node.
16810         * troff/input.c (token::next, process_input_stack): Don't handle
16811         COPY_FILE_REQUEST.
16813 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
16815         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
16816         whether space widths need adjusting.
16818         * troff/charinfo.h: Generalize translated_to_space to
16819         special_translation so as to allow translation to \&.
16820         * troff/input.c (translate): Allow translation to \&.
16821         (charinfo::*): Corresponding changes.
16822         * troff/node.c (make_node, node::add_char): Corresponding changes.
16823         * troff/node.h (dummy_node::dummy_node): Allow optional first
16824         argument.
16826         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
16827         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
16828         TOKEN_REQUEST.
16829         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
16830         TOKEN_REQUEST with an argument of TITLE_REQUEST.
16831         (token::process): Grok that.
16832         * troff/input.c (copy_file): Handle first page transition like
16833         title by pushing a COPY_FILE_REQUEST cookie.
16834         (token::next, process_input_stack): Grok that.
16835         * troff/node.h (output_file::copy_file): Add x and y arguments.
16836         Make it non-pure.
16837         * troff/div.c (top_level_diversion::copy_file): Supply them.
16838         * troff/node.c (troff_output_file::copy_file): Add x and y
16839         arguments; moveto specified position.  Invalidate font_position
16840         array after copying file.
16841         (output_file::copy_file): New function.
16842         (suppressed_output_file::copy_file, ascii_output::copy_file):
16843         Removed.
16844         * troff/input.c (transparent_file): New function.
16845         (init_input_requests): Bind to "trf".
16846         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
16847         (process_input_stack): Likewise.
16849         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
16851         * troff/node.c (init_node_requests): New number registers .kern
16852         pointing to global_kern_mode, and .lg pointing to
16853         global_ligature_mode.
16855         * troff/node.c (ligature): Don't change it if we get a bad
16856         integer.
16858         * troff/input.c (do_define_string): Don't strip tabs.
16860         * troff/input.c (asciify_macro): Make the string_iterator auto.
16862         * troff/node.c (init_font_requests): Rename to...
16863         (init_node_requests):
16864         * troff/node.h: Change declaration.
16865         * troff/input.c (main): Change call.
16867         * troff/input.c (node::reread, diverted_space_node::reread): New
16868         methods.
16869         (process_input_stack): Call reread rather than
16870         get_diverted_space_node.
16871         * troff/node.c (node::get_diverted_space_node,
16872         diverted_space_node::get_diverted_space_node): Removed.
16873         * troff/node.h: Declare reread methods instead of
16874         get_diverted_space_node methods. Make `n' member private.
16875         * troff/input.c: (token::diverted_space): Removed.
16876         * troff/token.h: Removed declaration.
16877         
16879 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
16881         * eqn/script.c (script_box::compute_metrics): Don't let
16882         SUP_RAISE_FORMAT become negative.
16884         * tbl/table.c (table::do_row): Entries that don't end in the
16885         this row shouldn't make the row non-blank.
16886         
16887         * tbl/table.c (table::make_columns_equal): Only set the width of
16888         columns which are marked as equal.
16889         
16890         * tbl/main.c (process_data): Before issuing excess data error,
16891         if last character was a newline unget it; then get it again after
16892         the error.  Also include the contents of the entry in the message.
16894         * groff.c: New file.
16895         * Makefile: Build groff from groff.c.  Make it possible to use
16896         either groff.sh or groff.c as groff.
16897         * Makefile.bd: Similarily.
16899 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
16901         * groff.sh: Don't delay expansion of $@ in assignment to files.
16902         Remove occurrences of \".
16904 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
16906         * all Makefiles: Simplify and rearrange.
16908         * Makefile: Handle fmod like malloc.
16909         * lib/Makefile: Similarily.
16910         * lib/fmod.c: Remove #ifdef NEED_FMOD.
16912         * Makefile: Rename OPTIMISE to OPTIMIZE.
16914         * groff.sh: Remove assignment to PATH.
16915         * Makefile: Remove SHPATH variable.
16916         * Makefile.bd: Similarily.
16918         * groff.sh: Add -V option to print the pipeline instead of
16919         executing it.
16921 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
16923         * lib/font.c: Split off file searching into ...
16924         * lib/fontfile.c: New file.
16926         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
16928 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
16930         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
16931         Also change misleading comment.
16932         (table::do_vspan): Change similarily misleading comment.
16933         * tbl/main.c (process_data): A format row with an explicit `s'
16934         uses up a data line, even if all the other columns are `_' or `='.
16936         * troff/input.c (token::description): Fix description of
16937         TOKEN_DUMMY and TOKEN_EMPTY.
16939 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
16941         * groff.sh: Fix description of -Z in help message.
16943 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
16945         * pic/object.c (object_spec::make_object): Allow negative and zero
16946         line thicknesses.
16947         * pic/pic.y: Give linethick default value of -1.0.
16948         * pic/troff.c (troff_output::troff_output): Initialize
16949         last_line_thickness to BAD_THICKNESS.
16950         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
16951         (troff_output::line_thickness): Canonicalize negative thicknesses
16952         to RELATIVE_THICKNESS.
16953         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
16954         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
16955         to -1.0.
16956         (tex_output::start_picture): Set pen_size to -2.0.
16958         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
16959         0, then use 0 linewidth.
16960         (ps_printer::ps_printer): Initialize line_thickness to -1.
16962         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
16964         * ps/devps/symbolchars: Remove `or'.
16965         * ps/tmac.ps: Implement \(or with .char.
16967         * ps/devps/symbolchars: Move most characters into textmap.
16968         * ps/devps/textmap: Add names for troff bracket characters. Remove
16969         ul, ru, br, bv.
16971         * ps/devps/TSymbol.ps: Removed.
16972         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
16973         * ps/tmac.ps: Do with .char what TSymbol did.
16974         * ps/devps/download: Remove TSymbol.
16976         * ps/devps/T: Removed.
16977         * ps/devps/Troff.ps: Removed.
16978         * ps/devps/Troff.afm: Removed.
16979         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
16980         * ps/devps/download: Remove Troff.
16981         * ps/devps/FontMakefile: Remove T target.
16982         * ps/devps/DESC-A4: Remove T from font list.
16983         * ps/devps/DESC-letter: Likewise.
16985         * troff/input.c (macro_to_node): Rename to ...
16986         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
16987         character's definition while processing it.
16988         * troff/node.c (node::add_char, make_node): Change calls to
16989         macro_to_node accordingly.
16991         * troff/input.c (token::next): Translate \_ to \(ul.
16993         * tty/devascii/R.proto: Add `|'.
16994         * tty/devlatin1/R.proto: Likewise.
16996 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
16998         * man: Put the version number in all the man pages.
17000 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
17002         * Makefile.bd: New file.
17003         * README.bd: New file.
17005         * VERSION: New file.
17006         * lib/version.c: Removed.
17007         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
17008         in clean target.
17010         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
17011         environment variable.
17013         * all Makefiles: Split install target into install.bin for
17014         binaries, and install.nobin for everything else.
17015         * Makefile: Add bindist target.
17017         * man/afmtodit.man: New file.
17018         * man/Makefile: Add afmtodit.n to MAN1PAGES.
17019         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
17020         in BINDIR.
17021         * ps/Makefile: Pass BINDIR to make install in devps.
17023         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
17024         the space character.
17026         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
17028 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
17030         * ps/ps.c: Redo font downloading.
17031         * ps/devps/download: New file.
17032         * ps/devps/Makefile: Add download to DEVICEFILES.
17033         * ps/devps/afmtodit: Remove -d option.
17034         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
17035         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
17036         * ps/devps/zapfdr.ps: Likewise.
17037         * ps/devps/TSymbol.ps: Likewise.
17039 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
17041         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
17043 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
17045         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
17046         then strip the first line if it starts with %.
17047         * Makefile: Add a comment about this.
17049         * man/tfmtodit.man: New file.
17050         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
17051         * dvi/Makefile: Install tfmtodit in BINDIR.
17053         * dvi/tfmtodit.c (usage): Mention -v option.
17055 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
17057         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
17058         * troff/node.c (troff_output_file::transparent_char): Don't call
17059         flush_tbuf.
17061         * eqn: Add check_tabs method to most box classes.
17062         * eqn/box.c (box::top_level): Call check_tabs.
17064         * eqn/script.c (script_box::output): Use \Z.
17065         * eqn/limit.c (limit_box::output): Use \Z.
17067         * eqn/box.c (box::top_level): Use itoa.
17069 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
17071         * dvi/tmac.dvi: Add font translations for CR, C, TT.
17072         * dvi/devdvi/Makefile: Don't make links to CW.
17074         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
17075         HX, HD.
17076         * xditview/tmac.X: Likewise.
17078         * troff/node.c: Add font translation feature.
17079         (get_font_translation): New function.
17080         (symbol_fontno): Translate the font name.
17081         (mount_font_no_translate): Rename to mount_font to this.
17082         (mount_font): New function.
17083         (font_family::make_definite): Call mount_font_no_translate instead
17084         of mount_font.
17085         (mount_style): Translate the font name.
17086         (font_translate): New function.
17087         (init_font_requests): Bind "ftr" to font_translate.
17089         * ps/devps/prologue (SN): New procedure that rounds a position to
17090         the nearest (pixel + (.25,.25)).
17091         (DL): Use SN to round endpoints.
17093         * lib/version.c: Changed version to 0.5.
17095 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
17097         * Makefile: Move definition of PAGE to the very beginning, so that
17098         people are less likely to miss it.
17100 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
17102         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
17104         * troff/env.c (environment::choose_breakpoint): Make `can't find
17105         breakpoint' error a warning of type WARN_BREAK.  Change message to
17106         `can't break line'.
17107         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
17108         code 040000.
17109         * troff/input.c: Add WARN_BREAK to warning_table.  Include
17110         WARN_BREAK in DEFAULT_WARNING_MASK.
17112         * tty/tmac.tty: Add definition of \(+-.
17114         * groff.sh: Remove `--' option to set command.
17116         * dvi/devdvi/texsy.map: Remove duplicate md entry.
17118         * ps/devps/eqnchar: Better definition of cdot using md.
17119         * dvi/devdvi/eqnchar:  Likewise.
17120         * xditview/devX100/eqnchar:  Likewise.
17121         * xditview/devX75/eqnchar: Likewise.
17122         * eqn/lex.c: Add definition of cdot.
17124 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
17126         * troff/input.c (get_optional_char): New function.
17127         * troff/input.c (set_page_character): Use get_optional_char(),
17128         rather than has_arg() and tok.get_char(1).
17129         * troff/env.c (tab_character, leader_character, hyphen_char,
17130         field_characters): Likewise.
17131         (margin_character): Likewise.  Also always delete the
17132         margin_character_node.
17134         * troff/input.c (token::get_char): Use token::description.
17136         * troff/input.c (has_arg): Don't skip over tab and \}.
17137         * troff/number.c (start_number): Give a warning if the number
17138         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
17140 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
17142         * troff/input.c (empty_name_warning, non_empty_name_warning): New
17143         functions.
17144         (get_name, get_long_name): Use these.  Rename `warn' argument to
17145         `required'.
17147         * troff/node.c (get_fontno): Test that the symbol is not null.
17149         * troff/input.c (token::description): New function.
17150         * troff/number.c (parse_term): Use token::description in `numeric
17151         expression expected' message.
17152         * troff/groff.h: Add WARN_MISSING.
17153         * troff/number.c (start_number): New function.
17154         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
17155         get_incr_number): Use start_number().
17156         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
17157         default.
17158         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
17159         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
17160         token::descripion.
17161         * troff/input.c (token::get_char): Use WARN_MISSING.
17162         * troff/input.c (token::delimiter): Use token::description.
17163         * troff/env.c (environment_switch): Back out Aug 3 change.
17164         * troff/input.c (has_arg): Skip over \}s and tabs but give a
17165         warning.
17166         * troff/token.h (token::tab): New function.
17167         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
17168         * troff/reg.c (alter_format): Likewise.
17169         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
17171 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
17173         * troff (most files): Redo warnings. Divide warnings into various
17174         categories; warning() has an additional first argument indicating
17175         the category it falls into.
17176         * troff/input.c (main): -w now takes an argument. New option -W.
17177         (enable_warning, disable_warning): New functions.
17179         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
17180         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
17182 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
17184         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
17185         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
17186         * xditview/devX75/eqnchar: Likewise.
17187         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
17189         * eqn/other.c: When bar or over applies to a single character
17190         don't produce an overline_box or an underline_box. Instead produce
17191         an accent_box or an underaccent_box, with the accent a line
17192         whose width is accent_width.  New classes underaccent_box,
17193         overline_char_box and underline_char_box.
17194         * eqn/box.h: Move overline_box, underline_box, accent_box class
17195         declarations into eqn/other.c. Add declarations of
17196         make_underline_box, make_overline_box, make_accent_box.
17197         * eqn/eqn.y: Call make_overline_box, make_underline_box
17198         make_accent_box instead of constructors.
17199         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
17201         * eqn/other.c: Add accent_box::~accent_box.
17202         * eqn/box.h: Declare it.
17204         * groff.sh: With -Tps, use eqn -D.
17206         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
17207         rather than \l.
17208         (underline_box::output): Similarily.
17209         (accent_box::output): Use \Z.
17211         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
17212         bit smaller.)
17214 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
17216         * troff/div.c (top_level_diversion::transparent_output(unsigned
17217         char)): Use asciify.
17218         * troff/input.c (asciify): Don't make it static.
17219         * troff/token.h (asciify): Declare it.
17220         
17221         * troff/input.c (get_name, get_long_name, token::get_char,
17222         token::delimiter): Add an extra default argument which says
17223         whether a warning should be printed.
17224         * troff: Pass a non-zero argument to one of these rather than
17225         printing a warning directly.
17227 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
17229         * troff: Consistently use symbol::is_null.
17231         * troff/dictionary.h: Move some inline functions into
17232         dictionary.c.
17234         * troff/request.h: Move inline functions into input.c.
17235         (request_or_macro::invoke): Make it pure.
17237         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
17238         * troff/input.c (init_input_requests): Use class constant_int_reg.
17239         (class compatible_reg): Deleted.
17240         * troff/div.c (init_div_requests): Use class constant_int_reg.
17241         (class last_post_line_extra_space_reg): Deleted.
17243         * troff/env.c (tab_character): Don't change the tab character if
17244         we get an invalid argument.
17245         (hyphen_char): Similarily.
17247         * troff/reg.c (alter_format): Check that nm is not null.
17249         * Makefile, groff.sh: Make it possible to customize the commands
17250         used for printing PostScript and dvi files. Also make it possible
17251         to customize the path used by groff.sh.
17253         * eqn/eqn.y: Make `left' right associative.
17255 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
17257         * pic/pic.h: Added definition of M_SQRT2 for those systems that
17258         don't have it.
17260         * pic/pic.h: Removed definition of INT_MAX.
17262         * troff/node.c (italic_corrected_node::vertical_extent): Omit
17263         `return'.
17265         * troff/input.c (token::next):  Handle \R like \n.
17267 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
17269         * ps/tmac.pc (PSPIC): Simplify.
17271         * troff/env.c (tab_stops::to_string):
17272         * pic/pic.y (object_type_name):
17273         * pic/troff.c (simple_output::line):
17274         * pic/tex.c (tex_output::spline):
17275         * pic/object.c (object_spec::make_object):
17276         * tbl/main.c (process_data):  Add cases to switch statements to
17277         avoid cfront warnings. (Some of these are spurious, since the
17278         switch already has a default case.)
17280         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
17281         `ps-'.  Don't test systat; instead check number of arguments to
17282         ps-bb.
17284 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
17286         * macros/tmac.e: Do not decrease the page offset by 0.5i.
17288         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
17289         Unlink the file as soon as we have opened it, so that we don't
17290         have to bother with signal handlers.
17291         (handler): Deleted.
17292         (fatal_error_exit): Deleted.
17293         (main): Don't call signal.
17295         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
17296         can be ignored.
17297         * dvi/devdvi/Makefile: Use the -k option with S and MI.
17299         * pic/pic.y:  If there is a label, or an nth construction before
17300         the first `.' in the argument to `with', ignore it and generate a
17301         warning.
17302         * pic/lex.c (lex_warning): New function.
17304         * tbl/table.c (table::init_output): In section keep and release
17305         macro, use 0 indent when diverting and the correct indent when
17306         rereading.
17308         * troff/input.c (interpolate_number_format): Do not interpolate
17309         anything if the number register is not defined.
17311         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
17313 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
17315         * ps/devps/prologue (PICTURE): Set components of graphics state to
17316         their default values.
17318         * ps/devps/text.enc: Add trademark
17319         * ps/devps/textmap: Add names for club, spade, heart, diamond,
17320         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
17321         * ps/devps/symbolchars: Add names for summation and product.
17323         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
17324         suchthat. Add pp. Add upper-case letters.
17326         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
17327         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
17328         Upsilon.
17330         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
17331         rA (right angle bracket) to ra.  Introduce names for double-headed
17332         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
17333         * ps/devps/textmap: Likewise for ps device.
17334         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
17335         * tty/devascii/R.proto: Rename lA to la and rA to ra.
17336         * tty/devascii/R.proto: Likewise.
17337         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
17338         \(uA, \(dA.
17339         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
17341         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
17343         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
17344         def_table.
17346 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
17348         * troff/div.c (when_request): Use symbol::is_null rather than
17349         has_arg to determine whether we have an argument.
17350         (change_trap): Remove the trap if we get an invalid number. Give
17351         an error if we don't get at least the macro name.
17352         (diversion_trap): Remove trap if we get an invalid name or number.
17354         * troff/env.c (environment_switch): Pop if we get an invalid
17355         symbol or numeric expression.
17357         * troff/input.c (do_define_macro):  If EOF is encoutered while
17358         defining the macro, do tok.next() before returning.
17360         * troff/token.h (has_arg): Move definition from here, to ...
17361         * troff/input.c (has_arg): ... here
17363         * troff/env.c (space_size): Do nothing if we get an invalid argument.
17364         * troff/input.c (shift): Likewise.
17366         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
17367         for `.c'.
17369         * pic/troff.c (troff_output::start_picture):  Comment out calls to
17370         `..'.
17372         * eqn/main.c (do_file): Subtract 1 from current_lineno if
17373         interpret_lf_args succeeds.
17375         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
17376         \\.  This avoids problems with \$N.
17378         * groff.sh: Pass -C to preprocessors.
17380         * lib/lf.c (interpret_lf_args):  Be more flexible.
17382         * tbl/main.c (main): Add -C option.
17383         (table_input::get): Do not recognize TE if followed by character
17384         other than a space or newline unless -C option given.
17385         (process_input_file): Likewise for lf, TS.
17386         (process_data): Likewise for lf in text blocks.
17388         * eqn/main.c (main): Add -C option.
17389         (do_file): Don't recognize EQ, EN or lf if followed by character
17390         other than space or newline unless -C option given.
17391         * eqn/lex.c (file_input::read_line): Similarily.
17392         * eqn/eqn.h: Declare compatible_flag.
17394         * etc/soelim.c (main): Add -C option.
17395         (interpret_lf_args): Use version in libgroff.
17396         (do_file):
17398         * pic/main.c (main): Add -C option, which sets compatible_flag.
17399         (top_input::get), (top_input::peek):  If -C option not given,
17400         do not recognize .PS/.PE/.PF/.lf if followed by a character
17401         other than space or newline.
17402         * pic/lex.c (file_input::read_line): Similarily.
17403         * pic/pic.h: Add declaration of compatible_flag.
17405 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
17407         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
17409         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
17410         derived from node.  New class space_char_hmotion_node.
17411         * troff/input.c (asciify_macro): New function.
17412         * troff/input.c (init_input_requests): New request `asciify' bound
17413         to asciify_macro.
17414         * macros/mm.diff: New file.
17415         * Makefile:  In install.mm target use `patch' to apply
17416         macros/mm.diff.
17418         * troff/input.c (macro::print_size): Just print the size in bytes.
17420         * troff/div.c (return_request): Correct the argument
17421         interpretation.
17423 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
17425         * troff/node.h (class composite_node): Add sz member.
17426         * troff/node.c (composite_node::size): Return sz.
17427         * troff/input.c (macro_to_node):  Use the initial size in the
17428         environment as the size of the composite_node.
17430         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
17431         default.
17433 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
17435         * troff/div.c (change_trap): If we get a bad number expression,
17436         do nothing.
17438 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
17440         * lib/matherr.c (matherr): Define this only if math.h defines
17441         TLOSS.
17443 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
17445         * troff/div.c (macro_diversion::distance_to_next_trap): If there
17446         no diversion trap return vunits(INT_MAX - vresolution).
17448 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
17450         * troff/input.c (do_zero_width): New implementation that doesn't
17451         use a temporary environment. Use instead:
17452         (token::add_to_node_list): New function.
17453         * troff/env.c (environment::get_prev_char_height),
17454         (environment::get_prev_char_height),
17455         (environment::get_prev_char_skew): New functions.
17456         (environment::get_prev_char): New function.
17457         (environment::get_prev_char_width): Change to use get_prev_char.
17458         (init_env_request): Implement new registers .cht, .cdp, .csk.
17459         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
17460         \Z being processed in a separate environment.
17462 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
17464         * tbl/table.c: Removed TABLE_BOTTOM_REG.
17466         * tbl/table.c (table::init_output): In the section release macro,
17467         give a warning message if the section won't fit on one page.
17469         * tbl/table.c (table::do_top): Emit table keep only if table is
17470         boxed.
17471         (table::do_bottom): Likewise for table release.
17472         (table::table), (table::add_vertical_rule):  Remove reference to
17473         keep member.
17474         * tbl/table.h: Remove keep member.
17476         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
17477         SECTION_RELEASE_MACRO, if there's not enough space before the next
17478         trap to output the diversion, call T# ourselves, set
17479         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
17480         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
17481         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
17482         vertical position and return to it before turning traps on again.
17483         
17484 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
17486         * troff/node.c, troff/node.h: In classes derived from node,
17487         replace prev_char_width method by last_char_node method.
17488         * troff/env.c (environment::get_prev_char_width): Use
17489         node::last_char_node rather than node::get_prev_char_width.
17491         * Makefile: Added comment about -fno-inline on 68030-based
17492         Apollos.
17494         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
17495         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
17496         expressions using sizeof to int.
17497         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
17499         * macros/tmac.e (TS):  Don't move @f back past the current
17500         position.
17502 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
17504         * ps/ps.c (main): Buffer stderr.
17505         * dvi/dvi.c (main): Likewise.
17506         * tty/tty.c (main): Likewise.
17508         * ps/ps.c (ps_printer::do_import): Improve error handling.
17510         * troff/input.c (abort_request): Use asciify.
17512         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
17513         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
17514         type of first argument int rather than char.  This works around a
17515         bug on the 68030 based Apollo using g++ 1.37.1.
17517         * tbl/table.h (class table): Add `keep' member.
17518         * tbl/table.c (table::table): Initialize `keep'.
17519         (table::add_vertical_rule): Set `keep' to 1.
17520         (table::do_top): Only emit table keep macro is `keep' is non-zero.
17521         (table::do_bottom): Likewise for table release macro.
17522         (table::do_row): Emit section keep macro even if the row is 0.
17524 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
17526         * macros/tmac.e (@C): Preserve the font family across the change
17527         in environments.
17529 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
17531         * lib/font.c: Initialize font::hor and font::vert to 1.
17532         (font::load_desc): Check the values of font::hor and font::vert.
17534         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
17535         be included in a C compilation.
17536         (iftoa): Use INT_DIGITS. Include lib.h.
17537         (itoa): Likewise.
17538         (as_string): Likewise.
17539         * tbl/table.c: Removed definition of INT_DIGITS.
17540         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
17541         * troff/input.c (input_input_requests): Likewise.
17542         * ps/ps.c (make_encoding_name): Likewise.
17543         (ps_printer::set_style): Likewise.
17544         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
17546         * tty/devascii/R.proto: Map fm onto '.
17547         * tty/devlatin1/R.proto: Likewise.
17549 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
17551         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
17552         argument to \w is at a different input level.
17554         * tbl/table.c (table::init_output): Define a new macro
17555         REPEATED_VPT_MACRO, like vpt but if in a diversion also
17556         transparently outputs itself.
17557         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
17558         vpt.
17559         (table::do_row): Likewise.
17561         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
17562         TRANSPARENT_STRING_NAME.
17564         * tbl/table.c (table::init_output): In the table release macro
17565         print an error message and don't produce any output if after
17566         issuing the need request the table still will not fit.  Also
17567         remove the diversion after bringing it back.
17569         * tbl/table.c (table::init_output): Define a new macro
17570         REPEATED_MARK_MACRO, like mk but if in a diversion also
17571         transparently outputs itself.
17572         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
17573         is necessary because .TH might not call .T#.
17574         (table::do_top): Likewise TOP_REG.
17575         (table::define_bottom_macro): If TOP_REG is no longer valid, use
17576         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
17577         table header might contain just the two top rules.
17579 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
17581         * troff/div.c: Implement new request `ptr' to print all traps.
17583         * troff/env.c (init_env_requests): Implement `.tabs' reg with
17584         init_string_env_reg.
17585         * troff/env.c (class tab_reg): Deleted.
17587 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
17589         * troff/div.c: New number register .pn returns the number of the
17590         next page as set by the pn request.
17592         * macros/tmac.an: Redid headers and footers.  Number each manual
17593         entry starting from 1 unless \nC is > 0, like Sun.  Added an
17594         optional 5th argument to .TH which specifies the manual name and
17595         appears in the center of the header.  Understand the X, P and D
17596         registers like Sun.
17598 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
17600         * troff/env.c (init_env_requests): New number register `.lt' to
17601         return the title length.
17603         * troff/node.h (class transparent_dummy_node): New class.
17604         * troff/node.c (class transparent_dummy_node): Provide member
17605         functions. 
17606         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
17607         than a dummy_node.
17609         * troff/input.c (token::next): New escape sequence \).
17610         * troff/input.c (get_copy): Recognize \) in copy mode.
17612         * troff/input.c (input_stack::clear): New function.
17613         * troff/input.c (exit_request): Use input_stack::clear.
17615         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
17616         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
17618         * troff/env.c: Move set_page_character to input.c.  Move
17619         page_character to input.c also.
17620         * troff/env.c (title): Split off the reading of the parts of the
17621         title into read_title_parts.
17622         * troff/input.c (read_title_parts): New function.  Check the
17623         input_level when testing whether a token matches the delimiter.
17625         * troff/input.c (exit_request): New function.
17626         * troff/input.c (init_input_requests): Bind ex request to
17627         exit_request rather than exit_groff.
17629         * troff/input.c (exit_groff): Call tok.next() before
17630         process_input_stack().
17632 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
17634         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
17635         * troff/env.h: ditto.
17636         * troff/input.c: ditto.
17638         * troff/env.c (environment::is_empty): Test pending_lines.
17640         * troff/env.c (environment::have_pending_lines): Removed.
17642         * troff/input.c: Add request to flush pending lines from the
17643         environment.
17645         * troff/env.c, troff/env.h: Add automatic widow control feature.
17647         * troff/input.c (exit_groff):  Do process_input_stack() after
17648         do_break() but before setting exit_flag to 2.
17650         * troff/input.c: Remove FLUSH_PENDING_LINES and
17651         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
17652         environment after END_TRAP token seen, but only if there aren't
17653         any more traps still unfinished.
17654         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
17656 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
17658         * troff/env.c: Rename the `retain_size' member of class
17659         pending_output_line to `no_fill'.
17661         * troff/env.c (title): When the line is output, make the
17662         retain_size argument !fill.
17664         * troff/node.h: Add `hyphenated' member to struct breakpoint.
17665         * troff/node.c (space_node::get_breakpoints),
17666         (dbreak_node::get_breakpoints):  Fill this in.
17667         * troff/env.c:  Allow specification of maximum number of
17668         consecutive hyphenated lines.
17670         * troff/env.c (environment::is_empty): Add test for !current_tab.
17672 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
17674         * troff/env.c (environment::hyphenate_line): Don't completely give
17675         up if the word is not to be hyphenated; continue so that breaks
17676         can be made at break_char_node's.
17678         * lib/lib.h: Only define INT_MAX if it's not already defined;
17679         undef INT_MIN if it's already defined.
17681         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
17683         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
17684         This works around a bug in AT&T C++ 2.0 used with an ANSI C
17685         compiler.
17686         
17687         * macros/tmac.an (an-header): Set no-space mode.
17689         * macros/tmac.an (TH): Start a new page if necessary.
17691         * Started using ChangeLog at version 0.4.
17693 Local Variables:
17694 version-control: never
17695 coding: latin-1
17696 End: