1 2004-10-13 Werner LEMBERG <wl@gnu.org>
3 * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
4 src/devices/grohtml/post-html.cpp (make_val,
5 html_printer::handle_state_assertion): Fix compiler warnings.
7 * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
8 (diversion::diversion): Fix order of initializers.
10 * src/roff/troff/div.h: Don't include `mtsm.h'.
12 * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
13 (environment::environment): Fix order of initializers.
14 (environment::make_tag, environment::construct_format_state): Fix
17 * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
18 (input_iterator::input_iterator, macro::macro): Fix order of
21 * src/roff/troff/mtsm.cpp: Include only necessary header files.
22 (state_set::add, state_set::val): Fix compiler warnings.
24 * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
25 (bool_value_state, int_value_state, units_value_state,
26 string_value_state): Remove comma after last element which causes
27 an error with g++ 3.3.3.
29 * src/roff/troff/node.cpp: Include `stringclass.h'.
30 (hline_node::hline_node, vline_node::vline_node,
31 space_char_hmotion_node, left_italic_corrected_node): Fix compiler
33 (zero_width_node::zero_width_node): Fix order of initializers.
35 * src/roff/troff/node.h: Don't include `mtsm.h'.
36 (hmotion_node): Fix compiler warnings.
38 * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
40 2004-10-12 Gaius Mulley <gaius@glam.ac.uk>
42 * doc/groff.css: New file.
44 * doc/webpage.ms: Use `groff.css'.
47 * tmac/an-old.tmac (need_eo_h): New number register.
48 (TH): Emit `.eo.tl' tag after title.
49 (SH): Set `need_eo_h'.
50 (an-trap): Handle `need_eo_h'.
51 (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
53 * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
54 (TL): Always start diversion.
56 (@AI): Always call `par@reset'.
57 (@AB): Update code for -Thtml.
58 (cov*tl-au-print): Handle -Thtml.
59 (par@reset): Handle `need_eo_tl', `need_eo_h'.
62 (@SH): Set `need_eo_h' for -Thtml.
63 (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
65 (@NH): s/HTML-TAG/HTMl-TAG-NS/.
66 Set `need_eo_h' for -Thtml.
67 (@EQ, @EN): Don't handle -Thtml specially.
68 (par@load-init): Don't handle -Thtml specially.
70 * tmac/www.tmac (www:paraspace): New macro.
71 (HTML-NS, HTML-TAG-NS): Use new `tag' request.
72 (HTML</p>, HTML-TAG-NEXT): New macros.
73 (HnE): Emit tag `.eo.h' instead of break.
74 (HR): s/HTML-NS/HTML/.
75 (www-end-nowhere): End diversion only if `www-html' not set.
77 (ULS, ULE): s|HTML|HTML</p>|.
78 (LI): Call `www:paraspace'.
81 2004-10-11 Gaius Mulley <gaius@glam.ac.uk>
83 * src/roff/troff/request.h (macro): Make `p' public.
84 New variable `is_a_diversion'.
85 New member function `is_diversion'.
88 * src/devices/grohtml/html.h (simple_output): New member function
91 * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
92 computation of `total'.
93 (tabs::check_init): New function.
94 (html_table::emit_table_header): Emit style data.
95 (html_table::insert_column): Improved.
97 * src/devices/grohtml/html-table.h: Updated.
99 * src/devices/grohtml/html-text.cpp (html_text::html_text):
100 Initialize `start_space' with TRUE.
101 (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
103 (html_text::flush_text): Set `start_space' flag.
104 (html_text::uses_indent, html_text::remove_para_space,
105 html_text::get_alignment): New functions.
106 (html_text::push_para): Updated.
107 (html_text::do_para): Check for empty argument.
108 Don't set `space_emitted'.
109 (html_text::do_space, html_text::emit_space): Updated.
111 * src/devices/grohtml/html-text.h (tag_definition): New variable
113 (html_text): New member function `uses_indent', `remove_para_space',
116 * src/devices/grohtml/output.cpp (simple_output::force_nl): New
118 (simple_output:nl): Always emit `\n'.
120 * src/devices/grohtml/post-html.cpp: Include `string.h'.
121 (BASE_POINT_SIZE): Removed.
122 (base_point_size, head_info): New global variables.
123 (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
125 (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
127 (page::add_and_encode): Pass additional parameter for tag flag.
128 (assert_pos): New structure.
129 (assert_state): New class.
130 (html_printer): Remove `indentation', `prev_indent'.
131 Add variables `troff_indent', `device_indent', `temp_indent'.
132 Add variables `seen_indent', `next_indent', `seen_pageoffset',
133 `next_pageoffset', `seen_linelenght', `next_linelength',
134 `seen_center', `next_center', `seen_space', `seen_break', `as'.
135 Add member functions `do_check_center', `do_space', `do_head',
136 `get_troff_indent', `restore_troff_indent', `handle_assertion',
137 `handle_state_assertion', `do_end_para', `set_char_and_width'.
138 Change argument to `do_fill' to `char *'.
140 (html_printer::emit_raw): Call `shutdown_table'.
142 (html_printer::do_center): Simplified.
143 (html_printer::do_title): Improved.
144 (html_printer::write_header): Emit one more newline.
146 (html_printer::do_heading, html_printer::do_indent,
147 html_printer::do_eol, html_printer::do_tab_ts,
148 html_printer::do_tab, html_printer::do_tab0,
149 html_printer::calc_po_in, html_printer::next_horiz_pos,
150 html_printer::remove_courier_tabs,
151 html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
153 (html_printer::do_linelength, html_printer::do_pageoffset,
154 html_printer::do_indentation, html_printer::do_tempindent,
155 html_printer::do_tab_te): Simplified.
156 (html_printer::do_pointsize): Check whether point size is really
157 associated a `.tl' tag.
158 (html_printer::do_break): Rewritten.
159 (html_printer::troff_tag): Improved.
160 (html_printer::flush_globs): Updated.
161 (html_printer::lookahead_for_tables): Handle `is_br'.
163 (html_printer::set_char): Check `sbuf_style.f'.
164 (html_printer::write_navigation): Use string comparison.
165 (html_printer::~html_printer): Emit `head_info'.
166 (html_printer::special): Rewritten.
167 (get_str, make_val): New functions.
168 (main): New option `s' to set the base point size.
170 * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
172 2004-10-10 Gaius Mulley <gaius@glam.ac.uk>
174 * src/roff/troff/node.cpp: New extern `debug_state'.
175 Include `stringclass.h' and `mtsm.h'.
176 Implement new classes and class members from `node.h'.
177 (real_output_file): Make `fp' public.
178 (troff_output_file): New variables `cur_div_level' and `tag_list'.
180 (troff_output_file::really_print_line): Check whether we should push
181 the current troff state and use the state at the start of the
182 invocation of this diversion.
183 (troff_output_file::add_to_tag_list): New member function.
184 (node::add_char): Handle `glyph_comp_np'.
186 * src/roff/troff/node.h: Include `mtsm.h'.
187 (node): New variables `state', `push_state', `div_nest_level',
188 `is_special'. Update constructors, all descendants.
189 Pass additional argument to `add_char' member function.
190 New virtual member functions `is_tag', `debug_node',
191 `debug_node_list'. Update all descendants.
192 (tag_node): New class for handling tags.
193 (output_file): Add variable `state'.
195 2004-10-09 Gaius Mulley <gaius@glam.ac.uk>
197 * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
198 providing a minimal troff state machine to emit meta tags for the
199 post-grohtml device driver.
201 * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
204 2004-10-09 Werner LEMBERG <wl@gnu.org>
206 * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
208 2004-10-06 Gaius Mulley <gaius@glam.ac.uk>
210 * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
212 * src/roff/troff/div.h: Include `mtsm.h'.
213 (diversion): New variables `any_chars_added', `needs_push',
214 `saved_seen_break', `saved_seen_space', `saved_seen_eol',
215 `saved_suppress_next_eol', `modified_tag'.
216 New virtual member function `is_diversion'. Update all descendants.
218 * src/roff/troff/div.cpp (diversion::diversion,
219 macro_diversion::macro_diversion): Updated.
220 (do_divert): Handle `seen_break', `seen_space', `seen_eol',
222 (top_level_diversion::space): Handle `curenv->seen_space'.
223 (page_offset): Update tag handling.
224 (space_request, blank_line, flush_output): Don't call `add_html_tag'.
226 * src/roff/troff/env.h (environment): Make `tabs' public.
227 Remove `ignore_next_eol', `emitted_node'.
228 Update `output_line', `output'.
229 New variables `seen_space', `seen_eol', `suppress_next_eol',
231 New member functions `construct_state', `make_tag',
232 `construct_format_state, `construct_new_line_state,
234 Remove `add_html_tag', `make_html_tag'.
236 * src/roff/troff/env.cpp: New externs `suppress_push',
237 `get_diversion_state', `global_diverted_space'.
238 (pending_output_line): New variable `was_centered'.
239 Update constructor and all callers.
240 (pending_output_line::output): Call `curenv->construct_format_state'.
241 (environment::environment, environment::copy): Updated.
242 (environment::output): Handle `was_centered'.
243 (environment::add_char): Handle construct and diversion state.
244 (environment::add_node): Handle construct state.
245 (environment::newline): Handle `was_centered'.
246 (environment::output_line): Updated.
247 (environment::possibly_break_line): Updated.
249 (environment::add_html_tag): Replaced with...
250 (environment::make_tag): New function.
251 (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
252 (environment::dump_troff_state): New debugging function.
253 (environment::construct_state, environment::construct_format_state,
254 environment::construct_new_line_state): New functions.
255 (environment::do_break): Updated.
256 Handle `global_diverted_space'.
257 (environment::handle_tag): Update tag handling.
258 (point_size, fill, do_break_request): Don't call `add_html_tag'.
259 (no_fill): Don't call `add_html_tag'.
260 Set `suppress_next_eol'.
261 (center, right_justify, line_length, indent, temporary_indent,
265 * src/roff/troff/input.cpp: Don't include `stringclass.h'.
266 (input_iterator): New variables `is_diversion', `diversion_state'.
268 (input_stack): New member functions `get_div_level',
269 `get_diversion_state', `check_end_diversion'.
270 New variables `div_level', `diversion_state'. Initialize them.
271 (suppress_push, global_diverted_space): New global variables.
272 (input_stack::finish_get, input_stack::finish_peek,
273 input_stack::remove_boundary, input_stack::end_file,
274 input_stack::clear, input_stack::pop_macro): Call
275 `check_end_diversion'.
276 (input_stack::push): Handle `div_level' and `diversion_state'.
277 (get_diversion_state): New function.
278 (diverted_space_node::reread): Handle `global_diverted_space'.
279 (macro::macro): Update constructors.
280 (macro::is_diversion): New function.
281 (macro::operator=): Set `is_a_diversion'.
282 (string_iterator): New member function `is_diversion'.
283 (string_iterator::string_iterator): Update constructors.
284 (string_iterator::fill): Set `div_nest_level'.
285 (macro_iterator): New member function `is_diversion'.
286 (do_if_request): Handle `suppress_push'.
287 (tag, taga): New functions.
288 (init_input_requests): Add `tag' and `taga' requests.
290 2004-10-05 Gaius Mulley <gaius@glam.ac.uk>
292 * src/include/font.h (font): New member function
293 `get_image_generator'.
294 New variables `unscaled_charwidths' and `image_generator'.
296 * src/libs/libgroff/font.cpp (font::get_width): Always return the
297 character's unscaled width if `font::unscaled_charwidths' is set.
298 (font::get_image_generator): New function.
299 (font::load_desc): Check the `unscaled_charwidths' and
300 `image_generator' keywords.
302 * src/libs/libgroff/fontfile.cpp: Initialize
303 `font::unscaled_charwidths' and `font::image_generator'.
305 * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
307 * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
309 * man/groff_font.man: Document `unscaled_charwidths' and
312 * src/preproc/html/pre-html.cpp: Include `device.h'.
313 (image_gen): New global variable.
314 (imageList::createPage): Use `image_gen'.
315 (main): Use `image_generator' keyword.
317 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
319 * tmac/html.tmac: Handle \[sqrtex].
321 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
323 * src/include/printer.h (printer): New virtual method `round_width'.
325 * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
326 src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
327 src/devices/grotty/tty.cpp (printer::round_width): New function
330 * src/devices/grohtml/post-html.cpp (printer::round_width): New
332 (html_printer::set_numbered_char): Use it.
334 2004-10-03 Gaius Mulley <gaius@glam.ac.uk>
336 * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
338 * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
340 * configure: Regenerated.
342 * Makefile.in (GHOSTSCRIPT): New variable.
343 (MDEFINES): Add GHOSTSCRIPT.
345 2004-10-03 Werner LEMBERG <wl@gnu.org>
347 * INSTALL.gen: Updated (taken from texinfo CVS).
349 2004-09-28 Werner LEMBERG <wl@gnu.org>
353 2004-09-28 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
355 * tmac/groff_www.man: Revised and updated.
357 2004-09-26 Werner LEMBERG <wl@gnu.org>
359 Fix \$@ and \$* to handle any number of arguments.
361 * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
364 * src/roff/troff/input.cpp (input_iterator::internal_level):
366 (input_stack): New member functions `increase_level' and
368 (input_stack::get_level): Don't use `internal_level'.
369 (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
370 (end_quote_iterator): Completely removed.
371 (interpolate_arg): Build string for \$@ and \$* which is then
372 pushed onto the input stack.
374 2004-09-23 Keith Marshall <keith.d.marshall@ntlworld.com>
376 * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
379 2004-09-23 Werner LEMBERG <wl@gnu.org>
381 * tmac/an-old.tmac (ne): Using default scaling operator.
383 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
385 This change implements the following features:
388 New numeric register: Defines number of lines following LP, PP,
389 QP, IP or XP, which must be kept together, before any automatic
390 page break. If insufficient space remains on the current page, a
391 page break is forced before the new paragraph begins.
394 New numeric register: Sets number of lines of following paragraph
395 which must be kept with a heading, defined by NH or SH, before any
396 automatic page break. If insufficient space remains on the
397 current page, a page break is forced before the heading.
400 (Thanks to Joerg van den Hoff, for this idea).
402 New numeric register: Sets the first level of heading (set with
403 NH), which will keep the same point size as body text; e.g. if
404 GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
405 point size specified by \n[PS], but .NH 2 and .NH 1 will have
406 progressively larger point sizes, determined by \n[PSINCR] (see
410 New numeric register: Sets the point size increment for each level
411 of heading, (set with NH), below the threshold level set by
412 GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
413 then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
414 and all other levels will remain at 10pt, (because \n[PS] = 10).
417 Existing macro now accepts a numeric argument, to make heading
418 size match that of NH with same argument value, when the
419 GROWPS/PSINCR feature is enabled.
422 New string, set by NH macro, replaces the existing (undocumented)
423 use of SN, to represent the assigned section number.
426 New string, set by NH macro, represents the assigned section
427 number, but omits the terminal period (periods at intermediate
428 levels are retained).
431 String set by NH macro, originally undocumented, now implemented
432 as an alias for SN-DOT (which reproduces original behaviour).
434 * tmac/s.tmac (PORPHANS): New register.
436 (HORPHANS, GROWPS, PSINCR): New registers.
437 (SH-NO-TAG, @SH): Use them.
440 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
442 * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
443 of `Ds' and `De' macros.
445 2004-09-10 Werner LEMBERG <wl@gnu.org>
447 In tbl, handle \a as an interpreted leader character if in
450 * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
451 LEADER_CHAR): New macros.
452 (compatible_flag): New declaration.
454 * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
455 LEADER_3, and LEADER_4 to `state'.
456 (table_input::get): Handle `\a'.
458 * src/preproc/tbl/table.cpp (PREFIX): Removed.
459 (LEADER_REG): New macro.
460 (table::init_output): Define LEADER_REG string register if in
463 * src/preproc/tbl/tbl.man: Document it.
465 2004-08-18 Werner LEMBERG <wl@gnu.org>
467 * tmac/doc.tmac (An): Fix error message.
469 2004-08-06 Werner LEMBERG <wl@gnu.org>
471 * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
472 file can't be opened. UNIX tbl has the same behaviour.
474 2004-08-05 Y T <doarhop@hotmail.com>
476 * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
477 (DBRead): If in compatibility mode, take into account the text
478 when computing figure boundaries.
480 2004-08-05 Werner LEMBERG <wl@gnu.org>
482 * src/preproc/soelim/soelim.man: Improved. Based on suggestions
483 from Tadziu Hoffmann.
485 2004-08-03 Werner LEMBERG <wl@gnu.org>
487 * doc/meref.me: Document `_M' register.
489 2004-08-03 Martin Husemann <martin@duskware.de>
491 Make hpftodit work correctly on big-endian systems.
493 * src/utils/hpftodit/hpftodit.cpp (File): New method
494 `get_uint32(char *)'.
495 (entry): New member `orig_value'.
496 (read_tags): Use new method.
497 (output_font_name, read_and_output_pcltypeface, dump_ascii):
500 2004-08-01 Werner LEMBERG <wl@gnu.org>
502 * tmac/s.tmac: Undo change 2003-06-29. The proper macro definitions
503 are already in X11's `macros.t' file.
505 2004-08-01 Jeff Conrad <jeff_conrad@msn.com>
507 * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
509 (read_and_output_pcltypeface): Handle strings with length <= 4.
511 2004-07-27 Egil Kvaleberg <egil@kvaleberg.no>
513 * tmac/s.tmac (pg@top): Don't save `PO' register.
514 (pg*end-col, pg*end-page): Directly use `PO' register.
516 2004-07-27 Werner LEMBERG <wl@gnu.org>
518 * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
520 * src/preproc/refer/refer.cpp (output_references): Check for
522 * src/preproc/refer/refer.man: Improve documentation of
523 `bibliography' command.
525 2004-07-26 Werner LEMBERG <wl@gnu.org>
527 Add requests `fcolor' and `gcolor'.
529 * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
531 (init_env_requests): Add `fcolor' and `gcolor'.
533 * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
535 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
536 Document new requests.
538 2004-07-24 Werner LEMBERG <wl@gnu.org>
540 Add support for fractional point sizes in ms macros. A value for
541 PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
542 by 1000. For example, `.nr PS 10250' sets the font size to 10.25p.
544 * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
545 PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
547 * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
549 2004-07-19 Werner LEMBERG <wl@gnu.org>
551 * src/preproc/pic/lex.cpp (for_input): Add member `from'.
553 (do_for, for_input::get, for_input::peek): Handle negative `by'.
554 * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
556 2004-07-08 Thomas Klausner <wiz@netbsd.org>
558 * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
559 * tmac/groff_mdoc.man: Updated.
561 2004-07-05 Werner LEMBERG <wl@gnu.org>
563 * doc/groff.texinfo: Further improve documentation of `hcode'.
565 2004-07-04 Sang Dae Yu <sdyu@bh.knu.ac.kr>
567 Improve appearance of arrows in pic.
569 * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
571 Use two line segments for drawing non-filled arrow head.
572 (line_object::print, spline_object::print): Shorten line length to
573 avoid arrow sticking.
574 (arc_object::print): Take arrow direction into account.
576 2004-07-03 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
578 * tmac/groff_www.man: Update documentation of .MPIMG.
580 2004-07-03 Werner LEMBERG <wl@gnu.org>
582 * tmac/an-old.tmac (RI): Always start with font `R'.
583 (RI, IR): Properly end with font `R'.
585 2004-07-02 Paul Eggert <eggert@cs.ucla.edu>
587 * man/ditroff.man, man/groff_font.man, man/groff_out.man,
588 src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
589 src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
590 Don't pass more than six arguments to .R, .I, .B, etc., for
591 compatibility with traditional troff macros.
593 2004-07-02 Werner LEMBERG <wl@gnu.org>
595 * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
596 s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
598 (PUSH_COMP_MODE): New internal character constant.
601 * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
602 PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
603 (token::next, macro::append): Handle PUSH_COMP_MODE.
604 (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
605 POP_GROFFCOMP after each of the decoded arguments to make them
606 independent from the compatibility mode status.
607 (comp_mode): Add `COMP_ENABLE'.
608 (do_define_string, do_define_macro): Handle COMP_ENABLE.
609 (define_string, append_string, define_macro, define_indirect_macro,
610 append_macro, append_indirect_macro): Handle `compatible_flag'.
611 (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
613 * man/groff_diff.man, doc/groff.texinfo: Updated.
615 2004-07-01 Werner LEMBERG <wl@gnu.org>
617 * doc/groff.texinfo: Improve documentation of `hcode'.
618 Use @documentencoding and convert document to latin-1; to do that
619 make latin characters active and assign proper macros (within a
620 @tex...@end tex environment).
621 * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
622 * doc/Makefile.sub (groff): Ditto.
624 2004-06-29 Werner LEMBERG <wl@gnu.org>
626 Implement two new conditional operators `F <name>' and `S <name>'
627 which check whether <name> is a valid font or style, respectively.
629 * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
630 (text_file::text_file): Updated.
631 (text_file::error): Don't emit message if `silent' is set.
632 (font::load_font): Add optional third argument (which is directly
634 (font::load): Add optional second argument to check the header of
635 a font only, without emitting warning or error messages.
636 * src/include/font.h (font): Updated.
638 * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
640 * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
641 fourth argument to check a font without mounting.
642 (check_font, check_style): New functions.
643 * src/roff/troff/node.h: Updated.
645 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
648 2004-06-27 Werner LEMBERG <wl@gnu.org>
650 Implement new string-valued register `.sty' to return the current
653 * env.cpp (environment::get_style_name_string): New function.
654 (init_env_requests): Add `.sty' register.
655 * env.h (environment): Updated.
656 * node.cpp (font_info): Make `get_style_name' a friend.
657 (get_style_name): New function.
660 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
663 2004-06-15 Werner LEMBERG <wl@gnu.org>
665 * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
668 2004-06-10 Colin Percival <colin.percival@wadham.ox.ac.uk>
670 * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
671 and \n[mo] to avoid dependency on current date.
673 2004-06-08 Werner LEMBERG <wl@gnu.org>
675 * Makefile.sub (install_data): New target.
677 2004-06-04 Werner LEMBERG <wl@gnu.org>
679 * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
681 2004-06-03 Werner LEMBERG <wl@gnu.org>
683 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
685 (install_data): Add $(srcdir).
687 * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
690 2004-06-02 Werner LEMBERG <wl@gnu.org>
692 * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
693 Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
694 Add test for Xmu library.
695 (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
696 GROFF_APPRESDIR_DEFAULT): New macros.
698 * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
699 and GROFF_APPRESDIR_DEFAULT.
701 * configure: Regenerated.
703 * Makefile.in (appresdir): New variable.
704 (MDEFINES): Add appresdir.
706 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
708 (install_data, uninstall_sub): New targets to handle GXditview.ad.
710 * src/utils/indxbib/Makefiles.ub (install_data): Depend on
711 `$(srcdir)/eign', not `eign'.
713 * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
715 * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
716 src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
717 Protect (g)xditview with `\%' to avoid hyphenation.
718 Other minor formatting.
720 2004-06-01 Werner LEMBERG <wl@gnu.org>
722 Integrate gxditview into groff's standard directory hierarchy.
724 * src/xditview/*: Moved to ...
725 * src/devices/xditview/*: Here.
726 Moved DviChar.h and XFontName.h to src/include.
727 Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
728 Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
729 Moved xtotroff.c to new directory src/utils/xtotroff.
730 Provide proper Makefile.sub files (reusing the stuff from
732 DESC renamed to DESC.in.
733 Removed GXDitview-ad.h, INSTALL, Imakefile.in.
734 Converted everything from K&R to ANSI C.
735 Decorated with const where appropriate.
736 Cast string constants with `String' and `char *' where appropriate.
737 Made it compile with C++ (used as a C compiler).
738 Removed other minor compiler warnings.
740 * src/devices/xditview/device.c: Include config.h, string.h, and
742 Don't declare `exit', `strtok', `strchr', and `getenv'.
745 * src/devices/xditview/font.c: Don't declare `XParseFontName' and
748 * src/devices/xditview/xditview.c: Include config.h.
749 Include stdio.h earlier.
750 Protect declaration of `popen' and `pclose' with
751 NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
752 Replace `caddr_t' with `XtPointer'.
753 (MakePromptFunc): New typedef.
754 (DoPrint): Use RETSIGTYPE.
755 (promptfunction): Change type to MakePromptFunc.
756 (MakePrompt): Use MakePromptFunc for third argument.
759 * src/devices/xditview/ad2c: Add casts to `String'.
761 * src/include/XFontName.h (XFontNameString): Don't use array
763 Add prototypes for `XParseFontName', `XFormatFontName',
764 `XCompareFontName', and `XCopyFontName'.
766 * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
769 * src/utils/xtotroff/xtotroff.c: Include getopt.h.
770 Don't declare `XParseFontName' and `XFormatFontName'.
772 (main): Remove `optind' and `optarg'.
774 * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
775 (to select programs which need X).
776 Make XDEVIDIRS depend on `FORCE'.
777 (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
780 (LIBDIRS): Use XLIBDIRS.
781 (CPROGDIRS): Use XPROGDIRS.
782 (DEVDIRS): Remove font directories for gxditview.
783 (ALLDIRS, DISTDIRS): Add XDEVDIRS.
784 (EXTRADIRS): Remove src/xditview.
786 * Makefile.sub (DISCLEANFILES): Updated.
788 * Makefile.comm (LIBXUTIL): New variable.
789 (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
790 (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
792 * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
794 * aclocal.m4 (GROFF_X11): New function.
796 * configure.ac: Call GROFF_X11.
797 Don't create src/xditview/Imakefile.
798 Don't emit notice how to build gxditview.
800 * configure: Regenerated.
802 * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
804 2004-05-28 Akihiro Sagawa <sagawa@sohgoh.net>
806 * Makefile.in (CPPFLAGS): Define.
807 (MDEFINES): Add CPPFLAGS.
809 2004-05-27 Werner LEMBERG <wl@gnu.org>
811 * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
813 2004-05-26 Niklas Edmundsson <nikke@acc.umu.se>
815 Fix problems with `friend name injections'.
817 * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
818 make_script_box), src/roff/troff/div.h (end_diversions),
819 src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
822 2004-05-25 Bernd Warken <bwarken@mayn.de>
824 * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
826 2004-05-25 Werner LEMBERG <wl@gnu.org>
828 * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
829 src/libs/libgroff/color.cpp: Include lib.h.
831 2004-05-25 Paul Eggert <eggert@cs.ucla.edu>
833 * PROBLEMS: Update documentation for problems with Sun C++ 5.0
834 through Forte 6u1, and for how to get GNU make on Solaris.
836 2004-05-24 Werner LEMBERG <wl@gnu.org>
838 * PROBLEMS: Document problems with gcc 3.4.0 on Sun. Reported
841 2004-05-15 Keith Marshall <keith.d.marshall@ntlworld.com>
843 * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
846 2005-05-14 Werner LEMBERG <wl@gnu.org>
848 * REVISION: Set to 2.
850 * aclocal.m4 (GROFF_STDINT_H): Removed.
851 (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
853 * configure.ac: Updated.
854 * configure, src/include/config.hin: Regenerated.
856 * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
857 inttypes.h conditionally.
859 2003-05-13 Werner LEMBERG <wl@gnu.org>
861 Version 1.19.1 released
862 =======================
864 2004-05-10 Stephen Gildea <http://www.gildea.com/stephen>
866 * src/preproc/refer/label.y (same_author_last_name,
867 same_author_name): Handle empty sort keys.
869 2004-05-10 Werner LEMBERG <wl@gnu.org>
871 * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
874 * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
875 doc-str-Lb-librt): Reset font.
876 (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
877 Provide `doc-str-Lb' to reset font.
878 * tmac/groff_mdoc.man: Updated.
880 2004-05-08 Jan Schaumann <jschauma@netmeister.org>
882 * src/preproc/html/pre-html.cpp (make_message): Make it work for
883 snprintf versions which don't conform to ANSI C 99 (this is,
884 counting the string's trailing null byte in the return value).
886 2004-05-07 Keith Marshall <keith.d.marshall@ntlworld.com>
888 * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
889 that all implementations of sprintf handle null pointers correctly.
891 2004-05-04 Werner LEMBERG <wl@gnu.org>
893 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
894 Document `.U' register.
896 * src/roff/troff/env.cpp (environment::mark_last_line)
897 [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
899 2004-05-04 Larry Kollar <kollar@alltel.net>
901 New read-only register `.U'; it returns 1 in safer mode and 0
904 * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
907 2004-05-03 Werner LEMBERG <wl@gnu.org>
909 * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
911 2004-04-17 Werner LEMBERG <wl@gnu.org>
913 * src/include/font.h (font): Use `int' for ch_index.
914 * src/libs/libgroff/font.cpp (font::alloc_ch_index,
915 font::compact): Updated.
917 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
920 * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
921 (hyphen_word): Fix compiler warnings.
922 * src/roff/troff/input.cpp (get_char_for_escape_name): Return
925 (get_delim_number, get_line_arg): Change second argument type to
927 (macro_header::copy, token::next, do_define_string,
928 do_define_character, substring_request, asciify_macro,
929 unformat_macro, read_size, non_interpreted_node::interpret,
930 while_request, main: Fix compiler warnings.
931 (read_color_draw_node): Initialize `col'.
933 * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
934 `start_col' and `end_col' of type `int'.
935 (vertical_rule): Make `col' of type `int'.
937 * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
940 * src/preproc/refer/label.y (uppercase_array, lowercase_array):
942 (format_serial): Use them to remove dependency on ASCII.
944 * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
946 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
949 * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
951 (glyph): Change type of `hpos' to `int'.
953 * src/devices/lbp/lbp.cpp (strsep): Removed. Unused.
954 * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
956 * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
958 * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
960 2004-04-16 Werner LEMBERG <wl@gnu.org>
962 * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
963 src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
964 src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
965 `double' instead of `float' everywhere.
966 * src/preproc/grn/main.cpp: Use `double' instead of `float'
968 (main): Add return value.
969 * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
971 Update all user functions.
973 * src/include/search.h, src/include/ptable.h, src/include/printer.h,
974 src/preproc/eqn/box.h, src/preproc/pic/object.h,
975 src/preproc/refer/refer.h, src/preproc/tbl/table.h,
976 src/preproc/tbl/table.cpp, src/roff/troff/env.h,
977 src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
978 src/roff/troff/input.cpp, src/roff/troff/request.h,
979 src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
982 * src/utils/indxbib/signal.c: Include stdlib.h.
984 2004-04-14 Keith Marshall <keith.d.marshall@ntlworld.com>
986 * tmac/s.tmac (@init, RP): Allow initialization of the PO register
987 before the first page.
989 2004-04-14 Thomas Klausner <wiz@netbsd.org>
991 * tmac/doc-common (doc-volume-as-*): Use lowercase names.
992 (doc-operating-system-*): Updated.
993 * tmac/doc-syms (doc-str-St-*): Various small fixes.
994 (doc-str-Lb-*): Add more library names.
996 2004-04-10 Art Haas <ahaas@airmail.net>
998 * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
1001 2004-04-09 Art Haas <ahaas@airmail.net>
1003 * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
1005 2004-04-09 Keith Marshall <keith.d.marshall@ntlworld.com>
1007 * arch/misc/shdeps.sh: Generate better comment for sed script.
1009 2004-04-08 Art Haas <ahaas@airmail.net>
1011 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1012 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
1013 src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
1014 src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
1015 (polyfill), src/preproc/grn/main.cpp (polyfill),
1016 src/preproc/refer/command.cpp (command_table),
1017 src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
1018 gcc 3.5 doesn't like).
1020 2004-04-08 Werner LEMBERG <wl@gnu.org>
1022 Removing many compiler warnings. groff should now compile with
1023 a C++ compiler used for C files also. [Simple variable renamings
1024 to avoid shadowing aren't logged in detail.]
1026 * src/devices/grodvi/dvi.cpp: Some local variable renamings.
1027 (draw_dvi_printer::draw) ['c']: Enclose in block.
1029 * src/devices/grohtml/post-html.cpp: Some local variable renamings.
1030 (page::add_line): Fix typos.
1031 * src/devices/grohtml/html-text.cpp: Some local variable renamings.
1033 * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
1034 Some local variable renamings.
1035 * src/devices/grolbp/lbp.h: Some local variable renamings.
1037 * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
1040 * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
1041 Remove redundant local variable declaration.
1042 * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
1043 Don't use `caddr_t' but `void *'.
1044 Enclose functions with `extern "C"' for C++.
1046 * src/libs/libdriver/input.cpp (remember_filename,
1047 remember_source_filename): Use cast for string constant.
1049 * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
1050 src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
1051 src/libs/libgroff/geometry.cpp: Some local variable renamings.
1052 * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
1054 Enclose functions with `extern "C"' for C++.
1055 * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
1056 (needs_quoting): Return `int'.
1057 (quote_arg): Add proper casts to malloc and realloc.
1058 * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
1059 various MS Windows environments.
1060 (spawnvp_wrapper): Add proper cast to malloc.
1062 * src/preproc/eqn/box.h: Remove redundant declarations of
1063 `make_script_box', `make_mark_box' and `make_lineup_box'.
1064 * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
1065 * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
1068 * src/preproc/grn/hpoint.cpp: Some local variable renamings.
1069 * src/preproc/grn/hgraph.cpp: Some local variable renamings.
1070 (dx, dy): Renamed functions to...
1071 (deltax, deltay): This.
1072 * src/preproc/grn/main.cpp: Some local variable renamings.
1073 (deffont): Add `const'.
1074 (initpic, conv): Use cast for string constant.
1076 * src/preproc/html/pre-html.cpp: Some local variable renamings.
1077 (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
1078 (char_buffer::run_output_filter): Second argument is unused.
1079 * src/preproc/html/pushback.cpp: Some local variable renamings.
1081 * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
1082 * src/preproc/pic/object.cpp: Some local variable renamings.
1084 * src/preproc/refer/label.y (lookup_label): Remove redundant
1085 declaration of local variable.
1087 * src/preproc/soelim.cpp: Remove redundant declaration of
1088 `interpret_lf_args'.
1090 * src/preproc/tbl/main.cpp: Some local variable renamings.
1092 * src/roff/groff/groff.cpp (main): Use cast for string constant.
1093 * src/roff/groff/pipeline.c: Enclose declarations of `error',
1094 `c_fatal', and `i_to_a' with `extern "C"' for C++.
1095 Don't use C++-style comments.
1097 * src/roff/troff/env.h: Remove redundant declaration of `title'.
1098 * src/roff/troff/node.h, src/roff/troff/env.cpp,
1099 src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
1101 * src/roff/troff/div.h: Remove redundant declaration of
1103 * src/roff/troff/troff.h: Remove redundant declaration of
1105 * src/roff/troff/input.cpp: Remove redundant declaration of
1106 `handle_first_page_transition' and `process_input_stack'.
1108 * src/utils/hpftodit.cpp: Some local variable renamings.
1110 * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
1112 Don't define RETSIGTYPE.
1113 * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
1115 * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
1116 (error): Use `const' in argument.
1117 (main): Remove redundant declaration of `optind'.
1118 Move declaration of `Version_string' to top-level.
1120 * PROBLEMS: Document difficulties compiling signal.c if a C++
1121 compiler is used for C.
1123 2004-04-07 Werner LEMBERG <wl@gnu.org>
1125 * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
1127 2004-04-06 Keith Marshall <keith.d.marshall@ntlworld.com>
1129 Make scripts like nroff.sh and neqn.sh portable across various
1130 (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
1131 non-POSIX path separators. The idea is to extend those scripts to
1132 decide at run-time (of the script) which path separator to use.
1134 * arch/misc/Makefile.sub: New file.
1135 * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
1136 This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
1137 a proper definition of the variable `GROFF_RUNTIME'.
1139 * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
1140 (MDEFINES): Add SH_DEPS_SED_SCRIPT.
1141 (PROGDEPDIRS): New variable.
1143 (PROGDIRS): Add PROGDEPDIRS.
1145 * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
1146 Don't substitute @SEP@ and @BINDIR@.
1147 * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
1148 (PATH): Use GROFF_RUNTIME.
1150 * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
1151 Don't substitute @SEP@ and @BINDIR@.
1152 * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
1153 (PATH): Use GROFF_RUNTIME.
1155 2004-04-05 Keith Marshall <keith.d.marshall@ntlworld.com>
1157 * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
1158 Cygwin which doesn't handle stderr correctly.
1160 2004-03-08 Werner LEMBERG <wl@gnu.org>
1162 * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
1163 against empty argument. Problem reported by <cgd@broadcom.com>.
1165 2004-03-05 Keith Marshall <keith.d.marshall@ntlworld.com>
1167 * Makefile.in (SEP): Replaced with...
1168 (RT_SEP, SH_SEP): Separators for the target platform's native path
1169 separator and the build environment, respectively.
1170 (fontpath, tmacpath): Use RT_SEP.
1171 (MDEFINES): Updated.
1173 * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1174 * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1175 * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
1176 * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
1178 2004-03-05 Werner LEMBERG <wl@gnu.org>
1180 * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200. This helps to
1181 reduce alignment problems with newer printers which use built-in
1182 TrueType fonts (instead of the older Intellifonts). The ideal
1183 solution is to provide a second set of groff metric files, but this
1184 is extremely time-consuming to produce, given that HP's metric
1185 files are very rudimentary.
1187 2004-03-01 Werner LEMBERG <wl@gnu.org>
1189 * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
1190 s/operand/argument/ in error message.
1192 2004-03-01 Keith Marshall <keith.d.marshall@ntlworld.com>
1194 * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
1197 2004-03-01 Antti Kantee <pooka@netbsd.org>
1199 * tmac/s.tmac (XE): Fix error message.
1201 2004-02-27 Jeff Conrad <jeff_conrad@msn.com>
1203 * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
1206 * src/roff/groff/pipeline.c: Declare strcasecmp.
1207 (run_pipeline) [_WIN32]: Use function name variants which don't
1209 Fix stream handling.
1211 2004-02-27 Keith Marshall <keith.d.marshall@ntlworld.com>
1213 * src/include/nonposix.h: Fix declaration of `system_shell_name'.
1214 Declare `spawnvp_wrapper' and macro definitions of spawnvp only
1215 for platforms which use the native Win32 runtime libraries.
1216 (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
1218 * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
1219 QUOTE_ARG_REALLOC_ERROR): Fix string.
1221 * src/preproc/html/pre-html.cpp: Remove declaration of
1223 Don't use __MINGW32__.
1224 s/DEBUG_FILE/DEBUG_FILE_DIR/.
1225 (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
1226 (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
1227 (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
1228 calls to `set_redirection' and `WAIT'.
1229 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
1230 Fix calls to `set_redirection' and `save_and_redirect'.
1231 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
1232 to `set_redirection' and `save_and_redirect'.
1233 (usage): Fix message.
1234 (makeTempFiles, main): Use `DEBUG_FILE'.
1236 2004-02-21 Werner LEMBERG <wl@gnu.org>
1238 * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
1240 2004-02-21 Keith Marshall <keith.d.marshall@ntlworld.com>
1242 * src/libs/libgroff/quotearg.c: New file, providing proper argument
1243 quoting for MSVC's spawn* and exec* functions.
1244 * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
1245 spawnvp with proper quoting for MSVC.
1247 * src/libs/libgroff/assert.cpp (program_name),
1248 src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
1249 * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
1251 * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
1253 * src/include/error.h (program_name): Declare as `extern "C"'.
1254 * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
1256 2004-02-21 Jeff Conrad <jeff_conrad@msn.com>
1258 * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
1260 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
1262 2004-02-20 Jeff Conrad <jeff_conrad@msn.com>
1264 * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
1266 (sbasename) [__MSDOS__ || ...]: New function.
1267 (system_shell_name) [__MSDOS__ || ...]: Use a different, more
1269 (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
1270 (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
1272 Use STDOUT_FILENO instead of hardcoded file handle.
1273 (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
1275 2004-02-19 Werner LEMBERG <wl@gnu.org>
1277 * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
1278 avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
1280 2004-02-18 Werner LEMBERG <wl@gnu.org>
1282 * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
1283 new font and mapping files.
1285 2004-02-18 Jeff Conrad <jeff_conrad@msn.com>
1286 Keith Marshall <keith.d.marshall@ntlworld.com>
1288 * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
1289 an input pipe. This is needed for the MSVC compiler to make troff's
1292 * src/roff/troff/div.cpp: Include nonposix.h.
1293 (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
1295 2004-02-17 Werner LEMBERG <wl@gnu.org>
1297 * font/devlj4/generate/special.awk: New script.
1298 * font/devlj4/generate/Makefile (S): Use special.awk.
1299 * font/devlj4/*: Regenerated, including the following new files:
1300 Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
1301 MS Symbol (SYMBOL), Wingdings (WINGDINGS).
1302 * NEWS: Document new lj4 fonts and revised hpftodit.
1304 2004-02-17 Paco Andrés Verdú <pandres@dragonet.es>
1306 * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
1308 2004-01-25 Werner LEMBERG <wl@gnu.org>
1310 * src/libs/libgroff/progname.cpp: Replaced with...
1311 * src/libs/libgroff/progname.c: New file.
1312 * src/libs/libgroff/Makefile.sub: Updated accordingly.
1314 2004-01-17 Werner LEMBERG <wl@gnu.org>
1316 * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
1318 2004-01-16 Jeff Conrad <jeff_conrad@msn.com>
1320 * font/devlj4/generate/wingdings.map,
1321 font/devlj4/generate/symbol.map: Include unnamed glyphs.
1322 Use groff glyph names where possible.
1323 * src/devices/grolj4/lj4_font.man: Minor updates.
1325 2004-01-13 Werner LEMBERG <wl@gnu.org>
1327 * tmac/www.tmac (DC): Handle TTY devices.
1329 * doc/webpage.ms: Document viewCVS from ffii.org.
1330 * NEWS, README: Updated.
1332 * src/roff/groff/groff.man: Mention lj4_font man page.
1334 * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
1336 (FONTS): Add SYMBOL and WINGDINGS.
1337 (SYMBOL, WINGDINGS): New targets.
1339 2004-01-13 Jeff Conrad <jeff_conrad@msn.com>
1341 * src/devices/grolj4/lj4_font.man: New man page.
1342 * src/devices/grolj4/Makefile.sub (MAN5): New variable.
1343 * src/devices/grolj4.man: Mention lj4_font man page.
1345 * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
1346 * src/utils/hpftodit/hpftodit.man: Document it.
1348 Remove details about fonts (which are now in lj4_font.man).
1350 * font/devlj4/generate/symbol.map,
1351 font/devlj4/generate/wingdings.map: New files.
1353 2004-01-12 Werner LEMBERG <wl@gnu.org>
1355 * README: Mention ffii's viewcvs access.
1357 2004-01-09 Werner LEMBERG <wl@gnu.org>
1359 * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
1361 2004-01-09 Jeff Conrad <jeff_conrad@msn.com>
1363 Revert most of the change from 2004-01-03 to better control used
1366 * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
1367 (text_symbol_sets, special_symbol_sets): New arrays.
1368 (symbol_set_table): New global variable.
1369 (read_symbol_sets): Use search order given in the text_symbol_sets
1370 and special_symbol_sets arrays. If command line flag -a is not
1371 given, search both arrays.
1372 (output_charset): Require x_height_tag only for command line flag -i.
1374 2004-01-06 Werner LEMBERG <wl@gnu.org>
1376 Implement string-valued registers \n[.m] and \n[.M] to return the
1377 name of the current drawing and background color, respectively.
1379 * src/roff/troff/symbol.h: Moved to...
1380 * src/include/symbol.h: Here.
1381 Small fixes to make it work outside of the `troff' directory.
1382 * src/roff/troff/symbol.cpp: Moved to...
1383 * src/libs/libgroff/symbol.cpp: Here.
1384 Small fixes to make it work outside of the `troff' directory.
1386 * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
1387 (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
1390 * src/include/color.h: Include symbol.h.
1391 (color): Add new field `nm'.
1392 * src/libs/libgroff/color.cpp (color::color): Updated.
1394 * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
1395 src/roff/troff/node.cpp, src/roff/troff/number.cpp,
1396 src/roff/troff/reg.cpp: Don't include symbol.h.
1398 * src/roff/troff/env.cpp: Don't include symbol.h.
1399 (environment::get_glyph_color_string,
1400 environment_get_fill_color_string): New member functions.
1401 (init_env_requests): Handle `.m' and `.M' registers.
1402 * src/roff/troff/input.cpp: Don't include symbol.h.
1403 (default_symbol): Moved to symbol.cpp/symbol.h.
1404 (do_glyph_color, do_fill_color, define_color): Pass symbol name
1405 to color constructor.
1406 * src/roff/troff/env.h: Updated.
1408 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1409 Document new registers.
1411 2004-01-05 Werner LEMBERG <wl@gnu.org>
1413 * src/roff/troff/node.cpp (space_node::get_breakpoints,
1414 space_node::nbreaks): Protect against zero `next' field.
1416 2004-01-03 Jeff Conrad <jeff_conrad@msn.com>
1418 In hpftodit, use the symbol sets offered in the TFM.
1420 * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
1421 (symbol_set, text_symbol_sets, special_symbol_sets,
1422 symbol_set_table): Removed.
1423 (get_printcode): Removed.
1424 (read_symbol_sets): Initialize `symbol_set' field with
1426 Simplify code to just use the `kind' value.
1427 (output_charset): Improve output formatting.
1428 (dump_symbols): Simplified.
1430 2004-01-02 Werner LEMBERG <wl@gnu.org>
1432 * font/devlj4/generate/text.map: Add more MSL numbers.
1434 2004-01-02 Jeff Conrad <jeff_conrad@msn.com>
1436 * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
1437 (text_symbol_sets): Add more symbol sets.
1438 (debug_flag): New static variable (moved from `main').
1439 (get_printcode, show_symset): New functions.
1440 (main): Remove `debug_flag'.
1441 (output_charset): Use `show_symset'.
1442 (dump_symbols): Use `show_symset'.
1443 Print symsets for all glyphs.
1444 (read_map): Actually call `unicode_to_ucode_make' but this time
1447 2004-01-01 Werner LEMBERG <wl@gnu.org>
1449 * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
1450 Fix placement of comments.
1452 2004-01-01 Jeff Conrad <jeff_conrad@msn.com>
1454 * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
1455 option `-d' is given.
1456 (output_charset): Improve warning messages to give more information.
1457 (dump_symbols): Make information more precise.
1459 (read_map): Don't call unicode_to_ucode_name; the glyph names must
1460 appear as-is and shouldn't be decomposed.
1462 2003-12-31 Werner LEMBERG <wl@gnu.org>
1464 * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
1465 * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
1466 (FONTS): Add TrueType font families Arial and Times New Roman.
1467 (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
1468 * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
1471 2003-12-31 Jeff Conrad <jeff_conrad@msn.com>
1473 * test-groff.in (SEP): Quote value.
1474 * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
1475 `tem' to `char*' to avoid deallocation of a pointer to a constant
1476 object which some compilers don't like.
1478 2003-12-31 Werner LEMBERG <wl@gnu.org>
1480 * font/devlj4/generate (text.map, special.map): Rewritten to work
1481 with the new hpftodit version.
1483 2003-12-30 Jeff Conrad <jeff_conrad@msn.com>
1485 * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
1486 set and 8bit character code for all glyphs also.
1488 2003-12-30 Werner LEMBERG <wl@gnu.org>
1490 * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
1492 2003-12-29 Werner LEMBERG <wl@gnu.org>
1494 More fixes for MSVC compiler.
1496 * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
1499 * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
1500 STDERR_FILENO) [_MSC_VER]: Define conditionally.
1501 (getpid) [_MSC_VER]: Remove.
1502 Include direct.h and process.h conditionally.
1504 * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
1505 parentheses for a_delete.
1507 * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
1509 * test-groff: Replaced with...
1510 * test-groff.in: This new template to handle path separator
1513 * configure.ac: Check for direct.h and process.h.
1514 Generate test-groff script.
1515 * configure, src/include/config.hin: Regenerated.
1517 2003-12-28 Werner LEMBERG <wl@gnu.org>
1519 Add integral extension glyph.
1520 Add new option `-x' to afmtodit to suppress use of built-in AGL.
1522 * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
1524 * font/devps/generate/textmap: Provide entry for `integralex' to
1525 override (old) PUA value of the AGL.
1526 * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
1527 * font/devps/*: Regenerated.
1529 * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
1530 * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
1532 2003-12-27 Werner LEMBERG <wl@gnu.org>
1534 Add forgotten `coproduct' symbol (already available for DVI).
1536 * font/devhtml/R.proto, font/devps/generate/textmap,
1537 font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
1538 src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
1539 U+2210 (\[coproduct]).
1541 2003-12-26 Jeff Conrad <jeff_conrad@msn.com>
1543 hpftodit has been extended to handle TrueType metric files and
1544 more glyphs. See hpftodit.man for more details.
1546 * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
1547 ctype.h, and unicode.h.
1548 s/msl/charcode/ everywhere since we now handle Unicode values also.
1549 (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
1550 Use it where appropriate.
1551 (MULTIPLIER): Replaced with...
1552 (multiplier): New global static variable.
1554 (tag_type): Add more TFM tags.
1555 (tag_name): New array.
1556 (ENUM_TYPE, FLOAT_TYPE): Removed.
1557 (BYTE_TYPE): New value assigned.
1558 (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
1559 (text_symbol_sets, special_symbol_sets): Extended to cover more
1561 (check_type): Add return value.
1562 (check_units): Add parameters to get ppi and upem values.
1563 Handle TrueType TFM data.
1564 (output_font_name): New function.
1565 (output_charset): Add parameter to handle TFM type.
1566 Handle TrueType TFMs also.
1567 (em_fract): New macro.
1568 (dump_tags): Be much more verbose and handle more tags.
1569 (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
1570 (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
1572 (read_map): Add parameter to handle TFM type.
1573 Handle both MSL and Unicode mappings.
1574 (main): Add two new command line options `-a' and `-q'.
1575 Updated to make use of new functions.
1578 * src/utils/hpftodit/hpuni.cpp: New file.
1580 * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
1583 2003-12-25 Werner LEMBERG <wl@gnu.org>
1585 * src/include/nonposix.h (read) [_MSC_VER]: Define.
1587 2003-12-24 Werner LEMBERG <wl@gnu.org>
1589 * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
1590 by Michail Vidiassov <master@iaas.msu.ru>.
1592 2003-12-20 Werner LEMBERG <wl@gnu.org>
1594 * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1596 Add missing latin-2 glyphs.
1597 * font/devutf8/R.proto: Add missing latin-2 glyphs.
1599 * tmac/troffrc: Load `composite.tmac' earlier.
1601 * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
1602 u00{53,73}_0327, and u0049_0307.
1603 * tmac/X.tmac: Add u00{47,67}_0306.
1604 * tmac/tty-char.tmac: Use composite glyph names for readability.
1608 * src/include/unicode.h: Remove `extern' keywords.
1610 2003-12-20 Nilgün Belma Bugüner <nilgun@superonline.com>
1612 * tmac/latin5.tmac: New file.
1614 2003-12-19 Werner LEMBERG <wl@gnu.org>
1616 Add some glyphs needed for Turkish.
1618 * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1621 * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
1622 * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
1623 u00{53,73}_0327, and u0049_0307.
1625 2003-12-18 Werner LEMBERG <wl@gnu.org>
1627 * src/devices/grops/ps.cc (ps_output::put_float): Revert change
1629 Remove trailing zeros.
1631 2003-12-17 Werner LEMBERG <wl@gnu.org>
1633 Make \? transparent to end-of-sentence recognition.
1635 * src/roff/troff/input.cc (non_interpreted_node): Add
1636 `ends_sentence' member function.
1638 2003-12-16 Werner LEMBERG <wl@gnu.org>
1640 * doc/groff.texinfo: Document `dt' request correctly.
1641 Other minor typographical improvements.
1643 2003-12-10 Michail Vidiassov <master@iaas.msu.ru>
1645 * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
1647 2003-12-10 Richard Stallman <rms@gnu.org>
1649 * LICENSE: Better wording.
1651 2003-12-09 Werner LEMBERG <wl@gnu.org>
1653 * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
1654 * configure, NEWS: Updated.
1656 2003-12-08 Werner LEMBERG <wl@gnu.org>
1658 * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
1660 2003-12-07 Bernd Warken <bwarken@mayn.de>
1664 2003-12-07 Werner LEMBERG <wl@gnu.org>
1666 * INSTALL: Improved.
1668 2003-12-05 Keith Marshall <keith.d.marshall@ntlworld.com>
1670 Use path separator character of target platform for compiled-in
1673 * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
1674 * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
1675 * configure: Regenerated.
1676 * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
1678 2003-12-05 Werner LEMBERG <wl@gnu.org>
1680 * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
1681 Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
1683 2003-12-04 Bernd Warken <bwarken@mayn.de>
1685 * LICENSE: New file.
1687 2003-12-03 Werner LEMBERG <wl@gnu.org>
1689 * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
1690 ligatures present in AFM files since groff currently only
1691 understands some standard ligatures and nothing else.
1693 2003-12-03 Jeff Conrad <jeff_conrad@msn.com>
1695 * src/roff/groff/groff.cpp (main): Don't run the spooler if
1698 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
1701 Don't use Unix wait flags.
1703 2003-12-02 Werner LEMBERG <wl@gnu.org>
1705 * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
1706 src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
1707 src/roff/troff/uniuni.cpp: Moved to...
1708 * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
1709 src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
1710 src/libs/libgroff/uniuni.cpp: Here.
1712 * src/include/Makefile.sub.old (HDRS),
1713 src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
1714 src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
1716 2003-12-01 Keith Marshall <keith.d.marshall@ntlworld.com>
1718 * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
1722 2003-12-01 Werner LEMBERG <wl@gnu.org>
1724 * groff.texinfo: Document special behaviour of `.vs 0'.
1725 Improve documentation of `cflags' request.
1728 2003-11-29 Werner LEMBERG <wl@gnu.org>
1730 * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
1731 * font/devlj4/CORONET: Regenerated.
1733 2003-11-24 Werner LEMBERG <wl@gnu.org>
1735 * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
1736 if processing hyphenation patterns in traditional mode.
1737 Improve error messages.
1739 2003-11-20 Werner LEMBERG <wl@gnu.org>
1741 * src/roff/troff/node.cpp (troff_output_file::put_char_width,
1742 troff_output_file::put_char): Fix type of local variable `c'.
1744 2003-11-19 Werner LEMBERG <wl@gnu.org>
1746 * src/roff/groff/pipeline.c (P): Removed. Updated all function
1748 (i_to_a): Removed. libgroff already provides this function.
1749 (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
1751 2003-11-18 Keith Marshall <keith.d.marshall@ntlworld.com>
1753 * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
1756 2003-11-17 Werner LEMBERG <wl@gnu.org>
1758 * COPYING: Use correct version.
1760 2003-11-11 Werner LEMBERG <wl@gnu.org>
1762 LynxOS 4.0.0 doesn't declare vfprintf.
1764 * configure.ac: Check for vfprintf.
1765 * configure: Regenerated.
1766 * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
1767 * src/include/config.hin: Regenerated.
1769 2003-11-10 Werner LEMBERG <wl@gnu.org>
1771 LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
1773 * configure.ac: Check for vsnprintf.
1774 * configure: Regenerated.
1775 * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
1777 * src/include/config.hin: Regenerated.
1779 2003-11-09 Werner LEMBERG <wl@gnu.org>
1781 * aclocal.m4: Updated syntax to autoconf 2.59.
1782 (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
1783 Don't check for gsos2.
1784 (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides
1785 working abs_top_srcdir and abs_top_builddir.
1787 * configure.ac: Updated syntax to autoconf 2.59.
1788 Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
1789 Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
1790 * configure: Regenerated.
1792 * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
1793 s/@groff_top_builddir@/@abs_top_builddir@/.
1795 * src/roff/groff/pipeline.c (xstrsignal):
1796 s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
1798 2003-11-07 Werner LEMBERG <wl@gnu.org>
1800 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
1801 make start angle smaller than end angle to circumvent a bug in tpic
1802 handling of some versions of dvipdfm (and dvipdfmx).
1804 2003-10-30 Werner LEMBERG <wl@gnu.org>
1806 * src/devices/grops/grops.man: Improve section on creating EPS.
1808 2003-10-29 Werner LEMBERG <wl@gnu.org>
1810 * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
1813 2003-10-28 Werner LEMBERG <wl@gnu.org>
1815 * doc/groff.texinfo: Fix documentation of `.if'.
1817 2003-10-27 Michail Vidiassov <master@iaas.msu.ru>
1819 * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
1820 the form `uniXXXX' also.
1822 2003-10-27 Werner LEMBERG <wl@gnu.org>
1824 * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
1825 contrib/pic2graph/pic2graph.sh: Implement secure management of
1827 Pass `-P-pletter' to groff to avoid data outside of the converted
1828 area -- some versions of `convert' (for example 5.3.8) don't check
1829 the bounding box of the image but always use a fixed image size
1830 (letter paper format).
1831 * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
1832 contrib/pic2graph/pic2graph.man: Updated.
1834 * src/roff/groff/groff.man: Document $TMP and $TEMP.
1836 2003-10-26 Werner LEMBERG <wl@gnu.org>
1838 * src/preproc/pic/troff.cpp (troff_output::simple_circle,
1839 troff_output::simple_ellipse, troff_output::simple_arc,
1840 troff_output::simple_line, troff_output::simple_spline,
1841 troff_output::simple_polygon): Insert a space before arguments.
1842 (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
1843 latter doesn't produce a node, so the following `.sp -1' would do
1845 Don't emit `.sp -1' after \M. This also doesn't produce a token
1846 (and we don't have to care about compatibility mode).
1847 (troff_output::set_color, troff_output::reset_color): Don't emit
1848 `.sp -1' after \M and \m.
1850 * src/roff/troff/input.cpp (old_have_input): New global variable.
1851 (input_stack::get): Handle `old_have_input'.
1852 (process_input_stack) <token::TOKEN_NEWLINE>: Call
1853 `trapping_blank_line' depending on `old_have_input', not
1856 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
1858 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
1859 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
1860 default directory names for temporary files.
1861 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
1863 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
1864 [__MSDOS__] (run_pipeline): Honour environment variables.
1865 Don't use `tmpnam' but `tempnam' to work around messy
1868 * README.MinGW: New file.
1870 2003-10-16 Werner LEMBERG <wl@gnu.org>
1872 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
1873 `(*t)->next' without testing validity of `*t'.
1874 (usage): Make it more readable.
1876 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
1878 Make html device run under both MS-DOS and Win32.
1880 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
1881 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
1882 spawn or fork+exec has to be used, and whether parent must sleep
1883 until the child process terminates. Used in
1884 `char_buffer::run_output_filter'.
1885 (copyofstdoutfd): Removed.
1886 (char_buffer): Replace `write_file_html' and `write_file_troff'
1887 member functions with `emit_troff_output' and `run_output_filter'.
1888 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
1890 (replaceFd): Replaced with...
1891 (set_redirection): New auxiliary function.
1892 (waitForChild): Replaced with...
1893 (save_and_redirect): New auxiliary function for.
1895 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
1898 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
1900 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
1901 (GROFF_LIBC): New function.
1902 * configure.ac: Call GROFF_LIBC.
1904 * configure: Regenerated.
1906 * src/include/lib.h: Handle __MINGW32__.
1907 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
1908 Add macro for `pipe'.
1911 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
1914 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
1917 2003-10-13 Werner LEMBERG <wl@gnu.org>
1919 Finally fix change 2003-08-26, based on ideas from Chuck Silvers
1922 * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
1925 2003-10-12 Werner LEMBERG <wl@gnu.org>
1927 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
1928 src/roff/troff/input.cc (usage): Updated.
1930 * NEWS, doc/groff.texinfo: Updated.
1932 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
1934 * src/libs/libgroff/searchpath.cpp
1935 (search_path::open_file_cautious): New function which also handles
1936 `-' as stdin and stdout depending on the access mode.
1937 * src/include/searchpath.h (search_path): Updated.
1939 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
1940 * src/devices/grops/ps.h: Include `searchpath.h'.
1941 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1942 Open resource file with `include_search_path.open_file_cautious'.
1943 * src/devices/grops/grops.man: Document new `-I' switch.
1945 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
1946 (main), src/devices/grolj4/lj4.cpp (main),
1947 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
1949 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
1951 (include_search_path): New global variable.
1952 (include_path_append): Removed.
1953 (main): Use `include_search_path.command_line_dir' to handle `-I'.
1954 (do_file): Simplify, using new
1955 `include_search_path.open_file_cautious'.
1957 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
1959 (main): Pass arguments to `-I' to both troff and devices.
1960 Improve handling of `-V'.
1961 * src/roff/groff/groff.man: Document changes to -I and -V.
1963 * src/roff/troff/input.cpp (include_search_path): New global
1965 (next_file, source, ps_bbox_request, transparent_file,
1966 process_input_file): Use new
1967 `include_search_path.open_file_cautious'.
1968 (main) Handle `-I' switch.
1969 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
1970 Use new `include_search_path.open_file_cautious'.
1971 * src/roff/troff/node.h: New extern symbol `include_search_path'.
1972 * src/roff/troff/troff.man: Document new `-I' switch.
1974 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
1976 Support multiple calls of .Lb in LIBRARY section.
1978 * tmac/doc-common (doc-in-library-section): New register.
1979 (doc-section-library): New string.
1980 (Sh): Set `doc-in-library-section'.
1982 * tmac/doc-syms (Lb): Insert breaks before and after arguments
1983 if in LIBRARY section.
1984 * tmac/doc.tmac (doc-save-global-vars): Updated.
1985 * NEWS, tmac/groff_mdoc.man: Updated.
1987 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
1989 * tmac/doc-common (doc-default-operating-system): New variable.
1992 2003-09-08 Werner LEMBERG <wl@gnu.org>
1994 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
1996 2003-08-31 Werner LEMBERG <wl@gnu.org>
1998 * contrib/mom/Makefile.sub: Fix last change to make it really work.
1999 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
2000 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
2001 $(DEVFILES) are not empty.
2002 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
2004 2003-08-26 Chuck Silvers <chuq@chuq.com>
2006 * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
2007 with parallel runs of `make'.
2009 2003-08-23 Stephen Gildea <http://www.gildea.com/stephen>
2011 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
2012 insert SORT_SEP. With certain combinations of sort specifications,
2013 refer sorted entries in the wrong order. In particular, entries
2014 with a missing field should be be sorted before all entries that
2015 have that field, before refer looks to the next field.
2017 2003-08-23 Werner LEMBERG <wl@gnu.org>
2019 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
2020 g++ linker is used. Reported by Mark J. Reed
2021 <mark.reed@turner.com>.
2023 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
2025 Add key character `x' to tbl which makes tbl call a user-defined
2026 macro on a table cell.
2028 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
2029 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
2030 `set_modifier' after printing the compatibility request.
2031 (set_modifier): Print call to `m->macro' if not empty.
2032 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
2034 (process_format): Implement cases `x' and `X'.
2035 * src/preproc/tbl/tbl.man, NEWS: Updated.
2037 2003-08-15 Werner LEMBERG <wl@gnu.org>
2039 * doc/groff.texinfo: Minor fixes.
2041 2003-08-09 Werner LEMBERG <wl@gnu.org>
2043 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
2045 2003-08-07 Werner LEMBERG <wl@gnu.org>
2047 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
2048 argument list to nothing if there is no file to match. Use `ls' as
2049 a protection, similar to autoconf.
2051 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
2052 empty argument lists.
2054 * doc/groff.texinfo: Improve documentation how vertical spacing
2055 and line breaks interact.
2058 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
2060 2003-08-03 Werner LEMBERG <wl@gnu.org>
2062 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
2063 EPS (using eps2eps or similar programs to compute the bounding box).
2065 2003-07-24 Werner LEMBERG <wl@gnu.org>
2067 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
2068 * doc/texinfo.tex: Updated from texinfo 4.6.
2069 * README.CVS: From now on we need texinfo 4.6.
2071 2003-07-23 Werner LEMBERG <wl@gnu.org>
2073 Add requests `dei1' and `ami1' for completeness.
2075 * src/roff/troff/input.cc (calling_mode): Remove
2076 CALLING_DISABLE_COMP.
2077 (comp_mode): New enumeration.
2078 (do_define_string, define_string, define_nocomp_string,
2079 append_string, append_nocomp_string): Updated.
2080 (do_define_macro): Add third parameter.
2081 (define_macro, define_nocomp_macro, define_indirect_macro,
2082 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
2083 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
2086 (init_input_requests): Add `dei1' and `ami1'.
2088 * tmac/trace.tmac: Handle de1 and am1.
2089 (de): Improve tracing message.
2090 (am): Add missing `do'.
2093 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2094 Document new requests.
2096 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
2098 Add option -G to .MPIMG to insert a gap between text and the image.
2100 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
2101 www-finish-left-ll): Updated.
2102 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
2103 (MPIMG): Make option -L and -R optional.
2104 Implement option -G.
2106 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
2108 * src/devices/grohtml/post-html.cpp
2109 (html_printer::do_file_components): Don't use `stdout' as lvalue
2110 since it can be a macro.
2112 2003-07-22 Werner LEMBERG <wl@gnu.org>
2114 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
2115 the corresponding test in aclocal.m4.
2117 2003-07-21 Werner LEMBERG <wl@gnu.org>
2119 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
2120 names but RGB values directly. Otherwise pnmtopng depends on
2121 an external file `rgb.txt' which maps colour names to values.
2123 2003-07-20 Werner LEMBERG <wl@gnu.org>
2125 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
2126 * configure, src/include/config.hin: Regenerated.
2128 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
2130 2003-07-19 Werner LEMBERG <wl@gnu.org>
2132 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
2134 2003-07-18 Werner LEMBERG <wl@gnu.org>
2136 * *.man: Switch to non-compatibility mode temporarily if GNU
2137 syntax extensions are used in the particular man page.
2139 * PROBLEMS: Add solutions for SGR problems.
2141 2003-07-17 Werner LEMBERG <wl@gnu.org>
2143 Don't ignore grotty's command line options if \X'tty: sgr ...' is
2144 used to change the drawing scheme.
2146 * src/devives/grotty/tty.cpp (bold_flag_option,
2147 underline_flag_option, italic_flag_option, reverse_flag_option,
2148 bold_underline_mode_option): New global variables.
2149 (update_options): New function.
2150 (tty_printer::special): Call update_options.
2151 (main): Don't set xxx_flag but xxx_flag_option, then call
2154 2003-07-14 Werner LEMBERG <wl@gnu.org>
2156 Make grotty emit proper Unicode box drawing characters for -Tutf8.
2158 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
2160 (hline_char, vline_char): New global variables.
2161 (tty_printer::tty_printer): Initialize them.
2162 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
2163 horizontal and vertical lines.
2164 (crossings): New global array.
2165 (tty_printer::end_page): Use it to determine the proper crossing
2166 character for -Tutf8.
2168 2003-07-12 Werner LEMBERG <wl@gnu.org>
2170 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
2171 (HTMLDOCFILES): Revert to `pic.html'.
2172 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
2174 2003-07-11 Werner LEMBERG <wl@gnu.org>
2176 * doc/pic.ms: Improve documentation of absolute coordinates.
2177 Document absolute positioning of pictures.
2179 * NEWS: Add new pic capability.
2181 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
2183 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
2186 2003-07-07 Werner LEMBERG <wl@gnu.org>
2188 Implement support for dashed and dotted ellipses in pic. Based on
2189 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
2191 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
2192 common_output::dashed_ellipse, common_output::dotted_ellipse): New
2193 functions. Ellipse arcs are approximated with circle arcs.
2194 * src/preproc/pic/common.h (common_output): Updated.
2195 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
2197 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
2199 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
2201 2003-07-06 Werner LEMBERG <wl@gnu.org>
2203 Make grotty work on platforms which have unsigned char as the
2204 default for char. Based on a patch by Thomas Klausner
2207 * src/devices/grotty/tty.cpp (schar): New typedef.
2208 Updated calls to declare_ptable and implement_ptable.
2209 (glyph): Use schar for back_color_idx and fore_color_idx.
2210 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
2211 (tty_printer::tty_color, tty_printer::tty_printer,
2212 tty_printer::color_to_idx, tty_printer::put_color): Updated.
2214 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
2216 * src/roff/nroff/nroff.sh: Add option -d for completeness.
2217 * src/roff/nroff/nroff.man: Updated.
2219 2003-07-05 Werner LEMBERG <wl@gnu.org>
2221 * NEWS, tmac/groff_www.man: Updated.
2222 * doc/Makefile.sub: Updated.
2224 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
2226 Implement support for multiple HTML output files.
2228 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
2229 -j command line option.
2231 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
2233 (file): New fields `new_output_file', `require_links',
2235 (file::file): Updated.
2236 (files::set_file_name, files::set_links_required,
2237 files::are_links_required, files::is_new_output_file,
2238 files::file_name, files::next_file_name): New functions.
2239 (header_desc): New fields `no_of_level_one_headings',
2241 (header_desc::header_desc): Updated.
2242 (header_desc::write_headings): Handle multiple files.
2243 (html_printer::write_header): Save file name in which header occurs.
2244 (html_printer::determine_header_level): Possibly split files on
2246 (html_printer::do_links, html_printer::troff_tag): Updated.
2247 (html_printer::insert_split_file, html_printer::do_job_name,
2248 html_printer::emit_link, html_printer::write_navigation,
2249 html_printer::do_file_components): New functions.
2250 (html_printer::~html_printer): Handle multiple files.
2251 (main): Handle command line option `-j'.
2253 * src/devices/grohtml/grohtml.man: Updated.
2255 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
2258 * tmac/www.tmac (JOBNAME): New macro.
2259 * tmac/s.tmac (SH-NO-TAG): New macro.
2260 (@SH): Call SH-NO-TAG.
2263 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
2265 * tmac/groff_mdoc.man: Improve documentation of punctuation
2268 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
2270 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
2272 2003-07-03 Werner LEMBERG <wl@gnu.org>
2274 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
2276 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
2278 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
2279 after `/*' and `*/'.
2281 (Fn, Fo): Reduce indentation in synopsis.
2283 * tmac/doc-common (doc-check-depth): New macro.
2284 (doc-end-macro, Sh, Ss): Use it.
2285 (Cd): Fix behaviour in synopsis.
2286 (In): Make it parsed and callable.
2287 If not in the synopsis, represent the C header file enclosed in
2289 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
2290 Use minus, not hyphen.
2292 * tmc/groff_mdoc.man: Updated.
2294 2003-07-01 Werner LEMBERG <wl@gnu.org>
2296 Integrated grap2graph, contributed by Eric S. Raymond.
2298 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
2300 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
2301 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
2303 2003-07-01 Colin Watson <cjwatson@debian.org>
2305 * src/xditview/*.c: Add prototypes, fix return types, add includes.
2306 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
2308 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
2310 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
2312 2003-06-31 Werner LEMBERG <wl@gnu.org>
2314 * doc/Makefile.sub (CLEANADD): Remove all files created by
2315 running `make groff.{pdf,dvi}'.
2317 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
2320 2003-06-30 Werner LEMBERG <wl@gnu.org>
2322 * Makefile.in (SHELL): Define as @SHELL@.
2323 (mkinstalldirs): Use $(SHELL).
2324 (MDEFINES): Add $(SHELL).
2325 * Makefile.comm (SHELL): Removed.
2327 2003-06-29 Werner LEMBERG <wl@gnu.org>
2329 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
2330 The X11 documentation files use them.
2331 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
2333 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
2335 * tmac/e.tmac (@C): Handle .ad also.
2337 2003-06-12 Werner LEMBERG <wl@gnu.org>
2339 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
2341 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
2342 Assign `n' even here. It is possible to construct a node
2343 immediately following an escape character:
2351 2003-06-10 Werner LEMBERG <wl@gnu.org>
2353 * README.WIN32: Removed.
2354 * MANIFEST: Updated.
2356 2003-06-07 Werner LEMBERG <wl@gnu.org>
2358 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
2360 2003-06-05 Werner LEMBERG <wl@gnu.org>
2362 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
2363 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
2365 2003-06-03 Werner LEMBERG <wl@gnu.org>
2367 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
2368 is done by the calling function.
2370 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
2372 * tmac/X.tmac: Fix definition of `em'.
2374 2003-05-22 Werner LEMBERG <wl@gnu.org>
2376 * src/roff/troff/input.cc (return_macro_request): Fix detection of
2379 2003-05-18 Werner LEMBERG <wl@gnu.org>
2381 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
2382 to make items work which consist only of a tag.
2384 2003-05-17 Werner LEMBERG <wl@gnu.org>
2386 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
2387 aren't stretched in a tag (this can fail with unformatted boxes).
2388 Instead, insert a break and go back one line.
2390 2003-05-16 Werner LEMBERG <wl@gnu.org>
2392 * src/roff/troff/input.cc (return_macro_request): If called with
2393 argument pop macro twice. We need this to trace `return'.
2395 * tmac/trace.tmac: Handle `return'.
2398 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2401 2003-05-15 Larry Kollar <kollar@alltel.net>
2403 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
2404 registers `FPS', `FVS', and `FPD'.
2406 2003-05-15 Werner LEMBERG <wl@gnu.org>
2408 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
2411 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
2413 * tmac/groff_mdoc.man: Slight improvements.
2415 2003-05-03 Werner LEMBERG <wl@gnu.org>
2417 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
2418 `doc-header-space' after header line if register `cR' is set.
2420 2003-05-02 Werner LEMBERG <wl@gnu.org>
2424 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
2426 * tmac/doc-common (Nd): Use \[em].
2428 2003-05-01 Werner LEMBERG <wl@gnu.org>
2430 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
2431 doc-footer-space): Initialize to 0.5i.
2432 (doc-setup-page-layout): Don't set doc-header-space and
2435 2003-04-30 Werner LEMBERG <wl@gnu.org>
2437 * REVISION: Set to 1.
2439 * doc/pic.ms: Document possible problems with `figname'.
2441 2003-04-29 Werner LEMBERG <wl@gnu.org>
2443 Version 1.19 released
2444 =====================
2446 * VERSION: Set to 1.19.
2447 * REVISION: Set to 0.
2448 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
2450 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2451 Define charset as `US-ASCII' in html output.
2453 * tmac/www.tmac (ULE): Add missing scaling indicator.
2455 * win32-diffs: Removed.
2457 2003-04-28 Werner LEMBERG <wl@gnu.org>
2459 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
2461 Document how to insert discardable whitespace with `.ss'.
2463 2003-04-27 Werner LEMBERG <wl@gnu.org>
2465 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
2466 work with plain TeX also.
2468 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
2470 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
2472 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2475 2003-04-24 Werner LEMBERG <wl@gnu.org>
2477 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
2478 vbox with positive height and zero depth if in TeX mode.
2480 * NEWS: Document glyph name changes for grodvi and grolj4.
2482 2003-04-23 Werner LEMBERG <wl@gnu.org>
2484 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
2485 * doc/pic.ms: Fixed.
2487 2003-04-21 Werner LEMBERG <wl@gnu.org>
2489 HP-UX 10.20 has `snprintf' but it isn't declared.
2491 * configure.ac: Add declaration test for snprintf.
2492 * configure: Regenerated.
2493 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
2494 * src/include/config.hin: Regenerated.
2496 2003-04-19 Werner LEMBERG <wl@gnu.org>
2498 Add keyword `figname' to pic, specifying the name of the picture
2499 box in TeX mode. Based on a patch from William J Poser
2500 <wjposer@unagi.cis.upenn.edu>.
2502 * src/preproc/pic/pic.y: New token `FIGNAME'.
2503 (macro_name): New rule of type <str>.
2504 (placeless_element): Handle `FIGNAME'.
2505 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
2506 * src/preproc/pic/main.cpp (graphname): New global variable.
2507 (do_picture): Initialize `graphname'.
2508 * src/preproc/pic/pic.h: Updated.
2509 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
2512 (tex_output::text): Beautify output.
2513 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
2514 `shaded' and `outlined' unconditionally.
2515 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
2518 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
2519 greater is necessary.
2521 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
2523 Add option -r to soelim to avoid emission of `.lf' lines.
2524 Add option -t to produces TeX comment lines instead of `.lf' lines.
2526 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
2529 (main): Handle `-r' and `-t'.
2530 (set_location): Handle `raw_flag' and `tex_flag'.
2531 * src/preproc/soelim/soelim.man, NEWS: Updated.
2533 2003-04-17 Werner LEMBERG <wl@gnu.org>
2535 * tmac/hyphenex.sh: Replaced with...
2536 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
2539 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
2540 if --quiet is used for the configure script.
2541 * configure: Regenerated.
2543 2003-04-16 Werner LEMBERG <wl@gnu.org>
2545 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
2546 Add `const' to second argument.
2547 (html_printer::add_table_end): Add `const' to argument.
2548 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
2549 `const' to arguments.
2550 * src/devices/grohtml/html-text.h: Updated.
2552 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
2553 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
2556 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
2557 cast for integer constant.
2559 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
2560 (writeNbytes): Add `const' to first argument.
2561 (writeString): Add `const' to argument.
2562 (char_buffer::can_see): Add `const' to third argument.
2563 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
2564 `const' to argument.
2565 * src/preproc/html/pushback.h: Updated.
2567 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
2568 (include_path_append): Add `const' to argument.
2571 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
2573 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
2574 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
2576 (unicode_decompose_init::unicode_decompose_init): Updated.
2577 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
2579 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
2580 * src/roff/troff/input.cc (process_startup_file): Add `const' to
2583 * tmac/hyphenex.sh: Make script more portable by using a here
2586 2003-04-15 Werner LEMBERG <wl@gnu.org>
2588 Renamed all `*.cc' files to `*.cpp'.
2589 Updated all configuration files, makefiles, and documentation.
2591 2003-04-14 Werner LEMBERG <wl@gnu.org>
2593 * tmac/hyphenex.sh: Slight improvements.
2595 2003-04-13 Werner LEMBERG <wl@gnu.org>
2597 * font/devascii/R.proto, font/devcp1037/R.proto,
2598 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
2599 character slots with unnamed glyphs.
2601 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
2602 (an-first): New global variable.
2603 (an-header): Emit vertical space between multiple man pages.
2605 2003-04-11 Werner LEMBERG <wl@gnu.org>
2607 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
2610 2003-04-10 Werner LEMBERG <wl@gnu.org>
2612 * PROBLEMS: Revised.
2614 2003-04-10 Bernd Warken <bwarken@mayn.de>
2616 * doc/webpage.ms: Improved.
2618 2003-04-09 Werner LEMBERG <wl@gnu.org>
2620 Add register \n[.height] which returns the value of \H.
2621 Add register \n[.slant] which returns the value of \S.
2623 * src/roff/troff/env.cc (init_env_requests): Implement.
2624 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2627 2003-04-08 Werner LEMBERG <wl@gnu.org>
2629 * tmac/html.tmac: Move some of the data into html-end.tmac.
2630 Remove most of the character translations for eqn since html fonts
2631 now cover those characters.
2633 * tmac/html-end.tmac: New file.
2634 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
2635 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
2636 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
2638 2003-04-07 Werner LEMBERG <wl@gnu.org>
2640 * man/groff_out.man: Document negative values of `N' if -Thtml is
2643 2003-04-06 Werner LEMBERG <wl@gnu.org>
2645 * Makefile.comm (depend.temp): Check location of YTABC.
2647 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2649 * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
2651 (groff_bin_path): Rename to GROFF_BIN_PATH.
2652 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2653 * doc/Makefile.in (TROFFBIN): New variable for troff
2655 (GROFFBIN): New variable for groff binary path.
2656 (groff_bin_path): Rename to GROFF_BIN_PATH.
2657 (TROFF): Use TROFFBIN.
2658 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2659 * doc/Makefile.sub (GROFFBIN): New variable for groff
2661 (groff_bin_path): Rename to GROFF_BIN_PATH.
2662 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2664 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
2665 with INSTALL_SCRIPT.
2666 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
2667 * Makefile.dev (all): Depend on DEVSCRIPTS.
2668 (install_dev): Likewise.
2669 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
2671 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
2672 (DEVGENSCRIPTS): New variable to hold generated scripts.
2674 2003-04-05 Werner LEMBERG <wl@gnu.org>
2676 * src/libs/libdriver/input.cc (IntArray::operator[],
2677 IntArray::get_data): Remove meaningless `const' in return value.
2679 * README.CVS: New file.
2681 2003-04-04 Werner LEMBERG <wl@gnu.org>
2683 Check for stdint.h in C++, not in C.
2685 * aclocal.m4 (GROFF_STDINT_H): New function,
2686 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
2688 * configure, src/include/config.hin: Regenerated.
2689 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
2692 Fix handling of in grohtml. To do this, troff emits `N'
2693 with a negative value, representing the width of the unbreakable
2694 space (only for -Thtml). grohtml then converts this back to
2695 and uses the value of N as its width.
2697 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2698 unbreakable_space_node::tprint): Emit `N-<width>'.
2699 * src/include/printer.h (printer::set_numbered_char): Make it
2701 Make members `font_table' and `nfonts' protected instead of private.
2702 * src/devices/grohtml/post-html.cc
2703 (html_printer::set_numbered_char): New member function.
2706 * src/libs/libgroff/maxfilename.cc:
2707 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
2709 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
2712 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
2714 * man/roff.man: Small fixes.
2716 2003-04-03 Werner LEMBERG <wl@gnu.org>
2718 Make groff independent from locale's numeric settings.
2720 * configure.ac: Check for `setlocale'.
2721 * configure, src/include/config.hin: Regenerated.
2723 * src/include/lib.h: Handle HAVE_SETLOCALE.
2725 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
2726 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
2727 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
2730 * doc/groff.texinfo: Change dir category to `Typesetting'.
2731 (Man font macros): Mention that there is no space between arguments
2734 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
2735 (*printer::change_color, *printer::change_fill_color): Add missing
2738 2003-04-02 Werner LEMBERG <wl@gnu.org>
2740 * src/devices/grohtml/html-table.cc (html_table::emit_col,
2741 html_table::is_gap): Compute table widths after converting border
2742 positions to avoid rounding errors.
2744 2003-04-01 Werner LEMBERG <wl@gnu.org>
2746 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
2747 `space_emitted' properly.
2749 2003-03-31 Werner LEMBERG <wl@gnu.org>
2751 * src/devices/grohtml/html-table.cc: Fix column width calculation.
2752 (html_table::set_linelength): Don't add 1.
2753 (html_table::add_indent): Don't subtract 1.
2755 * tmac/html.tmac: Set default page offset to zero.
2757 2003-03-30 Werner LEMBERG <wl@gnu.org>
2759 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
2761 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2762 unbreakable_space_node::tprint): New functions.
2763 (troff_output_file): Make space_char_hmotion_mode::tprint and
2764 unbreakable_space_node::tprint to friends.
2765 * src/roff/troff/node.h: Updated.
2767 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
2768 in the HTML standard).
2770 2003-03-29 Werner LEMBERG <wl@gnu.org>
2772 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
2773 Otherwise, the following code
2782 produces `x a' instead of `xa'. This is a temporary fix, disabling
2783 font changes in diversions for -Thtml.
2785 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
2787 (an-do-tag-html): Merge with ...
2788 (an-do-tag): This macro.
2789 Change code slightly to circumvent grohtml bug.
2790 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
2792 * src/devices/grohtml/html-table.cc (html_table::emit_col,
2793 html_table::is_gap): Round `width' properly.
2795 * tmac/html.tmac: Provide some default layout parameters for
2798 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
2801 2003-03-28 Werner LEMBERG <wl@gnu.org>
2803 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
2805 2003-03-27 Werner LEMBERG <wl@gnu.org>
2807 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
2810 2003-03-20 Werner LEMBERG <wl@gnu.org>
2812 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
2814 * doc/groff.texinfo: Updated.
2816 2003-03-19 Werner LEMBERG <wl@gnu.org>
2818 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
2819 TOKEN_END_TRAP>: Reset `have_input'.
2821 2003-03-18 Werner LEMBERG <wl@gnu.org>
2823 * src/roff/groff/groff.man: Mention groff_trace man page.
2825 2003-03-16 Werner LEMBERG <wl@gnu.org>
2827 * Makefile.in (LIBEXT): New variable to indicate the file extension
2828 of library files. Computed heuristically from $(OBJEXT).
2829 (MDEFINES): Add $(LIBEXT).
2830 * Makefile.lib, Makefile.comm: Use it.
2832 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
2833 overlong lines into smaller chunks.
2834 (get_binary): New function.
2836 * src/utils/pfbtops/pfbtops.man: Updated.
2838 2003-03-15 Colin Watson <cjwatson@debian.org>
2840 * src/roff/groff/groff.man: Minor syntax fix.
2842 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
2844 * src/devices/grops/ps.cc (ps_printer::media_set,
2845 ps_printer::~ps_printer): Handle zero paper width and length.
2847 2003-03-13 Werner LEMBERG <wl@gnu.org>
2849 Add options -p and -l to grodvi.
2851 * src/devices/grodvi/dvi.cc: Include paper.h.
2852 (landscape_flag, user_paper_length, user_paper_width): New global
2854 (dvi_printer::begin_page): Emit `papersize' special.
2855 Set color after initialization of `cur_h' and `cur_v'.
2856 (main): Add options `-l' and `-p'.
2857 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
2858 * src/devices/grodvi/grodvi.man, NEWS: Updated.
2860 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
2862 2003-03-12 Werner LEMBERG <wl@gnu.org>
2864 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
2865 * man/groff_tmac.man: This man page.
2866 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
2869 * tmac/X.tmac: Don't load pspic.tmac.
2871 2003-03-11 Werner LEMBERG <wl@gnu.org>
2873 Make variable `pr' local to libdriver/input.cc. Based on a patch
2874 by Bernd Warken <bwarken@mayn.de>.
2876 * src/include/driver.h (pr): Removed.
2878 * src/libs/libdriver/input.cc (pr): New global variable.
2879 (do_file): Deallocate `pr'.
2880 * src/libs/libdriver/printer.cc (pr): Removed.
2882 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
2883 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
2884 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
2885 (main): Don't delete `pr'.
2887 2003-03-10 Werner LEMBERG <wl@gnu.org>
2889 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
2890 * tmac/papersize.tmac: New file.
2891 * tmac/troffrc: Include `papersize.tmac'.
2892 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
2893 * tmac/an-old.tmac: Set LT to LL by default.
2895 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
2896 doc/groff.texinfo: Updated.
2898 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
2899 bug which caused all odd iso papers to have wrong dimensions.
2901 * src/devices/grops/ps.cc (user_paper_width): New global variable.
2902 (main) <'p'>: Set `user_paper_width' also.
2903 (ps_printer::media_width, ps_printer::media_height): Use values
2904 given with option `-p'.
2906 2003-03-09 Werner LEMBERG <wl@gnu.org>
2908 * src/include/nonposix.h: Provide default for SET_BINARY.
2910 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
2911 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
2914 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
2915 (main): Treat \r\n as \n.
2917 2003-03-08 Werner LEMBERG <wl@gnu.org>
2919 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
2920 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
2922 2003-03-07 Werner LEMBERG <wl@gnu.org>
2924 Added support to access more than 256 glyphs in Type 1 fonts.
2926 * src/devices/grops/ps.cc (subencoding): New structure.
2927 (style): Add `sub' field.
2929 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
2930 Add `set_subencoding', `get_subfont' and `encode_subfont' member
2933 (ps_printer::set_char): Use `set_subencoding'.
2934 (make_subencoding_name): New function.
2935 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
2936 (ps_printer::~ps_printer): Emit subencoding definitions.
2938 * src/devices/grops/psrm.cc (valid_input_table): New array to
2939 properly support EBCDIC.
2940 (white_space): Add `\f'.
2941 (ps_get_line): Change first argument to be of type `string &'.
2942 Updated all callers.
2943 This allows to get lines of arbitrary length.
2944 Use `valid_input_table'.
2945 Remove warning about non-conforming PS line length. This seems
2946 not to be of great importance -- for example, dvips don't emit
2948 (PS_LINE_MAX): Removed.
2949 (matches_comment): Change first argument to be of type `string &'.
2951 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
2953 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
2954 %AGL_to_unicode, %default_ligatures): New hash tables.
2955 Read all map entries.
2956 Add unencoded characters.
2957 Check for default ligatures if there are no `L' entries.
2958 Print all kern entries.
2959 Print all characters in charset.
2960 * src/utils/afmtodit/afmtodit.man: Updated.
2962 * font/devps/*: Regerated all fonts.
2964 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
2965 of characters, just use `.trin'. Otherwise the mapping depends
2966 on the font encoding.
2967 * tmac/ps.tmac: Add `fi' and `fl'.
2968 Improve `Fi' and `Fl'.
2969 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
2970 * tmac/Xps.tmac: Fix `em'.
2974 2003-03-04 Werner LEMBERG <wl@gnu.org>
2976 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
2979 2003-03-03 Werner LEMBERG <wl@gnu.org>
2981 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
2983 * font/devps/generate/textmap: Remove entry `similarequal'.
2984 * font/devps/symbolmap: Updated.
2986 2003-03-02 Werner LEMBERG <wl@gnu.org>
2988 * src/libs/libgroff/font.cc (font::load): Fix error message for
2991 * src/devices/grops/grops.man: Improve documentation of the -b
2994 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
2995 `ascii' and `cp1047'.
2997 2003-03-01 Werner LEMBERG <wl@gnu.org>
2999 Document composite glyphs and the `composite' request.
3001 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
3003 2003-02-28 Werner LEMBERG <wl@gnu.org>
3005 * font/devdvi/generate/ec.map: Add some more Unicode entities.
3006 * font/devdvi/*EC: Updated.
3008 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
3009 * tmac/latin1 (latin1-tr): Undo any previous mapping.
3010 * tmac/troffrc: Load `composite.tmac'.
3011 * tmac/Makefile.sub (NORMALFILES): Updated.
3013 * doc/groff.texinfo (Input Encodings): New section.
3016 2003-02-27 Werner LEMBERG <wl@gnu.org>
3018 * doc/texinfo.tex: New version 2003-02-11.06.
3020 * tmac/doc-common (Dt): Don't emit warning for unknown section.
3021 * tmac/groff_mdoc.man: Fix description of `Dt'.
3023 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
3025 * font/devps/prologue.ps: Fix for included Postscript that does
3026 a setpagedevice -- which is now safely ignored.
3030 * src/devices/grops/ps.cc: Now sets the page size in the generated
3031 document. This is done in two ways: Via a %%-comment for gv and
3032 the like, and via a PageSize and setpagedevice for programs that
3033 understands Postscript proper, like ps2pdf.
3035 * src/devices/grops/ps.h: New broken-flag to avoid page size
3036 definition, if required.
3038 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
3040 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
3041 Not really necessary due to the fix in prologue.ps, but cleaner:
3042 Such information does not belong in an .eps file.
3044 * doc/Makefile.sub: See doc/Makefile.in.
3046 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
3048 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
3049 instead of P1 since the latter is broken in some versions of netpbm.
3050 * configure: Updated.
3052 2003-02-26 Larry Kollar <kollar@alltel.net>
3054 Make man pages more customizable.
3056 * tmac/an-old.tmac (FT): New register holding footer distance from
3058 (HF): New string holding the default heading font.
3059 (TH): Handle registers `IN' and `SN' set on the command line.
3061 (PT, BT): New strings to customize header and footer lines.
3062 (an-header, an-footer): Use them.
3064 * tmac/groff_man.man: Document changes.
3066 * doc/groff.texinfo: Document man changes.
3067 Document Ultrix extensions of man.
3069 2003-02-26 Werner LEMBERG <wl@gnu.org>
3071 * src/roff/troff/input.cc (do_width, do_if_request): Reset
3072 `have_input' after changing back to old environment.
3074 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
3075 function up to be defined before first call. This is necessary to
3076 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
3078 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
3079 the default font directory also. Based on a patch from James
3080 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
3081 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
3082 * src/utils/afmtodit/afmtodit.man: Document it.
3086 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
3088 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
3090 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
3091 (GROFF_PNMTOPS_NOSETPAGE): New macro.
3092 * configure.ac: Use it.
3093 * configure: Regenerated.
3094 * Makefile.in: Updated.
3096 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
3097 (CLEANADD): Add www.tmac-sed.
3098 (pnmtops_nosetpage): Define default.
3099 (install_data): Handle www.tmac-sed and substitute
3100 @PNMTOPS_NOSETPAGE@.
3101 (stamp-sed): Add www.tmac.
3102 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
3103 It now breaks URLs at suitable places.
3104 (www:substring_ok): New register set by...
3105 (www:@test_substring): New macro.
3106 (www:error): New alias to www-error.
3107 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
3109 (URL): Use www:url_breaks.
3110 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
3111 (CDS, CDE): New macros.
3113 2003-02-25 Werner LEMBERG <wl@gnu.org>
3115 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
3118 2003-02-24 Werner LEMBERG <wl@gnu.org>
3120 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
3121 can be negative also.
3123 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
3125 (read_char_table): Avoid negative ascenders.
3126 (output_charset): Add cast.
3127 * font/devlj4/*: Regenerated.
3129 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
3132 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
3133 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
3135 * font/devdvi/*: Regenerated.
3137 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
3138 normal width, while the previously used characters (U+2329 and
3139 U+232A) are classified as wide due to canonical equivalence with the
3140 CJK punctuation characters U+3008 and U+3009.
3142 * font/devutf8/R.proto: Updated.
3143 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
3145 * man/groff_char.man: Simplify handling of table traps by
3146 introducing `start block' and `end block' macros.
3147 (Ns, Ne, 2s, 2e, Ds, De): New macros.
3148 (DL): Make it work with Unix troff also.
3149 Fix code values of `la' and `ra'.
3151 * tmac/dvi.tmac: Define `<>' for CW and CWI.
3153 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
3155 * src/devices/grohtml/post-html.cc (element_list::~element_list):
3156 New destructor, fixing a major memory leak.
3158 2003-02-22 Werner LEMBERG <wl@gnu.org>
3160 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
3161 to be in conformance with Unicode 3.0 and newer.
3163 * font/devlj4/generate/text.map: Add `Eu'.
3164 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
3165 * font/devlj4/S: Regenerated.
3167 * man/groff_char.man: Completely rewritten.
3169 * doc/groff.texinfo: Fix description of request and macro arguments.
3171 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
3175 * src/devices/grohtml/html-table.cc (html_table::~html_table):
3176 Deallocate `columns' list.
3177 * src/devices/grohtml/post-html.cc (char_block::~char_block):
3179 (text_glob::text_glob_html, text_glob::text_glob_special,
3180 text_glob::text_glob_line, text_glob::text_glob_auto_image,
3181 text_glob::text_glob_tag): Avoid memory leaks.
3182 (text_glob::remember_table): Free memory before reassigning.
3184 2003-02-19 Werner LEMBERG <wl@gnu.org>
3186 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
3187 alias `hbar'), the Planck constant over two pi.
3189 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
3190 `+e' for position 34.
3191 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
3192 `u2662' and `u2661'.
3193 * font/devdvi/{MI,S}: Regenerated.
3194 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
3195 * font/devlbp/*: Add `hbar' alias.
3196 * font/devlj4/generate/special.map: Ditto.
3197 * font/devlj4/S: Regenerated.
3198 * font/devps/generate/symbolchars: Add `+e'.
3199 * font/devps/generate/textmap: Fix PS name for `-h'.
3201 * font/devps/symbolmap: Regenerated.
3203 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
3205 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
3207 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
3210 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
3212 * tmac/tty-char.tmac: Add `+e'.
3214 2003-02-17 Werner LEMBERG <wl@gnu.org>
3216 Another round trying to really fix problems with `have_input'.
3218 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
3219 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
3221 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
3222 handling if both foreground and background colors are default.
3224 * doc/groff.texinfo (Debugging): Document .lf differences to
3227 2003-02-16 Werner LEMBERG <wl@gnu.org>
3229 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
3230 null-bytes in created string.
3232 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
3233 alias_macro, lookup_request): Improve warning messages.
3235 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
3237 Free `last_image_filename'.
3239 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
3241 (imageList::createPage, imageList::createImage): Use `free', not
3243 (imageItem::~imageItem): Free `imageName'.
3244 (addRegDef): Use `strsave', not `strdup'.
3245 (get_resolution): Free `pathp'.
3247 2003-02-15 Werner LEMBERG <wl@gnu.org>
3249 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
3252 2003-02-14 Werner LEMBERG <wl@gnu.org>
3254 Add memory management for colors to deallocate unnamed colors
3257 * src/include/color.h (color): New members `free_list' and `next'.
3258 New member functions `new' and `delete'.
3260 * src/libs/libgroff/color.cc: Implement it.
3262 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
3263 for array size of new operator.
3265 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
3266 redundant comparison.
3268 * src/roff/troff/input.cc (word_space_node::reread,
3269 hmotion_node::reread): Avoid warning about unused parameter.
3270 (reset_output_registers): Remove redundant parameter.
3271 (define_color): Undo change 2003-02-12.
3273 * src/roff/troff/reg.h: Updated.
3275 * src/roff/troff/node.cc (troff_output_file::really_print_line,
3276 output_file::put_filename, real_output_file::really_put_filename,
3277 ascii_output_file::really_print_line,
3278 break_char_node::get_hyphen_list): Avoid warning about unused
3280 (suppress_node::tprint): Updated.
3282 * configure.ac: Check declaration for rand() and srand().
3283 * configure: Regenerated.
3285 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
3287 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
3290 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
3291 to avoid compiler warnings.
3293 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
3296 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
3298 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
3300 Updated all callers.
3302 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
3304 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
3305 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
3307 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
3308 Parameter is unused.
3309 (html_printer::add_table_end): Define parameter conditionally.
3310 * src/devices/grohtml/output.cc (simple_output::special): Parameter
3313 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
3314 (lbp_printer::set_char): Last parameter is unused.
3316 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
3318 2003-02-13 Werner LEMBERG <wl@gnu.org>
3320 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
3321 Make \D'f ...' move horizontally again for backwards compatibility.
3322 Replace it with \D'Fg ...' where appropriate to avoid dependency
3323 on horizontal resolution.
3325 * src/roff/troff/input.cc (do_get_long_name): New function.
3326 (get_long_name): Call it.
3328 (read_draw_node): Handle `\D'Fx ...' by calling ...
3329 (read_color_draw_node): New function.
3331 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
3333 Pass it to `do_get_long_name' which is used instead of
3336 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
3337 unnecessary value guard.
3338 (parse_D_command) <'f'>: Add horizontal shift.
3340 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
3341 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3342 (FILL_MAX): Removed.
3344 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3347 2003-02-12 Werner LEMBERG <wl@gnu.org>
3349 * src/roff/troff/input.cc (do_name_test, do_expr_test,
3350 do_zero_width): Push `\n' if closing delimiter is missing.
3352 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
3353 <'F'>: Make \F non-transparent at the beginning of line.
3354 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
3355 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
3358 (define_color): Free color in case of reassignment.
3360 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
3361 @DefescListEnd): Use @Var, not @var.
3364 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
3366 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
3367 `shaded' and `outlined' arrays.
3368 (object_spec::object_spec): Initialize `shaded' and `outlined'.
3369 (graphic_object::set_fill_color, graphic_object::set_outline_color):
3371 (closed_object::set_fill_color): Ditto.
3372 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
3374 (troff_output::reset_color): Use a_delete instead of free.
3375 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
3377 2003-02-11 Werner LEMBERG <wl@gnu.org>
3379 * doc/groff.texinfo: Improve documentation of `ad'.
3380 Document that \D'f...' is dependent on the horizontal resolution.
3381 * man/groff_diff.man: Improve documentation of \D'f...'.
3383 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
3384 compensating \h'...' for \D'f ...' since the latter no longer moves
3386 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3388 2003-02-10 Werner LEMBERG <wl@gnu.org>
3390 Improve error messages for `x F' (and `F') commands.
3392 * src/include/error.h: Add declaration for
3393 `current_source_filename'.
3394 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
3395 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
3396 parameter for source file string.
3397 Updated all callers.
3399 * src/libs/libdriver/input.cc: Add `current_source_filename'.
3400 (remember_source_filename): New function.
3401 (parse_x_command <'F'>, do_file <'F'>): Use it.
3403 2003-02-09 Werner LEMBERG <wl@gnu.org>
3405 Make grotty not emit warnings about unknown colors more than
3408 * src/devices/grotty/tty.cc: Include `ptable.h'.
3409 (TTY_MAX_COLORS): Removed.
3410 (DEFAULT_COLOR_IDX): Defined to -1.
3411 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
3412 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
3413 Change `tty_colors' to be a ptable.
3414 First arg of `put_color' is now `char'.
3415 New functions `make_rgb_string' and `tty_color'.
3416 (tty_printer::tty_printer): Use `tty_color'.
3417 (tty_printer::color_to_idx): Return value is now `char'.
3420 * src/include/color.h (color): Add `print_color' member function.
3421 * src/libs/libgroff/color.cc (color::print_color): Implement it.
3423 2003-02-08 Werner LEMBERG <wl@gnu.org>
3427 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
3430 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
3431 assume that value has been allocated with `new[]', thus use
3432 `a_delete' for deallocation.
3434 * src/libs/libdriver/input.cc (get_integer_arg,
3435 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
3438 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
3439 * src/libs/libgroff/nametoindex.cc
3440 (character_indexer::named_char_index): Use `new <type>[1]'.
3442 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
3444 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
3445 (split_text): Use `a_delete'.
3447 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
3450 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
3451 harmless memory leak.
3452 (hyphen_trie::read_patterns_file): Initialize `buf'.
3453 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
3454 Initialize `current_fill_color'and `current_glyph_color'.
3455 * src/roff/troff/glyphuni.cc
3456 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
3457 * src/roff/troff/uniuni.cc
3458 (unicode_decompose_init::unicode_decompose_init): Ditto.
3459 * src/roff/troff/uniglyph.cc
3460 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
3462 2003-01-26 Werner LEMBERG <wl@gnu.org>
3464 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
3465 `access' before calling `unlink'.
3466 (do_file): Handle __EMX__.
3468 * src/include/nonposix.h: Handle __EMX__.
3470 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
3471 (fontpath,tmacpath): Use it.
3473 Sorted alphabetically.
3475 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
3477 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
3480 2003-01-27 Werner LEMBERG <wl@gnu.org>
3482 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
3483 New files, copied from gnulib.
3484 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
3485 * configure.ac: Updated.
3486 * configure: Regenerated.
3488 * src/include/config.hin: Regenerated.
3489 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
3490 Don't define `strcasecmp' as `strcmp'.
3491 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
3492 Dont define `strncasecmp' as `strncmp'.
3494 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
3497 2003-01-26 Werner LEMBERG <wl@gnu.org>
3499 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
3502 2003-01-25 Werner LEMBERG <wl@gnu.org>
3504 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
3506 2003-01-24 Werner LEMBERG <wl@gnu.org>
3508 Add US-english hyphenation exceptions (converted from Barbara
3509 Beeton's hyphenation exception log reports which appear irregularly
3512 * tmac/hyphen.us: Updated to latest version.
3513 * tmac/README: Updated.
3514 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
3515 * tmac/troffrc: Load `hyphenex.us'.
3516 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
3517 * doc/groff.texinfo: Updated.
3519 2003-01-23 Werner LEMBERG <wl@gnu.org>
3521 Improve hyphenation slightly. This is a first step in redesigning
3522 the hyphenation algorithm to make it more flexible (e.g. allowing
3523 kerns and ligatures between the hyphenation character and the
3524 following character -- while not used normally in English, other
3525 languages like German would benefit).
3527 * src/roff/troff/env.cc (environment::hyphenate_line): Use
3528 assertion instead of if-clause.
3529 Let `get_hyphen_list' return the number of involved characters in
3530 the hyphenation pattern instead of computing it directly (which
3531 often yields too small values).
3532 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
3533 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
3536 2003-01-22 Werner LEMBERG <wl@gnu.org>
3538 Fixing a bug which caused groff to hang if the hyphenation exception
3539 dictionary tried to grow.
3541 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
3542 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
3543 pointer to dictionary.
3545 2003-01-20 Werner LEMBERG <wl@gnu.org>
3547 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
3548 negative left italic correction.
3549 * src/utils/afmtodit/afmtodit.man: Document it.
3551 * font/devps/generate/Makefile (RFLAG): Add `-m'.
3552 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
3553 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
3557 2003-01-16 Werner LEMBERG <wl@gnu.org>
3561 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
3563 * src/preproc/refer/refer.man: Mention REFER environment variable.
3565 2003-01-05 Werner LEMBERG <wl@gnu.org>
3567 Similar to \[is], the square root glyph (\[sr]) and the square root
3568 extension glyph (\[radicalex]) are now text symbols. The new
3569 mathematical versions are called \[sqrt] and \[sqrtex],
3572 * font/devX*/S: Regenerated.
3573 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
3574 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
3575 * font/devdvi/EX, font/devdvi/S: Regenerated.
3576 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
3577 * font/devlj4/generate/special.map: Add `sqrt'.
3578 * font/devlj4/S: Regenerated.
3579 * font/devps/generate/textmap: Add `sqrt'.
3580 * font/devps/S, font/devps/symbolmap: Regenerated.
3582 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
3583 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
3584 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
3585 overlap horizontally.
3587 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
3588 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
3591 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
3592 and `sqrtex' are overlapping glyphs.
3594 2003-01-04 Werner LEMBERG <wl@gnu.org>
3596 * font/devdvi/generate/texsy.map: Add `is'.
3597 * font/devps/symbolmap: Regenerated.
3598 * font/devdvi/*TC, MI, S: Regenerated.
3600 * tmac/dvi.tmac: Remove `is'.
3602 2003-01-03 Werner LEMBERG <wl@gnu.org>
3604 `is' is now a text symbol (only relevant for dvi). The math variant
3605 can be accessed with `integral'.
3607 * font/devX*/S: Regenerated.
3608 * font/devdvi/generate/texex.map: Remove `is'.
3609 * font/devdvi/EX: Updated.
3610 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
3611 * font/devlj4/generate/special.map: Ditto.
3612 * font/devlj4/S: Regenerated.
3613 * font/devps/generate/textmap: Add `integral'.
3614 * font/devps/S: Regenerated.
3616 * tmac/dvi.tmac: Define `is'.
3618 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
3620 * src/preproc/tbl/main.cc (process_format): Fix error message.
3622 2003-01-02 Werner LEMBERG <wl@gnu.org>
3624 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
3625 * font/devps/textmap: Fix entries for `ne' and `nc'.
3626 * font/devps/symbolmap: Regenerated.
3628 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
3629 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
3630 `38', `58', `78', `-+', `|=', `nc', `ne'.
3632 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
3633 Use `schar' for `aq'.
3634 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
3635 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
3636 * tmac/tty.tmac: Add `ne'.
3638 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
3639 for fallback glyphs.
3641 2002-12-29 Werner LEMBERG <wl@gnu.org>
3645 * font/devX*/*: Regenerated.
3646 * font/devdvi/generate/ec.map: Remove `eq'.
3647 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
3648 Assign `|=' to position 39.
3649 * font/devdvi/*EC, S: Regenerated.
3650 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
3651 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
3652 Assign `|=' to position 549.
3653 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
3655 Add `uni2243' for `|='.
3657 * tmac/ec.tmac: Add `eq'.
3658 * tmac/dvi.tmac: Add `=~'.
3659 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
3662 2002-12-21 Werner LEMBERG <wl@gnu.org>
3664 * font/devdvi/generate/tc.map: Remove `**'.
3665 * font/devdvi/*TC: Regenerated.
3666 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
3668 * font/devutf8/NOTES: Updated.
3670 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
3671 Don't give default parameter to `set_macro'.
3672 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
3673 instead of `set_macro'.
3674 (charinfo::setx_macro): Implement it.
3675 (charinfo::set_macro): Don't change `mode'.
3677 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
3678 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
3679 * tmac/dvi.tmac: Define `!=' with `.schar'.
3681 2002-12-20 Werner LEMBERG <wl@gnu.org>
3683 * font/devX*/S: Regenerated.
3684 * font/devdvi/generate/ec.map: Remove `pl'.
3685 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
3686 * font/devdvi/*{TC,EC}: Regenerated.
3687 * font/devhtml/R.proto: Add `-+'.
3688 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
3689 * font/devlbp/*: Remove `or'.
3690 * font/devlj4/generate/special.map: Remove `or'.
3691 * font/devlj4/S: Regenerated.
3692 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
3693 `seveneighths', `threeeighths'.
3695 Replace `minusplus' with `uni2213'.
3696 * font/devps/symbolmap: Regenerated.
3697 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
3700 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
3702 * src/roff/troff/node.cc (troff_output_file::put_char_width):
3703 Call glyph_color and fill_color even if tcommand_flag isn't set.
3704 (make_node, node::add_char): Check not ci->is_fallback but
3707 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
3708 * tmac/ec.tmac: Add .rchar entry for `f/'.
3709 Don't remove `12', `14', `34'.
3710 Define `pl' to be always roman.
3711 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
3712 Define `18', `38', `58', `78'.
3713 * tmac/tty.tmac: Add `-+'.
3714 * tmac/dvi.tmac: Define `f/'.
3715 (dvi-frac): Use `f/'.
3716 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
3717 Define `18', `38', `58', `78'.
3719 2002-12-15 Colin Watson <cjwatson@debian.org>
3721 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
3723 2002-12-10 Werner LEMBERG <wl@gnu.org>
3725 Add glyph `tno', a textual variant of `no'.
3727 * font/devX*/*: Regenerated.
3728 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
3729 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
3730 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
3731 * font/devdvi/*: Regenerated.
3732 * font/devlbp/*: Add `tno'.
3733 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
3734 * font/devlj4/*: Regenerated.
3735 * font/devps/generate/textmap: Replace `no' with `tno'.
3736 * font/devps/generate/symbolchars: Add `no'.
3737 * font/devps/*: Regenerated.
3739 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
3741 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
3742 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
3746 * tmac/dvi.tmac: Replace most `\\' with `\E'.
3747 Add definition for `sd'.
3748 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
3750 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
3752 2002-12-08 Werner LEMBERG <wl@gnu.org>
3754 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
3755 mode to avoid rounding errors.
3756 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
3758 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
3759 src/roff/troff/troff.man: Improve documentation of -T.
3761 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
3763 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
3764 (run_pipeline) [_WIN32]: Provide working function without `fork'.
3766 2002-12-06 Werner LEMBERG <wl@gnu.org>
3768 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
3769 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
3770 Scaling Euro.sansserif glyphs down to have the same height as
3772 Removed unnecessary points; added some extrema.
3774 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
3777 2002-12-04 Werner LEMBERG <wl@gnu.org>
3779 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
3780 and `Euro.symbol.bold.slanted'.
3781 Improve some glyph offsets and widths.
3782 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
3784 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
3786 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
3789 * tmac/europs.tmac: Updated to new glyph indices.
3790 Use Euro.symbol for font familiy `A'.
3792 * doc/groff.texinfo: Minor improvements.
3794 2002-12-02 Werner LEMBERG <wl@gnu.org>
3796 * font/devdvi/generate.tc.map: s/%O/%0/.
3797 * font/devdvi/*TC: Regenerated.
3799 * src/roff/troff/div.cc (init_div_requests): Sorted.
3801 * tmac/dvi.tmac: Remove `Ye'.
3802 * tmac/ec.tmac: Remove `Ye'.
3803 Add .rchar entry for `de'.
3805 * man/groff.man, man/groff_diff.man: Document register `.pe'.
3806 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
3809 2002-11-30 Werner LEMBERG <wl@gnu.org>
3811 Add PS font for various Euro glyphs.
3813 * font/devps/generate/freeeuro.sfd: New master font file for
3815 * font/devps/generate/sfdtopfa.pe: New conversion script for
3817 * font/devps/generate/Makefile (FONTS): Add `EURO'.
3818 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
3819 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
3821 * font/devps/EURO: Generated from `freeeuro.afm'.
3822 * font/devps/download: Add `freeuro.pfa'.
3823 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
3826 * tmac/europs.tmac: New file.
3827 * tmac/ps.tmac: Include `europs.tmac'.
3828 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
3830 2002-11-29 Werner LEMBERG <wl@gnu.org>
3832 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
3833 * font/devdvi/S: Regenerated.
3834 * font/devhtml/R.proto: Fix `CR' and `ci'.
3836 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
3838 * font/devps/symbolmap: Regenerated.
3839 * font/devutf8/R.proto: Fix `CR' and `ci'.
3841 * font/devutf8/NOTES: Updated.
3843 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
3846 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
3848 * tmac/dvi.tmac: Add `lh' and `rh'.
3849 * tmac/Xps.tmac: Fix `lh' and `rh'.
3850 * tmac/X.tmac: Add `OK'.
3851 * tmac/lj4.tmac: Ditto.
3853 2002-11-24 Werner LEMBERG <wl@gnu.org>
3855 * font/devX*/S: Regenerated.
3856 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
3857 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
3858 * font/devdvi/generate/texsy.map: Remove `or' glyph.
3859 * font/devdvi/S: Regenerated.
3860 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
3861 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
3862 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
3863 `bracketleftbt', `bracketrighttp', `bracketrightex',
3864 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
3865 `braceex', `braceleftex', `bracerightex', `bracerighttp',
3866 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
3868 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
3869 * font/devutf8/NOTES: Updated.
3870 * font/devlj4/generate/special.map: Add glyph `braceex'.
3871 * font/devlj4/S: Regenerated.
3873 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
3875 2002-11-14 Werner LEMBERG <wl@gnu.org>
3877 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
3880 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
3882 * doc/texinfo.tex: New version from texinfo 4.3.
3883 * doc/groff.texinfo: Updated for texinfo 4.3.
3884 Use @tie{} where appropriate.
3885 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
3886 * font/devdvi/generate/tc.map: Remove `rn'.
3887 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
3888 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
3890 * font/devX100/*, font/devX100-12/*, font/devX75/*,
3891 font/devX75-12/*: Regenerated.
3893 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
3894 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
3895 Improve definition of `an'.
3896 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
3898 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
3899 * tmac/X.tmac: Add definition for `or'.
3900 * tmac/Xps.tmac: Undo change 2002-11-05.
3901 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
3903 2002-11-11 Werner LEMBERG <wl@gnu.org>
3905 * src/roff/troff/node.cc (troff_output_file::put_char): Always
3908 2002-11-10 Werner LEMBERG <wl@gnu.org>
3910 Added three new requests `schar', `fschar', and `rfschar'. `schar'
3911 defines a glyph which is searched after the check for fonts declared
3912 with `.special' (and before the check for all mounted special
3913 fonts). `fschar' defines a glyph for a particular font which is
3914 searched after the check for fonts declared with `.fspecial' (and
3915 before the check for fonts declared with `.special'). `rfschar'
3916 removes glyphs defined with `fschar'.
3918 * src/roff/troff/token.h (char_mode): New enum.
3919 Declare do_define_character.
3920 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
3922 (charinfo::is_fallback): Updated.
3923 (charinfo::is_special): New method.
3924 * src/roff/troff/input.cc (do_define_character): Add and use
3925 optional second parameter used as a prefix for font-specific glyph
3927 (define_character, define_fallback_character): Updated.
3928 (define_special_character): New function.
3929 (init_input_requests): Add `schar'.
3930 (charinfo::charinfo, charinfo::set_macro): Updated.
3931 * src/roff/troff/node.cc: Include `stringclass.h'.
3932 (make_glyph_node): Handle special glyphs defined with `.schar' and
3934 (define_font_special_character, remove_font_special_character): New
3936 (init_node_requests): Sorted.
3937 Add `fschar' and `rfschar'.
3938 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3939 Document new requests.
3941 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
3942 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
3944 2002-11-08 Werner LEMBERG <wl@gnu.org>
3946 Added new font `SC' (cmtex10) to devdvi.
3948 * devdvi/generate/Makefile (FONTS): Add `SC'.
3950 * devdvi/generate/textex.map: New map file for cmtex.
3952 * devdvi/Makefile.sub (DEVFILES): Updated.
3953 * tmac/dvi.tmac: Add fspecial entries for SC.
3954 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
3955 found before `S' since the font position of `SC' is lower due to the
3956 gaps in DESC's `font' line.
3957 * tmac/ec.tmac: Add a `special' call.
3960 * font/devhtml/R.proto: Remove double entry for `ti'.
3961 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
3962 * tmac/tty-char.tmac: Remove entry for `bq'.
3963 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
3964 * tmac/ec.tmac: Don't remove `aq' glyph.
3965 * tmac/X.tmac: Fix entry for `em'.
3966 Add entries for `fo' and `fc'.
3967 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
3969 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
3970 documentation of `special' and `fspecial' requests.
3972 2002-11-05 Werner LEMBERG <wl@gnu.org>
3974 * font/devascii/R.proto, font/devcp1047/R.proto,
3975 font/devlatin1/R.proto: Remove entry for `.i'.
3976 * font/devdvi/generate/textt.map: Add entry for `ad'.
3977 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
3978 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
3979 We need this for getting kerning values to compose `/l' and `/L'.
3980 * font/devdvi: Regenerated font definition files for CM fonts.
3981 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
3982 * font/devutf8/R.proto: Ditto.
3983 Remove double entry for `ti'.
3985 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
3986 for (groff) ligatures, `la', and `ra'.
3987 Add "'C", "'c", `IJ', and `ij'.
3988 Remove double entry for `ti'.
3989 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
3991 Add "'C", "'c", `IJ', and `ij'.
3992 Fix entries for (groff) ligatures, `la', and `ra'.
3994 * tmac/ps.tmac (ps-achar): New macro.
3995 Define "'c" and "'C".
3996 * tmac/tty.tmac: Add entry for `.i'.
3997 * tmac/X.tmac (X-achar): New macro.
3998 Define "'c", "'C", and `:Y'.
3999 Add entries for `IJ' and `ij'.
4000 * tmac/Xps.tmac (Xps-achar): New macro.
4001 Define "'c" and "'C".
4002 Add entries for `IJ' and `ij'.
4003 * tmac/lbp.tmac (lbp-achar): New macro.
4004 Add fallback characters for all groff ligatures and many other
4006 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
4007 Add entries for `/l' and `/L'.
4008 Define "'c" and "'C".
4009 Add entries for `IJ' and `ij'.
4011 2002-11-02 Larry Kollar <kollar@alltel.net>
4013 * PROBLEMS: Document how to solve Mac OS X compilation problems.
4015 2002-11-02 Werner LEMBERG <wl@gnu.org>
4017 Adding support for composite glyphs: \[xxx yyy ...] and the
4018 `composite' request.
4020 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
4021 to Unicode-based glyph names.
4022 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
4023 glyph names to groff glyph names.
4024 * src/roff/troff/uniuni.cc: New file for canonically decomposing
4025 Unicode-based glyph names.
4026 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
4027 for handling Unicode glyph names.
4028 * src/roff/troff/input.cc: Include unicode.h.
4029 (composite_glyph_name): New function.
4030 (token::next) <'['>: Handle Unicode glyph names and composite
4032 (composite_dictionary): New dictionary for the `composite' request.
4033 (composite_request): Implement `composite' request.
4034 (init_input_requests): Add `composite'.
4035 Alphabetically sorted.
4036 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
4038 (init_env_requests): Alphabetically sorted.
4039 Removed `tas' and `tar' (already commented out).
4040 * src/roff/troff/Makefile.sub: Updated.
4042 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
4044 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
4047 2002-10-29 Werner LEMBERG <wl@gnu.org>
4049 Fix computation of .trunc register. Additionally, its value (and
4050 the value of the .ne register) is now always set before entering the
4053 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
4054 `needed_space' before calling `space'.
4055 (top_level_diversion::space): Remove special code for 'sp before the
4057 Call `begin_page' with the discarded space as a parameter.
4058 (top_level_diversion::begin_page): Add optional parameter to set
4060 * src/roff/troff/div.h: Updated.
4062 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
4065 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
4066 (LP): Remove superfluous call to `br'.
4067 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
4068 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4070 2002-10-26 Werner LEMBERG <wl@gnu.org>
4072 * tmac/doc-ditroff: Remove useless switch/variable -rC.
4073 (doc-setup-header): Don't set page register `%'.
4074 * tmac/doc-nroff: Remove variable `C'.
4075 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
4076 (doc-setup-header): Don't set page register `%'.
4078 * tmac/doc-common (doc-header): Call `ns'.
4079 (doc-paragraph): Protect .sp with .br so that it survives traps
4080 possibly set by the user.
4081 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4083 * tmac/doc*: Replace ' with . for consistency if no effect.
4085 2002-10-26 Werner LEMBERG <wl@gnu.org>
4087 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
4088 so that it survives traps possibly set by the user.
4090 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
4091 (troff_output_file::set_font): Call flush_tbuf if necessary.
4092 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
4093 flush_tbuf and do_motion only if necessary.
4094 (troff_output_file::start_special,
4095 troff_output_file::put_char_width, troff_output_file::put_char,
4096 troff_output_file::draw): Updated.
4097 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4098 vmotion_node::tprint): Undo change 2002-10-23.
4100 2002-10-25 Werner LEMBERG <wl@gnu.org>
4102 * tmac/www.tmac (DC): Fix case of overlapping images.
4104 2002-10-23 Werner LEMBERG <wl@gnu.org>
4106 * src/roff/troff/node.cc (troff_output_file::fill_color,
4107 troff_output_file::glyph_color): Set current color before testing
4109 (troff_output_file::put_char_width, troff_output_file::put_char,
4110 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
4112 (troff_output_file::file_color, troff_output_file::glyph_color):
4114 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4115 vmotion_node::tprint): Move first, then call fill_color.
4117 2002-10-20 Werner LEMBERG <wl@gnu.org>
4119 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
4120 possible to use multiple main macro packages.
4122 2002-10-19 Werner LEMBERG <wl@gnu.org>
4124 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
4125 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
4126 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
4128 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
4129 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
4131 2002-10-16 Werner LEMBERG <wl@gnu.org>
4133 * NEWS, doc/webpage.ms: Updated.
4135 2002-10-14 Werner LEMBERG <wl@gnu.org>
4137 * src/roff/troff/node.cc (troff_output_file::put_char_width,
4138 troff_output_file::put_char, troff_output_file::fill_color,
4139 troff_output_file::glyph_color): Handle case where color pointer
4142 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
4144 Add the new -r option to grotty. It is similar to the -i option
4145 except it tells grotty(1) to use the "reverse video" attribute to
4146 render italic fonts.
4148 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
4149 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
4150 (tty_printer::make_underline, tty_printer::put_color,
4151 tty_printer::end_page): Use it.
4152 (main): Add -r switch.
4154 * src/devices/grotty/grotty.man: Document it.
4156 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
4158 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4159 cast to `unsigned char' to properly read patterns with 8bit
4162 2002-10-08 Werner LEMBERG <wl@gnu.org>
4164 * REVISION: Increased to 2.
4166 Version 1.18.1 released
4167 =======================
4169 2002-10-08 Werner LEMBERG <wl@gnu.org>
4171 * doc/webpage.ms, NEWS: Updated.
4173 2002-10-07 Werner LEMBERG <wl@gnu.org>
4175 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
4176 suppress additional whitespace after the header.
4178 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
4181 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
4183 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
4185 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
4186 (Dt): Use it to improve language localization (especially Russian
4189 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
4191 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
4192 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
4194 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
4196 Call `picurve' for BSPLINE.
4197 (HGPrintElt): Handle BSPLINE.
4198 * src/preproc/grn/README: Document it.
4200 2002-10-03 Werner LEMBERG <wl@gnu.org>
4202 * src/roff/troff/node.cc (break_char_node::col): New variable.
4203 Updated constructor.
4204 (space_node::tprint, word_space_node::tprint): Call `fill_color'
4206 (space_node::space_node): Remove assertion.
4207 (break_char_node::add_self): Pass color argument to space node.
4208 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
4210 * src/roff/troff/env.cc (environment::do_break,
4211 environment::add_padding): Ditto.
4213 2002-10-02 Werner LEMBERG <wl@gnu.org>
4215 Redesigning color support in troff. Colors are no longer
4216 represented as separate nodes but are now part of glyph nodes and
4217 friends. This fixes the current formatting misbehaviour due to the
4218 changes introduced on 2002-09-20. Some extra code is necessary for
4219 proper grotty support: Without adding color variables to
4220 space-related nodes, the background color would be changed too late.
4222 * src/roff/troff/node.h, src/roff/troff/node.cc:
4223 s/current_pagecolor/current_fill_color/.
4224 s/current_glyphcolor/current_glyph_color/.
4225 (glyph_color_node, fill_color_node): Removed.
4226 (node::get_glyph_color, node::get_fill_color): New virtual member
4228 (space_node::col): New variable.
4229 Updated constructors of space_node and derived classes accordingly.
4230 (hmotion_node::col): New variable.
4231 Updated constructors of hmotion_node and space_char_hmotion_node
4233 (vmotion_node::col): New variable.
4234 Updated constructor accordingly.
4235 (draw_node::gcol, draw_node::fcol): New variables.
4236 Updated constructor accordingly.
4237 (special_node::gcol, special_node::fcol): New variables.
4238 Updated constructors accordingly.
4239 (troff_output_file::put_char, troff_output_file::put_charwidth,
4240 troff_output_file::draw): Set glyph and fill color.
4241 (troff_output_file::start_special): Set glyph and fill color.
4242 Always set current font.
4243 (troff_output_file::fill_color, troff_output_file::glyph_color):
4244 Don't call `do_motion'.
4245 (glyph_node::gcol, glyph_node::fcol): New variables.
4246 Updated constructors of glyph_node and ligature_node accordingly.
4247 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
4249 (glyph_node::merge_glyph_node,
4250 kern_pair_node::add_discretionary_hyphen,
4251 node::add_discretionary_hyphen): Updated.
4252 (break_char_node::merge_self): Updated.
4253 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4254 vmotion_node::tprint): Handle color.
4255 (make_glyph_node, make_node, node::add_char): Updated.
4257 * src/roff/troff/env.cc (environment::space_newline,
4258 environment::space, environment::output_line, environment::do_break,
4259 environment::make_tab_node, environment::add_padding, title):
4261 (environment_switch, environment_copy): Don't add color nodes.
4263 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
4265 (token::next): Updated.
4266 \m and \M now are as transparent as \s.
4267 (process_input_stack, token::add_to_node_list, token::process,
4268 read_draw_node): Updated.
4269 (charinfo_to_node_list): Don't add color nodes.
4271 * doc/groff.texinfo: Updated.
4273 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
4275 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
4278 2002-09-27 Colin Watson <cjwatson@debian.org>
4280 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
4282 2002-09-23 Werner LEMBERG <wl@gnu.org>
4284 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
4286 (DEFAULT_LINEWIDTH_FACTOR): New macro.
4287 (linewidth_factor): New global variable.
4288 (lbp_printer::set_line_thickness): Fix case for size < 0, using
4290 (long_options): Add -w/--linewidth option.
4292 (main): Handle -w option to set linewidth_factor.
4293 (lbp_printer::lbp_printer): Initialize req_linethickness, not
4296 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
4298 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
4300 Fixed a bug in the line thickness setting code.
4302 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
4304 (lbp_printer::set_line_thickness): Pass environment as second
4306 Implement it actually.
4307 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
4308 and `set_line_thickness, depending on the current font size.
4310 2002-09-21 Werner LEMBERG <wl@gnu.org>
4312 Some Debian patches.
4314 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
4315 * src/roff/troff/node.cc (bracket_node::copy): Initialize
4318 2002-09-20 Werner LEMBERG <wl@gnu.org>
4320 * configure: Regenerated with autoconf 2.54.
4322 2002-09-20 Werner LEMBERG <wl@gnu.org>
4324 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
4326 Rename cur_fill_color to fill_color.
4327 * src/roff/troff/env.cc: Updated.
4329 2002-09-20 Werner LEMBERG <wl@gnu.org>
4331 * src/roff/troff/env.cc (title): Copy color status after processing
4333 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
4334 fill color nodes to reset colors properly.
4336 * tmac/www.tmac (DC): Fix color handling.
4338 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
4339 * doc/groff.texinfo: Fixing documentation of `tl' request.
4340 * doc/webpage.ms: Updated.
4342 2002-09-19 Werner LEMBERG <wl@gnu.org>
4344 * src/roff/troff/env.cc (environent_switch, environment_copy):
4345 Emit glyph and fill color nodes to initialize colors properly.
4347 2002-09-17 Colin Watson <cjwatson@debian.org>
4349 * src/roff/troff/env.cc (environment::set_glyph_color,
4350 environment::set_fill_color): Fix typo which prevented \m[] work
4353 2002-09-17 Werner LEMBERG <wl@gnu.org>
4355 Add left and right italic correction to non-slanted PS fonts. This
4356 is an experimental feature to improve image rendering of grohtml.
4358 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
4359 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
4360 * font/devps/*: All non-slanted fonts regenerated.
4363 2002-09-16 Werner LEMBERG <wl@gnu.org>
4365 Add a site-specific font directory.
4367 * Makefile.in (localfontdir, legacyfontdir): New variables.
4368 (fontpath): Use them.
4369 (MDEFINES, uninstall_dirs): Updated.
4370 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
4371 Remove `FONTPATH' and `MACROPATH'.
4373 * src/roff/troff/troff.man, NEWS: Updated.
4374 * doc/groff.texinfo (Font Directories): New section.
4377 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
4378 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
4379 src/preproc/grn/grn.man: Minor fixes.
4381 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
4382 Remove unused variable.
4384 2002-09-11 Werner LEMBERG <wl@gnu.org>
4386 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
4387 * man/groff_out.man: Fix documentation of 'N'.
4389 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
4391 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
4392 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
4394 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
4395 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
4396 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
4397 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
4398 PRE_TAG>: Call `begin' with `FALSE'.
4400 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4402 * src/libs/libgroff/string.cc (string::extract): Fix position of
4403 terminating null byte.
4405 2002-09-08 Werner LEMBERG <wl@gnu.org>
4407 Add global option `nospaces' to tbl so that leading and trailing
4408 spaces in data items are ignored.
4410 * src/libs/libgroff/string.cc (string::remove_spaces): New member
4411 function to remove leading and trailing spaces.
4412 * src/include/stringclass.h: Updated.
4414 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
4416 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
4418 Fix typo in error messages.
4419 (process_data): Implement `nospaces' option.
4420 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
4422 2002-09-07 Werner LEMBERG <wl@gnu.org>
4424 * src/include/config.hin: Add `HAVE_ISATTY'.
4425 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
4427 * src/libs/libgroff/tmpname.cc: Include `time.h'.
4428 * src/libs/libdriver/input.cc (Char): Add `operator==' and
4429 `operator!=' for `char'.
4430 * doc/groff.texinfo: Replace @ifnottex block for top node with
4433 2002-09-06 Werner LEMBERG <wl@gnu.org>
4435 * doc/Makefile.in (.texinfo.html): Add -I switch.
4436 * doc/groff.texinfo: Add @ifnottex block for top node to make
4437 translation to HTML work.
4439 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
4441 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
4442 (get_papersize, determine_vertical_offset): Removed.
4443 (char_buffer::do_image): Always specify letter size.
4445 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
4448 2002-09-05 Werner LEMBERG <wl@gnu.org>
4450 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
4451 default indentation.
4453 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
4455 * src/preproc/html/pre-html.cc (imageList::createPage): Use
4457 (generateImages): Clean up push-back buffer.
4459 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4461 * doc/groff.texinfo: Minor fixes.
4463 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
4465 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
4466 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
4468 (determine_vertical_offset): Use LETTER_LENGTH.
4469 (createPage): Moved to ...
4470 (imageList::createPage): This.
4471 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
4472 (imageList::getMaxX): New function.
4473 (createImage): Moved to ...
4474 (imageList::createImage): This.
4475 (imageList::createImages): New function.
4476 (generateImages): Read `maxx' directly.
4478 (scanArguments): Don't specify `gsPaper' for `-o'.
4479 (makeTempFiles): Call `xtmpfile' with the last argument set to
4482 2002-08-24 Werner LEMBERG <wl@gnu.org>
4484 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
4485 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
4486 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
4487 * src/preproc/html/pushback.cc: Include nonposix.h.
4488 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
4491 2002-08-23 Werner LEMBERG <wl@gnu.org>
4493 Use $(OBJEXT) for the object file extension.
4495 * Makefile.comm (.SUFFIXES): Add .obj.
4496 (.cc.obj, .c.obj): New implicit rules.
4497 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
4498 (MDEFINES): Add EXEEXT and OBJEXT.
4499 * */Makefile.sub: s/.o/.$(OBJEXT)/.
4501 2002-08-22 Werner LEMBERG <wl@gnu.org>
4503 * INSTALL: Mention texinfo 4.2 as a prerequisite.
4505 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
4507 * src/devices/grohtml/post-html.cc (colType): Make enum global to
4509 (html_printer::update_min_max, html_printer::add_table_end): New
4511 (html_printer::lookahead_for_tables): Use them.
4512 Reset page offset correctly.
4513 (html_printer::~html_printer): Add creation of creator comment up.
4515 2002-08-20 Werner LEMBERG <wl@gnu.org>
4517 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
4518 * man/groff_tmac.man: Fix typos.
4519 * man/groff_font.man: Minor reordering.
4520 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
4522 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
4524 Avoid endless loops while scanning for tables.
4526 * src/devices/grohtml/post-html.cc (list::insert): Set
4528 (html_printer::next_horiz_pos): Add `text_glob' argument; update
4530 Return immediately if that argument is NULL.
4531 (html_printer::calc_nf): Don't test if `g' is NULL.
4532 (html_printer::lookahead_for_tables): Use
4533 `glyphs.move_right_get_data'.
4534 Don't test if `g' is NULL.
4536 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
4538 A better fix, replacing fix 2002-08-15, for increasing SIZE.
4540 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
4542 (char_block::char_block): Allocate `buffer'.
4543 (char_buffer::add_string): Use it.
4545 2002-08-15 Werner LEMBERG <wl@gnu.org>
4547 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
4548 src/devices/grodvi/grodvi.man: Document default line thickness.
4550 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
4552 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
4555 2002-08-14 Werner LEMBERG <wl@gnu.org>
4557 * doc/webpage.ms: Updated.
4559 2002-08-09 Werner LEMBERG <wl@gnu.org>
4561 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
4564 2002-08-08 Aaron Campbell <aaron@monkey.org>
4566 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
4569 2002-08-08 Werner LEMBERG <wl@gnu.org>
4571 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
4574 Don't push back a space but a newline onto the stack.
4576 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
4578 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
4581 * src/devices/grohtml/post-html.cc (html_printer::end_font,
4582 html_printer::start_font): Handle them.
4583 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
4585 (html_text::do_bold): Don't reset italic and tt.
4586 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
4587 * font/devhtml/DESC.proto: Add those fonts.
4588 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
4590 2002-08-07 Werner LEMBERG <wl@gnu.org>
4592 * MORE.STUFF: Added gpresent.
4594 * tmac/trace.tmac: Show nesting level by a corresponding amount of
4595 whitespace before printing the logging message.
4597 2002-07-31 Colin Watson <cjwatson@debian.org>
4599 * src/devices/grohtml/html-table.cc (html_table::finish_row):
4600 Initialize `n' to zero. This fixes a segfault on ARM.
4602 2002-07-30 Werner LEMBERG <wl@gnu.org>
4604 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
4606 2002-07-29 Werner LEMBERG <wl@gnu.org>
4608 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
4611 2002-07-28 Colin Watson <cjwatson@debian.org>
4613 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
4615 (html_printer::html_printer): Initialize `pointsize'.
4617 2002-07-26 Werner LEMBERG <wl@gnu.org>
4619 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
4621 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
4622 (gnu.eps): Add -rle switch to pnmtops.
4623 (distfiles): Add gnu.eps and gnu.png.
4625 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
4627 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
4630 2002-07-24 Werner LEMBERG <wl@gnu.org>
4632 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
4633 ' \+' but ' *' for sed.
4634 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
4636 2002-07-23 Werner LEMBERG <wl@gnu.org>
4638 * doc/groff.texinfo: Document `papersize' keyword.
4639 * NEWS, man/groff_font.man: Updated.
4641 2002-07-23 Colin Watson <cjwatson@debian.org>
4643 Extend papersize keyword to accept more than a single entry. The
4644 first valid will be used.
4646 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
4647 (font::scan_papersize): Really skip final newline.
4648 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
4650 2002-07-23 Werner LEMBERG <wl@gnu.org>
4652 * configure.ac: Test for isatty.
4653 * configure: Regenerated.
4654 * src/include/posix.h: Check HAVE_ISATTY.
4655 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
4656 * src/utils/lookbib/lookbib.cc: Include posix.h.
4657 Don't declare isatty.
4659 2002-07-21 Werner LEMBERG <wl@gnu.org>
4661 * NEWS: Add `output' request.
4663 * REVISION: Increased to 1.
4665 Version 1.18.0 released
4666 =======================
4668 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
4670 Allow internal glyph indices > 0xFF in grohtml for input characters.
4672 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
4674 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
4675 Updated all callers.
4676 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
4677 (html_printer): Updated.
4679 2002-07-19 Werner LEMBERG <wl@gnu.org>
4681 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
4682 * font/devutf8/R.proto: Adding some missing glyphs.
4683 * font/devutf8/NOTES: Updated.
4685 * tmac/dvi.tmac: Add more composite glyphs.
4686 * tmac/html.tmac: Updated.
4688 * man/groff_char.man: Add `sum' and `product' entities.
4692 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
4694 Improved table, tab, and indenting support.
4696 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
4697 string_iterator::suppress_newline_flag): Removed. Updated all
4698 function which have used it.
4700 * src/roff/troff/env.cc: Include `input.h'.
4701 (environment::add_node): Accept 0 as parameter.
4702 (environment::add_html_tag): Add `force' parameter.
4703 Updated all callers.
4704 (environment::add_html_tag_tabs): Ditto.
4705 For the moment, support left-aligned tabs only.
4706 (environment::make_html_tag): New function.
4707 (fill, no_fill): Set .br html tag additionally.
4708 (environment::newline): Emit `eol.ce' or `eol' tag for html.
4709 (environment::add_html_tag_eol): Removed.
4710 (tab_stops::distance_to_next_tab): Add variant for handling
4712 (environment::distance_to_next_tab): Ditto.
4713 Updated all callers.
4714 (environment::handle_tab): Handle tabs for html.
4716 * src/roff/troff/env.h: Updated.
4718 * src/roff/troff/div.cc: Updated all callers of
4719 `environment::add_html_tag'.
4721 * src/devices/grohtml/html-table.cc,
4722 src/devices/grohtml/html-table.h: New files.
4724 * src/devices/grohtml/html-text.cc (html_text): New members
4725 `blank_para' and `start_space'.
4726 (html_text::issue_tag): Don't emit TABLE_TAG.
4727 Handle indentation for PRE_TAG and P_TAG.
4728 (html_text::end_tag): Updated.
4729 (html_text::table_is_void, html_text::issue_table_begin,
4730 html_text::issue_table_end): Removed.
4731 (html_text::do_push): Simplified.
4732 [DEBUGGING]: Small fix.
4733 (html_text::push_para): Add new parameter for indentation; updated
4736 (html_text::do_indent, html_text::do_table, html_text::done_table,
4737 html_text::is_in_table): Removed.
4738 (html_text::do_pre): Handle P_TAG also.
4739 (html_text::shutdown): Handle p->indent.
4740 (html_text::check_emit_text): Simplified.
4741 (html_text::do_emittext): Reset `blank_para'.
4742 (html_text::do_para): Add new parameter for indentation; updated
4744 (html_text::remove_indent): New function.
4745 (html_text::do_space): Handle verbatim text properly.
4746 (html_text::ever_emitted_text, html_text::starts_with_space,
4747 html_text::remove_para_align): New functions.
4748 (html_text::dump_stack_element, html_text::dump_stack): Updated.
4750 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
4753 * src/devices/grohtml/post-html.cc: Include html-table.h.
4754 (INDENTATION): Removed.
4755 (text_glob): Added many `is_<foo>' functions.
4756 Added table description `tab'.
4757 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
4759 (list): Add `insert' and `move_to' member functions.
4760 (page): Add `insert_tag' member function.
4761 (page::dump_page) [DEBUG_TABLES]: Improved.
4762 (html_printer): Add `table' and `max_linelength' elements.
4763 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
4764 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
4765 `remove_tabs', `remove_courier_tabs'.
4766 (html_printer::emit_raw): Handle indentation.
4767 (html_printer::do_center, html_printer::write_header): Updated.
4768 (html_printer::is_courier_until_eol): Check for tag.
4769 (html_printer::do_linelength): Handle max_linelength.
4770 (html_printer::do_page_offset, html_printer::do_indentation): Handle
4772 (html_printer::do_tempindent): Updated.
4773 (html_printer::do_indentedparagraph): Removed.
4774 (html_printer::do_indent): Simplified.
4775 (html_printer::do_eol): Use `ever_emitted_text'.
4776 (html_printer::do_flush, html_printer::do_links): Don't call
4778 (html_printer::do_break): Handle end_tempindent.
4779 (html_printer::troff_tag): Get argument.
4781 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
4782 (html_printer::flush_page): Call `lookahead_for_tables'.
4783 Don't call `done_table'.
4784 (html_printer::add_to_sbuf): Always call do_indent.
4786 * src/devices/grohtml/Makefile.sub: Updated.
4788 * tmac/an-old.tmac (TP): Don't handle html device specially.
4789 (an-do-tag-html): New function which will be used instead of
4790 `an-do-tag' if html device is used.
4792 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
4794 * tmac/s.tmac (@IP): Don't handle html device specially.
4795 (@IP-html): New function which will be used instead of `@IP' if
4796 html device is used.
4798 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
4799 is a hack which will eventually vanish again.
4800 (PIMG): Handle `-C' option correctly if not html.
4803 2002-07-17 Werner LEMBERG <wl@gnu.org>
4805 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
4807 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
4809 * contrib/pic2graph/pic2graph.*: Use convert(1).
4810 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
4812 2002-07-14 Bernd Warken <bwarken@mayn.de>
4814 * tmac/groff_trace.man: New file.
4815 * tmac/Makefile.sub: Updated.
4818 2002-07-13 Werner LEMBERG <wl@gnu.org>
4820 * src/roff/groff/groff.man: Add some cross references.
4822 2002-07-12 Werner LEMBERG <wl@gnu.org>
4824 * src/roff/troff/input.cc (substring_request): Add warnings for
4825 string indices out of range.
4827 2002-07-11 Werner LEMBERG <wl@gnu.org>
4829 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
4830 * font/devdvi/*EC: Regenerated.
4832 2002-07-10 Bernd Warken <bwarken@mayn.de>
4834 * man/groff_char.man: Updated and extended.
4836 2002-07-10 Werner LEMBERG <wl@gnu.org>
4838 * src/roff/troff/input.cc (length_macro): Renamed to...
4839 (length_request): This.
4840 Move call of `tok.next()' to the very end, otherwise the register
4841 value hasn't been updated yet.
4842 (init_input_requests): Updated.
4844 2002-07-09 Werner LEMBERG <wl@gnu.org>
4846 * src/roff/troff/input.cc (substring_macro): Renamed to...
4847 (substring_request): This.
4848 (init_input_requests): Updated.
4849 * src/roff/troff/request.h: Updated.
4851 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
4853 * src/roff/grog/grog.sh: Fix typo.
4855 2002-07-08 Werner LEMBERG <wl@gnu.org>
4857 * win32-diffs: Updated.
4859 Handle `papersize' keyword properly in DESC.
4861 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
4863 Updated all callers.
4864 * src/libs/libgroff/paper.cc: Add four more paper formats used by
4866 * src/include/paper.h: Updated.
4868 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
4869 Other minor C syntax fixes.
4870 (papersize, paperlength, paperwidth): Renamed to `user_*'.
4871 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
4873 (lbp_printer::lbp_printer): Pass three arguments.
4874 Set paper dimensions properly.
4875 (make_printer, main): Updated.
4876 (handle_unknown_desc_command): Fix error messages.
4877 (main): Handle papersize keyword in DESC properly.
4879 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
4881 (lbp_printer::lbp_printer): Pass an argument.
4882 Set paper_size properly.
4883 (handle_unknown_desc_command): Removed.
4884 (make_printer, main): Updated.
4885 * src/devices/grolj4/grolj4.man: Minor documentation fix.
4887 * man/groff_font.man, NEWS: Updated.
4889 2002-07-07 Werner LEMBERG <wl@gnu.org>
4891 Integrated eqn2graph, contributed by Eric S. Raymond.
4893 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
4895 * Makefile.in, NEWS: Updated.
4897 2002-06-04 Werner LEMBERG <wl@gnu.org>
4899 Changing the substring request to make it fit better with other
4900 string manipulation functions in other programming languages:
4901 Index 0 is now the first character in the string, and index -1
4902 indicates the last character. Since this request didn't work
4903 properly anyway in the last release, it doesn't harm too much to
4906 * src/roff/troff/input.cc (substring_macro): Use loops to get
4907 the real string length (ignoring COMPATIBLE_SAVE and
4908 COMPATIBLE_RESTORE) and offsets.
4909 Implement change described above.
4911 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
4912 (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
4914 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
4916 2002-06-03 Werner LEMBERG <wl@gnu.org>
4918 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
4919 COMPATIBLE_RESTORE are completely ignored.
4921 * src/roff/troff/input.cc (char_list::set, char_list::get): New
4923 (macro): `length' field renamed to `len'.
4924 Added new field `empty_macro' (1 if macro is empty), to be used
4925 instead of checking `len'.
4926 Updated all callers.
4927 (macro::empty): Updated.
4928 (macro::length, macro::set, macro::get): New functions.
4929 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4931 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
4932 COMPATIBLE_RESTORE pairs.
4933 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4934 * src/roff/troff/request.h: Updated.
4936 * doc/groff.texinfo: Document .chop's behaviour better.
4938 2002-06-02 Werner LEMBERG <wl@gnu.org>
4940 * doc/pic.ms: Fix documentation for the addition of positions.
4942 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
4944 2002-06-29 Werner LEMBERG <wl@gnu.org>
4946 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
4948 * src/roff/troff/input.cc (have_string_arg): New global variable.
4949 (read_mode): New enumeration.
4950 (read_escape_name): Use it. Update all calls.
4951 (read_long_escape_name): Use it. Update all calls.
4952 Set have_string_arg if appropriate.
4953 (get_char_for_escape_name): Add parameter for handling space
4955 (interpolate_string_with_args, decode_string_args): New functions.
4956 (get_copy, token::next): Call it if necessary.
4957 (interpolate_string): Fix error message.
4959 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
4962 2002-06-24 Bernd Warken <bwarken@mayn.de>
4964 * man/groff_tmac.man: Updated and extended.
4966 2002-06-24 Werner LEMBERG <wl@gnu.org>
4968 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
4970 2002-06-23 Werner LEMBERG <wl@gnu.org>
4972 * doc/pic.ms: Improve documentation of composite block objects.
4974 2002-06-22 Werner LEMBERG <wl@gnu.org>
4976 * src/roff/troff/input.cc (init_registers): Add three registers
4977 `seconds', `minutes', and `hours' to hold the current time.
4979 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
4982 2002-06-20 Werner LEMBERG <wl@gnu.org>
4984 Make \X accept both `\ ' and `\~', converting them to single space
4987 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
4988 (token::unstretchable_space): New inline function.
4989 * src/roff/troff/input.cc (token::next, token::delimiter,
4990 token::description, token::add_to_node_list, token::process): Handle
4991 TOKEN_UNSTRETCHABLE_NODE.
4992 (encode_char): Handle tok.stretchable_space and
4993 tok.unstretchable_space.
4995 * NEWS, doc/groff.texinfo: Document it..
4997 2002-06-19 Werner LEMBERG <wl@gnu.org>
4999 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
5001 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
5002 keyword to enable/disable SGR output.
5003 (tty_printer::change_fill_color): New function.
5004 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
5006 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
5009 2002-06-18 Werner LEMBERG <wl@gnu.org>
5011 Add a `color' request and a `.color' register to control usage of
5014 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
5015 (color_flag): This (which is the inverse).
5016 (activate_color): New function.
5017 (main, init_input_requests): Updated.
5018 * src/roff/troff/troff.h, src/roff/troff/node.cc
5019 (troff_output_file::fill_color, troff_output_file::glyph_color):
5022 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5023 Document the changes.
5025 2002-06-17 Colin Watson <cjwatson@debian.org>
5027 Circumvent bug in autoconf 2.53 regarding top_builddir.
5029 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
5030 * Makefile.in, doc/Makefile.in:
5031 s/@top_builddir@/@groff_top_builddir@/.
5032 * configure: Regenerated (with autoconf 2.53).
5034 2002-06-17 Werner LEMBERG <wl@gnu.org>
5036 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
5037 `paperwidth' and `paperlength' for the `papersize' keyword.
5039 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
5041 * src/devices/grops/grops.man: Add info about Type 42 fonts.
5043 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
5045 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
5046 html_printer::do_linelength, html_printer::do_pageoffset,
5047 html_printer::do_indentation, html_printer::do_tempindent,
5048 html_printer::do_break, html_printer::begin_page): Clear indented
5050 * tmac/html.tmac: Disable hyphenation.
5052 2002-06-15 Werner LEMBERG <wl@gnu.org>
5054 Don't produce HTML files if utility programs are missing.
5056 * Makefile.in (make_html, make_install_html): New variables.
5057 (MDEFINES): Updated.
5059 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
5061 * configure.ac: Use it.
5062 * configure: Regenerated.
5064 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
5065 (HTMLEXAMPLESFILES): This new variable.
5066 (EXAMPLESIMAGEFILES): Renamed to...
5067 (HTMLEXAMPLEIMAGEFILES): This.
5068 (CLEANADD): Add HTMLEXAMPLEFILES.
5069 (all): Use `make_html'.
5071 (install_data): Use `make_install_html'.
5072 Move html stuff to...
5073 (install_html): This new target.
5074 (uninstall_sub): Updated.
5076 2002-06-14 Bernd Warken <bwarken@mayn.de>
5078 * src/roff/grog/Makefile.sub (grog): Renamed to...
5080 (grog): New rule to always install grog.sh as grog.
5082 2002-06-08 Bernd Warken <bwarken@mayn.de>
5084 * src/roff/grog/grog.pl: Fix typo.
5086 2002-06-07 Werner LEMBERG <wl@gnu.org>
5088 * doc/groff.texinfo: Add more info on .tr arguments.
5090 2002-06-05 Werner LEMBERG <wl@gnu.org>
5092 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5094 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
5095 * configure: Regenerated.
5097 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5099 * src/roff/troff/symbol.cc (table_sizes): Add more values.
5101 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
5103 2002-06-04 Werner LEMBERG <wl@gnu.org>
5105 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
5106 is not initialized at the time we need it in case `--prefix' hasn't
5107 been set. Check for `ac_default_prefix' also.
5108 Test for `papersize' keyword also and generalize allowed whitespace.
5109 * configure: Regenerated.
5111 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
5114 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
5116 (src_version, src_revision): New variables to avoid overwriting
5117 from parent make process.
5118 (version.cc): Updated.
5120 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
5121 (linebuf, linebufsize): New global variables.
5122 (sys_fatal): Use `fatal' to abort properly.
5123 (get_line): New function.
5124 (get_resolution): Use it.
5125 Improve error messages.
5126 (get_papersize): Check `papersize' also.
5128 Improve error messages.
5130 2002-06-03 Werner LEMBERG <wl@gnu.org>
5132 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
5133 should be removed only if builddir is not srcdir.
5134 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
5135 (clean): Depend on `mostlyclean'.
5136 (distclean): Depend on `clean'.
5137 (realclean, extraclean): Depend on `distclean'.
5138 (.y.cc, .y.o): Simplified. The output files are no longer written
5139 to srcdir but to builddir.
5140 * Makefile.in (MDEFINES): Add `version' and `revision'.
5141 (uninstall_dirs): Fix order of directories.
5142 * doc/Makefile.sub (version, revision): Removed.
5143 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
5144 Added `HTMLDOCFILES'.
5145 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
5146 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
5147 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
5150 * doc/texinfo.tex (\authortt): New macro.
5151 (\shortcontt): Define.
5152 (\titlepage): Set \tt to \authortt while defining \authorfont.
5153 (\appendixbox): New macro.
5154 (\chapmacro, \appendixentry): Use \appendixbox to get even
5155 indentation for letters.
5156 (\summarycontents): Set \tt.
5157 (\internalpagesize): Add two arguments for real paper width and
5158 height as needed by pdfTeX.
5159 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
5161 (\tempdima, \tempdimb): New temporary dimensions.
5162 (\pagesizesyyy): Updated.
5164 2002-06-02 Werner LEMBERG <wl@gnu.org>
5166 Adding a new keyword `papersize' to the DESC file format (similar
5167 but not completely identical to grolbp's extension). grops now has
5168 a -p command line option to override `papersize'. Finally, grolbp
5169 has been adapted to the new syntax.
5171 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
5172 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
5174 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
5175 (CCSRCS): Add `paper.cc'.
5177 * src/include/font.h (font): Add `papersize' element.
5178 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
5179 (font::scan_papersize): New function.
5180 (font::load_desc): Use it for handling `papersize' keyword.
5181 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
5183 * src/devices/grops/ps.cc: Include paper.h.
5184 (user_paper_length): New global variable.
5185 (ps_printer): Use paper length as initializer.
5186 (make_printer): Updated.
5187 (main): Handle new `-p' option.
5188 * src/devices/grops/grops.man: Updated.
5190 * src/devices/grolbp/lbp.cc: Include paper.h.
5191 s/papersizes/lbp_papersizes/.
5192 (set_papersize): Use new `papersizes' array.
5193 (handle_unknown_desc_command): Don't handle `papersize'.
5194 (main): Use `font::scan_papersize' for handling `-p' option.
5195 * src/devices/grolbp/grolbp.man: Updated.
5197 * man/groff_font.man: Document `papersize'.
5200 2002-05-30 Werner LEMBERG <wl@gnu.org>
5202 * src/devices/grops/TODO: Updated.
5203 * src/devices/grops/grops.man: More info on paper formats.
5204 * man/groff_font.man: Document `paperheight' and `paperwidth'.
5206 2002-05-29 Werner LEMBERG <wl@gnu.org>
5208 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
5209 to list only if srcdir != currdir.
5210 (distfiles): New target.
5212 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
5213 (NOMAKEDIRS): New variable.
5216 2002-05-26 Werner LEMBERG <wl@gnu.org>
5218 Add .output request, similar to \! at top-level.
5220 * src/roff/troff/input.cc (transparent): Remove unused declaration.
5221 (output_request): New function.
5222 (init_input_requests): Add it.
5224 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5227 * Makefile.in (MDEFINES): Add INSTALL_INFO.
5228 (prepare_examples): Fix typo.
5229 * doc/groff.texinfo (@direntry): Fix it.
5231 2002-05-25 Werner LEMBERG <wl@gnu.org>
5233 Including the doc subdir into groff's Makefile system.
5235 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
5236 * configure.ac: Use it.
5237 Generate `doc/Makefile'.
5238 * configure: Regenerated.
5240 * Makefile.in (infodir, INSTALL_INFO): New variables.
5241 (MDEFINES, uninstall_dirs): Updated.
5242 (OTHERDIRS): Add `doc'.
5243 * Makefile.comm (CLEANDIRADD): New variable.
5244 (mostlyclean): Use it.
5246 * doc/Makefile.sub, doc/Makefile.in: New files.
5247 * doc/Makefile: Removed.
5249 * NEWS, INSTALL: Updated.
5251 2002-05-24 Werner LEMBERG <wl@gnu.org>
5253 * doc/homepage.ms: Renamed to ...
5254 * doc/webpage.ms: This.
5257 2002-05-23 Werner LEMBERG <wl@gnu.org>
5259 Integrating the `mom' macro package, contributed by Peter Schaffter
5262 * contrib/mom/*: New subdirectory tree.
5263 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
5264 be used for documentation files.
5265 (MDEFINES, uninstall_dirs): Use them.
5266 (OTHERDIRS): Add contrib/mom.
5267 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
5269 * MANIFEST, NEWS: Updated.
5271 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
5273 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
5274 if at outer level; at start-up we are at outer level.
5276 * src/roff/troff/input.cc (do_suppress): Implement it.
5279 Add option -p to show progress information.
5280 pre-grohtml will now render only one page at a time, reducing the
5281 size of needed disk resources enormously.
5283 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
5284 (imagePageName): New global variable.
5285 (psPageName, show_progress, currentPageNo): New global variables.
5286 (html_system): Close saved stderr and stdout handles.
5287 (write_end_image): Accept a parameter to control \O escape.
5288 (write_start_image): Adapted to new \O meaning.
5289 (char_buffer::write_upto_newline): Updated.
5290 (createAllPages): Replaced with...
5291 (createPage): This new function to create a single page for images.
5292 It uses `psselect' from the psutils package.
5293 (removeAllPages): Removed.
5294 (createImage): Updated.
5295 Handle progress display.
5296 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
5297 (scanArguments): Add option -p.
5298 (makeTempFiles): Updated to create temp files for psPageName and
5300 (removeTempFiles): Removed.
5303 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
5304 html_printer::write_header): Append `\0' to `buffer'.
5305 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
5307 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
5308 Handle `text_emitted'.
5309 (html_text::table_is_void): Slightly rewritten.
5310 (stop): New external symbol.
5311 (html_text::do_push) [DEBUGGING]: Use it and simplify.
5312 (html_text::shutdown): Call `dump_stack'.
5313 (html_text::do_space): Rewritten.
5314 * src/devices/grohtml/grohtml.man: Document -p and the need of
5317 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
5319 Call \O[0] if `ps4html' is active.
5320 * tmac/s.tmac (@EQ, @EN): Handle html better.
5322 * tmac/html.tmac: Don't use black for background colour.
5324 * src/roff/troff/node.cc: Include `div.h'.
5325 (troff_output_file::really_print_line): Don't use `is_on'.
5326 (troff_output_file::word_marker, troff_output_file::flush_tbuf
5327 troff_output_file::check_charinfo,
5328 troff_output_file::put_char_width, troff_output_file::put_char,
5329 troff_output_file::determine_line_limits, troff_output_file::draw,
5330 real_output_file::begin_page, glyph_color_node::tprintf,
5331 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
5333 (troff_output_file::really_on): Call `do_motion'.
5334 (suppress_node::tprint): Use `get_page_number' instead of `%'
5336 Call `reset_output_registers' conditionally on `is_on'.
5338 * doc/groff.texinfo: Document new syntax of \O.
5339 * NEWS, man/groff_diff.man: Updated.
5341 2002-05-22 Werner LEMBERG <wl@gnu.org>
5343 * MORE.STUFF: Add info about David Frey's deroff implementation.
5346 2002-05-16 Werner LEMBERG <wl@gnu.org>
5348 Pic's `with' attribute now accepts positions.
5350 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
5351 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
5353 (object_spec): Add rule for `WITH' and `position'.
5354 (relative_path): Give `corner' the precedence of `CHOP'.
5355 * src/preproc/pic/object.h (path): New members `pos' and
5357 * src/preproc/pic/object.cc: Updated initializers of `path'.
5358 (path::follow): Handle `is_position'.
5360 * doc/pic.ms: Completely updated grammar description.
5361 Many typographical improvements.
5363 2002-05-15 Werner LEMBERG <wl@gnu.org>
5365 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
5366 code of x in range 0-127) also.
5367 * doc/groff.texinfo, man/groff_diff.man: Updated.
5369 Added keywords `north', `south', `east', and `west' for corners
5372 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
5374 (yylex): Handle them.
5375 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
5376 (corner): Handle them.
5378 2002-05-14 Werner LEMBERG <wl@gnu.org>
5380 * src/devices/grops/grops.man: Clarify handling of `download' file.
5382 2002-05-11 Werner LEMBERG <wl@gnu.org>
5384 Adding `warnscale' and `spreadwarn' requests, based on a patch from
5385 Jeffrey Friedl <jfriedl@yahoo.com>.
5387 * src/roff/troff/input.cc (spread_limit, warn_scale,
5388 warn_scaling_indicator): New global variables.
5389 (warnscale_request, spreadwarn_requests): New functions.
5390 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
5391 (init_input_requests): Updated.
5392 (error_type): Add `OUTPUT_WARNING'.
5393 (do_error): Handle it.
5394 (output_warning): New warning function which shows output location.
5395 * src/roff/troff/env.h (spread_limit): New external variable.
5396 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
5398 (distribute_space): Emit warning if added space is larger than
5400 (environment::possibly_break_line): Emit warning if a line can't
5401 be adjusted on both sides.
5403 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
5405 2002-05-08 Werner LEMBERG <wl@gnu.org>
5407 * src/roff/troff/node.cc (special_node::special_node): Use
5408 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
5409 \X''\% crashes, for example.
5411 * doc/groff.texinfo: Document \! and \? used at top-level.
5413 2002-05-06 Werner LEMBERG <wl@gnu.org>
5415 * src/preproc/pic/pic.man: Fix some keyword syntax.
5416 Other minor typographical fixes.
5418 * src/roff/groff/groff.man: Fix typos.
5420 2002-05-04 Werner LEMBERG <wl@gnu.org>
5422 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
5423 (ShortOpt[]): This to avoid problems with refer.
5425 * doc/pic.ms: Fix typo.
5426 Fix pic grammar description.
5428 * tmac/an-old.tmac (ne): Use de1, not de.
5430 2002-05-03 Werner LEMBERG <wl@gnu.org>
5432 * doc/groff.texinfo: Finished separation of glyphs and characters.
5433 Don't use the string `Appendix' for appendix headers (both in
5434 the text and the table of contents).
5435 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
5438 Use registers LL and LT (similar to -ms) for controlling the
5439 length of title and line, respectively, in the -man and -mdoc
5442 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
5443 (doc-setup-page-layout): Use \n[LL] and \n[LT].
5444 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
5446 (an-header, an-p-footer): Use \n[LT].
5447 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
5448 doc/groff.texinfo: Document it.
5450 2002-05-02 Werner LEMBERG <wl@gnu.org>
5452 * doc/fdl.texi: New file.
5453 * doc/groff.texinfo: Include it.
5454 Define and use @copying.
5455 Starting with separating glyph, symbol, and character.
5457 2002-04-27 Werner LEMBERG <wl@gnu.org>
5459 * Makefile.in (EXEEXT): Set it.
5460 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
5463 * src/include/nonposix.h: Define GS_NAME.
5464 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
5466 Some preliminary changes for EMX support under OS/2.
5468 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
5469 __EMX__ similar to __MSDOS__.
5470 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
5472 2002-04-25 Werner LEMBERG <wl@gnu.org>
5474 * doc/groff.texinfo: Integrated groff_out.man.
5477 2002-04-23 Werner LEMBERG <wl@gnu.org>
5479 * man/groff_out.man: Minor fixes.
5481 2002-04-23 Werner LEMBERG <wl@gnu.org>
5483 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
5484 correct page references.
5485 Fixed many index entries.
5487 2002-04-23 Bernd Warken <bwarken@mayn.de>
5489 * man/roff.man: Enlarged.
5491 2002-04-22 Werner LEMBERG <wl@gnu.org>
5493 * doc/groff.texinfo: More examples, other fixes.
5495 2002-04-20 Werner LEMBERG <wl@gnu.org>
5497 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
5498 will now form a chain, e.g.
5507 This is for compatibility with plan 9's troff.
5509 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
5513 * doc/groff.texinfo: Add documentation of remaining requests and
5516 2002-04-19 Werner LEMBERG <wl@gnu.org>
5518 * doc/groff.texinfo: Add documentation of remaining escapes.
5520 * font/devdvi/generate/tc.map: Remove entry for `sr'.
5521 * font/devdvi/*TC: Regenerated.
5523 2002-04-18 Werner LEMBERG <wl@gnu.org>
5525 * src/roff/troff/input.cc (token::next): Make \H behave consistently
5526 if not in compatibility mode, i.e., increment relative to the
5528 * doc/groff.texinfo: Updated accordingly.
5530 2002-04-17 Werner LEMBERG <wl@gnu.org>
5532 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
5534 2002-04-16 Bernd Warken <bwarken@mayn.de>
5536 * src/roff/groff/groff.man: Improve documentation of -P option.
5539 2002-04-15 Werner LEMBERG <wl@gnu.org>
5541 Add new escape \F to switch font family.
5543 * src/roff/troff/input.cc (token::next): Handle \F.
5544 * src/roff/troff/env.cc (environment::set_family): Handle
5546 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5549 2002-04-14 Werner LEMBERG <wl@gnu.org>
5551 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
5554 2002-04-13 Werner LEMBERG <wl@gnu.org>
5556 Implement \f[] as an alternative to \fP. Change \mP and \MP to
5557 \m[] and \M[], respectively.
5559 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
5560 (symbol::symbol): Handle NULL string and empty string differently.
5561 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
5562 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
5563 Add optional parameter.
5564 Updated calling functions.
5565 (get_copy, do_glyph_color, do_fill_color, token::next): Use
5567 * src/roff/troff/env.cc (environment::set_font): Ditto.
5569 * src/preproc/pic/troff.cc (troff_output::set_fill,
5570 troff_output::reset_color: Updated.
5572 * tmac/www.tmac: Updated.
5574 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
5575 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
5578 * tmac/Xps.tmac: Remove some redundant code.
5580 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
5581 tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
5582 man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
5585 2002-04-13 Bernd Warken <bwarken@mayn.de>
5587 * src/include/printer.h, src/libs/libdriver/printer.cc
5588 (printer::change_fill_color): New member function.
5589 * src/libs/libdriver/input.cc (parse_D_command): Use it.
5591 2002-04-12 Werner LEMBERG <wl@gnu.org>
5593 * doc/groff.texinfo: Completed pass on gtroff reference.
5595 2002-04-11 Werner LEMBERG <wl@gnu.org>
5597 * doc/groff.texinfo: More fixes.
5599 2002-04-11 Bernd Warken <bwarken@mayn.de>
5601 * src/include/color.h: Decorate with `const'.
5604 * src/libs/libgroff.color.cc: Decorate with `const'.
5606 (color::color): Initialize members.
5607 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
5608 command according to the documentation.
5610 * man/groff_out.man: Updated.
5613 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
5615 * src/preproc/html/pre-html.cc (write_start_image): Remove
5617 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
5619 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
5620 \C'hy' caused an assertion failure.
5622 * src/roff/troff/env.cc (environment::environment): Initialize
5624 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
5626 2002-04-10 Werner LEMBERG <wl@gnu.org>
5628 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
5629 Document pvs request and .pvs register.
5631 2002-04-09 Werner LEMBERG <wl@gnu.org>
5633 * doc/groff.texinfo: Improve and fix documentation of diversions
5636 2002-04-08 Werner LEMBERG <wl@gnu.org>
5638 * doc/groff.texinfo: Fix documentation of drawing functions.
5641 2002-04-07 Werner LEMBERG <wl@gnu.org>
5643 * doc/groff.texinfo: Better documentation of double quotes as
5647 2002-04-06 Werner LEMBERG <wl@gnu.org>
5649 * man/groff_font.man: Document names of special characters better.
5650 * doc/groff.texinfo: Minor improvements.
5652 * tmac/lbp.tmac: Load latin1.tmac.
5653 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
5655 * font/devX*/*: Regenerated (all chars > 0x80 removed).
5657 2002-04-05 Werner LEMBERG <wl@gnu.org>
5659 * tmac/tty.tmac: Don't use shc request.
5660 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
5663 * man/groff_diff.man: Minor fixes.
5665 * font/devlbp/*: Remove all `charXXX' entities.
5667 * src/libs/libgroff/font.cc (font::~font): Deallocate
5668 `special_device_coding'.
5669 (font::load): Use `new' for allocating `special_device_coding'.
5670 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
5671 Removed unused member.
5673 2002-04-05 Werner LEMBERG <wl@gnu.org>
5675 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
5676 (resource_manager::do_begin_binary,
5677 resource_manager::do_begin_data): Use it.
5679 * doc/texinfo.tex: Updated to version 4.2.
5681 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
5682 (token::zero_width_break): New inline function.
5683 * src/roff/troff/input.cc (token::next): Use it.
5684 (token::description): Updated.
5685 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
5686 (token::add_to_node_list, token::process): Use it.
5687 * NEWS, doc/groff.texinfo: Updated.
5689 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
5690 * tmac/tty.tmac: Add missing backslash.
5692 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
5694 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
5695 `.ps' register instead of `.s' to handle fractional point sizes.
5696 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
5697 limit_box::output): Ditto.
5698 * src/preproc/eqn/other.cc (size_box::compute_metrics,
5699 size_box::output): Ditto.
5700 * src/preproc/eqn/over.cc (over_box::compute_metrics,
5701 over_box::output): Ditto.
5702 * src/preproc/eqn/script.cc (script_box::compute_metrics,
5703 script_box::output): Ditto.
5704 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
5705 sqrt_box::output): Ditto.
5707 2002-04-03 Michael Selway <mas@ssl.co.uk>
5709 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
5712 2002-04-03 Werner LEMBERG <wl@gnu.org>
5714 * doc/homepage.ms: Reduce title size.
5715 * doc/groff.texinfo: Fix documentation of .t register.
5716 Fix handling of colon.
5719 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
5720 only if page length is positive to avoid a loop.
5722 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
5725 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
5727 * src/include/nonposix.h, src/roff/groff/pipeline.c:
5728 s/__CYGWIN32__/__CYGWIN__/.
5730 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
5732 * doc/gnu.xpm: New image contributed by Emily Mulley.
5733 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
5734 (homepage.html): Be dependent on gnu.eps.
5735 * doc/homepage.ms: Updated to new image.
5737 * src/devices/grohtml/post-html.cc (html_printer): New member
5739 (html_printer::flush_sbuf, html_printer::set_char): Set it.
5740 (html_printer::sbuf_continuation): Use it.
5742 2002-03-28 Werner LEMBERG <wl@gnu.org>
5744 * src/libs/libgroff/getopt.c: Updated to latest version.
5746 * tmac/README: More on hyphen.tex license.
5748 2002-03-26 Larry Kollar <kollar@alltel.net>
5750 * doc/groff.texinfo: Add documentation of most missing requests.
5752 2002-03-25 Werner LEMBERG <wl@gnu.org>
5754 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
5755 of `+-', `mu', and `di', respectively.
5757 * font/devascii/R.proto, font/devutf8/R.proto,
5758 font/devlatin1/R.proto, font/devhtml/R.proto,
5759 font/devcp1047/R.proto, font/devlpb/*: Add them.
5760 * font/devps/generate/textmap: Ditto.
5761 * font/devps/*: Regenerated.
5762 * font/devlj4/generate/text.map: Add them.
5763 * font/devlj4/*: Regenerated.
5764 * font/devdvi/generate/tc.map: Use them.
5765 * font/devdvi/generate/texsy.map: Add them.
5766 * font/devdvi/*: Regenerated.
5767 * font/devX*/*: Regenerated.
5769 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
5770 tmac/tty-char.tmac: Updated.
5772 * NEWS, man/groff_char.man: Updated.
5774 2002-03-24 Werner LEMBERG <wl@gnu.org>
5776 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
5777 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
5778 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
5779 we use `.fchar' in dvi.tmac.
5780 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
5781 * tmac/Xps.tmac: Simplify some char definitions.
5782 Add definition for \[f/].
5783 * man/groff_char.man: Updated for new X.tmac.
5785 * tmac/README: New file.
5787 2002-03-23 Phil Lobbes <phil@perkpartners.com>
5789 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
5790 internal .y.o rule took precendence over the .y.cc rule, compiling
5791 the yacc files with gcc instead of g++.
5793 2002-03-23 Werner LEMBERG <wl@gnu.org>
5795 * tmac/dvi.tmac: Add replacement font for `CB'.
5797 * tmac/doc.tmac: s/request/macro/ in messages.
5798 (doc-generic-macro): Improve error message.
5799 * tmac/groff_mdoc.man: Minor improvements.
5801 2002-03-22 Werner LEMBERG <wl@gnu.org>
5803 * doc/groff.texinfo: Document possible conflict between `tr' and
5806 2002-03-21 Werner LEMBERG <wl@gnu.org>
5808 Improve handling of hyphenation patterns. It is now possible to
5809 use most of TeX's pattern files unmodified. To make the process
5810 more flexible, a new request `hpfcode' has been added which
5811 provides a character code mapping for the `hpf' request. See
5812 comment before hpf_getc() for more details.
5814 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
5816 (read_patterns_file): Additional parameter for exception dictionary.
5817 Extended to recognize \pattern, \hyphenation, and \endinput.
5818 (do_hyphenation_patterns_file): Updated.
5819 * src/roff/troff/env.h (hpf_code_table): New extern.
5821 * src/roff/troff/input.cc (hpf_code_table): New array.
5822 (init_hpf_code_table, hyphenation_patterns_file_code): New
5824 (hyphenation_code): Handle translation from `trin' correctly.
5825 (main, init_input_requests): Updated.
5826 (charinfo::set_translation): Handle hyphenation code also.
5828 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
5831 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
5832 char' is used for offsets in hyphenation exceptions.
5834 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
5836 * NEWS, man/groff_diff.man, man/groff.man: Document it.
5838 2002-03-20 Larry Kollar <kollar@alltel.net>
5840 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
5843 2002-03-18 Werner LEMBERG <wl@gnu.org>
5845 * tmac/html.tmac: Fix serious typo.
5847 2002-03-17 Larry Kollar <kollar@alltel.net>
5849 * doc/groff.texinfo: Add documentation for `writec' request.
5851 2002-03-17 Werner LEMBERG <wl@gnu.org>
5853 Added request `hpfa' to append hyphenation patterns.
5855 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
5857 (hyphenation_patterns_file): Renamed to...
5858 (do_hyphenation_patterns_file): This.
5859 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
5861 (init_hyphen_requests): Updated.
5862 * NEWS, man/groff.man, man/groff_diff.man: Document it.
5864 2002-03-16 Werner LEMBERG <wl@gnu.org>
5866 Added request `writec' in analogy to `tmc'.
5868 * src/roff/troff/input.cc (write_request): Renamed to...
5869 (do_write_request): This.
5870 Added one parameter.
5871 (write_request, write_request_continue): New functions.
5872 (init_input_requests): Updated.
5873 * NEWS, man/groff.man, man/groff_diff.man: Document it.
5875 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
5877 * NEWS: Document it.
5879 2002-03-15 Werner LEMBERG <wl@gnu.org>
5881 * man/groff.man: Add writem request.
5883 Add request `trin' (translate input) to make `.asciify' work
5884 correctly. This is necessary since `charXXX' entity names are no
5885 longer hardcoded in font definition files.
5887 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
5888 `translate_input' members.
5889 (charinfo::set_asciify_code, charinfo::get_asciify_code,
5890 charinfo::set_translation_input): New methods.
5891 (charinfo::set_translation): Add third argument.
5892 * src/roff/troff/input.cc (charinfo:set_translation): Set
5894 (do_translate): Add second argument.
5895 (translate_input): New function.
5896 (init_input_requests): Updated.
5897 * src/roff/troff/node.cc (glyph_node::asciify,
5898 composite_node::asciify): Use `get_asciify_code'.
5900 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
5902 * NEWS, man/groff.man, man/groff_diff.man: Updated.
5904 2002-03-14 Larry Kollar <kollar@alltel.net>
5906 * doc/groff.texinfo: Improve documentation of .RS and .RE.
5908 2002-03-14 Werner LEMBERG <wl@gnu.org>
5910 Add a new request `sizes' similar to the `sizes' command in DESC
5913 * src/roff/troff/env.cc (override_sizes): New function.
5914 (init_env_requests): Use it.
5915 * src/roff/troff/token.h: Export `read_string'.
5916 * NEWS, man/groff_diff.man, man/groff.man: Document it.
5918 2002-03-12 Werner LEMBERG <wl@gnu.org>
5920 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
5922 2002-03-10 Werner LEMBERG <wl@gnu.org>
5924 * tmac/pspic.tmac: Add support for -Tdvi.
5925 * tmac/dvi.tmac: Include pspic.tmac.
5926 * src/devices/grodvi/grodvi.man: Document it.
5929 * font/devlj4/generate/Makefile: Fix URL of metric files.
5931 2002-03-09 Werner LEMBERG <wl@gnu.org>
5933 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
5935 2002-03-09 Larry Kollar <kollar@alltel.net>
5937 * tmac/groff_ms.man: Add documentation for RS and RE macros.
5939 2002-03-08 Werner LEMBERG <wl@gnu.org>
5941 * doc/groff.texinfo: Fixes for texinfo 4.1.
5943 2002-03-07 Werner LEMBERG <wl@gnu.org>
5945 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
5947 Handle CYGWIN properly.
5949 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
5951 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
5952 * tmac/lbp.tmac: Add some font translations.
5954 2002-03-02 Werner LEMBERG <wl@gnu.org>
5956 * font/devcp1047/R.proto, font/devlatin1/R.proto,
5957 font/devhtml/R.proto: Remove `charXXX' entries.
5958 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
5961 * font/devlj4/generate/text.map: Remove `charXXX' entries.
5962 * font/devlj4/*: Regenerated all font definition files.
5963 * tmac/lj4.tmac: Load latin1.tmac.
5965 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
5966 from 2000-06-17: LJ4 metric files are *not* text files.
5968 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
5969 register to test for EBCDIC.
5971 2002-03-01 Werner LEMBERG <wl@gnu.org>
5973 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
5974 files (as grops already does).
5975 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
5977 * src/devices/grops/grops.man: Document comment lines in encoding
5980 * tmac/cp1047.tmac: New file.
5981 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
5982 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
5983 * tmac/Makefile.sub (NORMALFILES): Updated.
5985 * tmac/ec.tmac: Don't load latin1.tmac again.
5987 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
5988 font/devps/generate/dingbats.map,
5989 font/devps/generate/dingbats.rmap, font/devps/text.enc,
5990 font/devps/generate/Makefile (symbolmap): Add header comment.
5991 * font/devps/generate/textmap: Ditto.
5992 Remove `charXXX' entries.
5993 * font/devps/symbolmap: Regenerated.
5994 * font/devps/*: Regenerated all font definition files.
5996 2002-02-28 Werner LEMBERG <wl@gnu.org>
5998 Add color support to grodvi (for drawing colors are currently
5999 translated to gray values).
6001 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
6002 (dvi_printer): Add `cur_color' member.
6003 (dvi_printer::set_color): New function.
6004 (draw_dvi_printer): Remove `fill'.
6005 (draw_dvi_printer::fill_next): Pass environment as parameter.
6006 Update code for new color support translated to gray.
6007 (dvi_printer::set_char): Updated.
6008 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
6009 changes crossing the page border.
6010 (dvi_printer::draw): Updated.
6011 Remove cases `f' and `F'.
6012 * tmac/dvi.tmac: Add color definitions.
6013 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6015 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
6018 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
6019 versions of autoconf.
6020 * configure: Updated.
6022 * doc/homepage.ms: Use `.blm'.
6023 * tmac/www.tmac (www-depth): New auxiliary variable.
6024 (www-pop-level): Don't issue HTML tag.
6025 (ULS, ULE, LI): Use absolute indentation.
6027 * src/devices/grops/ps.cc (ps_printer::begin_page,
6028 ps_printer::end_page): Switch forth and back to default color while
6029 starting a new page.
6031 2002-02-27 Werner LEMBERG <wl@gnu.org>
6033 Add EC and TC fonts to devdvi.
6035 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
6036 * font/devdvi/generate/cork.map: Renamed to...
6037 * font/devdvi/generate/ec.map: This.
6038 Remove entry for `aq'.
6039 * font/devdvi/generate/tc.map: New file.
6040 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
6043 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
6044 * font/devdvi/Makefile.sub (DEVFILES): Updated.
6045 * tmac/ec.tmac: New file.
6046 * tmac/Makefile.sub (NORMALFILES): Updated.
6047 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6048 * man/groff_char.man: Check `ECFONTS' register.
6050 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
6052 2002-02-26 Werner LEMBERG <wl@gnu.org>
6054 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
6055 * font/devdvi/generate/cork.map: Add 'y and 'Y.
6056 * font/devdvi/*: Updated.
6057 * tmac/dvi.tmac: Formatting.
6059 Add font `HBI' for the dvi output.
6060 Add support for font families `T' and `H'.
6062 * font/devdvi/HBI: New file.
6063 * font/devdvi/B: Renamed to ...
6064 * font/devdvi/TB: This.
6065 * font/devdvi/BI: Renamed to ...
6066 * font/devdvi/TBI: This.
6067 * font/devdvi/I: Renamed to ...
6068 * font/devdvi/TI: This.
6069 * font/devdvi/R: Renamed to ...
6070 * font/devdvi/TR: This.
6071 * font/devdvi/H: Renamed to ...
6072 * font/devdvi/HR: This.
6073 * font/devdvi/Makefile.sub (DEVFILES): Updated.
6074 * font/devdvi/generate/Makefile (HBI): New rule.
6076 (R, I, B, BI, H): Renamed to ...
6077 (TR, TI, TB, TBI, HR): This, respectively.
6079 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6080 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
6081 Add `styles' and `family' keywords.
6082 * tmac/dvi.tmac: Alias `H' to `HR'.
6083 Add some fspecial requests for italic fonts.
6084 Add TR and TI as special.
6085 Add support for `_' with font CWI.
6087 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
6088 operator `:'. Until now, the expression `0:1' would return 2
6091 2002-02-25 Werner LEMBERG <wl@gnu.org>
6093 * man/groff_char.man: Added some missing PS glyph names (from the
6095 * font/devps/generate/textmap, font/devps/symbolmap: Add
6098 * doc/groff.texinfo: Minor additions and fixes.
6099 * man/groff_diff.man: Remove documentation of fp request. This
6100 is already covered in the original troff manual.
6101 Updated to be consistent with other doc files.
6104 2002-02-24 Werner LEMBERG <wl@gnu.org>
6106 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
6108 Define new variable OTHERDEVDIRS (containing `font/devlj4
6109 font/devlbp' if not EBCDIC).
6110 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
6111 (OTHERDEVDIRS): New variable.
6112 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
6113 * configure: Regenerated.
6115 * NEWS, src/devices/grotty/grotty.man: Updated.
6117 2002-02-23 Werner LEMBERG <wl@gnu.org>
6119 * src/roff/troff/input.cc (do_overstrike, do_bracket,
6120 get_line_arg): Honour input level.
6122 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
6124 * font/*/*: Implement it in all font files.
6125 * font/devps/generate/textmap, font/devps/generate/symbolchars,
6126 * font/devps/symbolmap: Updated.
6127 * font/devlj4/generate/text.map: Updated.
6128 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
6129 * font/devdvi/generate/texmi.map: Updated.
6131 * font/devutf8/R.proto: Remove all `charXXX' entries.
6132 * font/devutf8/NOTES: Updated.
6134 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
6137 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
6139 * NEWS, man/groff_char.man: Updated.
6141 2002-02-21 Phil Lobbes <phil@perkpartners.com>
6143 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
6145 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6147 * src/roff/grog/grog.pl: Fix computation of $refer.
6149 2002-02-19 Werner LEMBERG <wl@gnu.org>
6151 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
6152 `snprintf' and `vsnprintf'.
6154 * src/include/htmlindicate.h: Renamed to...
6155 * src/include/htmlhint.h: This.
6156 * src/include/Makefile.sub: Updated.
6157 * src/preproc/eqn/main.cc: Updated.
6159 2002-02-18 Werner LEMBERG <wl@gnu.org>
6161 * man/roff.man, man/groff_out.man, man/groff.man,
6162 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
6163 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
6165 * win32-diffs: Updated.
6167 2002-02-17 Werner LEMBERG <wl@gnu.org>
6169 * doc/Makefile (clean): Add *.eps.
6170 (MEMACROS): Removed.
6171 (TFLAG): New variable.
6174 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
6176 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
6178 * tmac/www.tmac: Use dummy diversion while resetting and disabling
6180 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
6182 * src/roff/troff/troff.man: Fix order of parameter description.
6186 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
6188 Simplify image handling for grohtml.
6191 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
6193 (html_text::dump_stack): Don't emit newline while debugging.
6194 (html_text::do_push) [DEBUGGING]: Print more info.
6195 (html_text::check_emit_text): Fix handling of <p>.
6196 * src/devices/grohtml/html.h: Updated.
6197 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
6198 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
6199 send its data to stderr also.
6201 (simple_output::space_or_newline) [DEBUGGING]: Removed.
6202 * src/devices/grohtml/post-html.cc (html_printer::do_links,
6203 html_printer::html_printer): Remove `DEBUGGING' conditionals.
6205 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
6207 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
6208 is_inline_image): Removed.
6209 (html_begin_suppress, html_end_suppress): Don't take a parameter.
6210 (graphic_start, graphic_end): Removed.
6211 * src/include/htmlindicate.h: Updated.
6212 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
6213 (macroset_template): New global variable.
6214 (makeFileName): Use `macroset_template'.
6215 (write_end_image): Don't take a parameter.
6217 (write_start_image: Don't emit newline.
6218 (char_buffer::write_upto_newline): Updated.
6219 (char_buffer::skip_to_newline): Renamed to ...
6220 (char_buffer::skip_until_newline): This.
6222 (char_buffer::write_file_troff, char_buffer::write_file_html):
6224 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
6225 (removeAllPages): Remove `DEBUGGING' conditionals.
6226 (addRegDef, dump_args): New functions.
6227 (char_buffer::do_html, char_buffer::do_image): Handle
6228 `www-image-template' command line variable.
6229 Add more debugging code.
6230 (addps4html): Removed.
6231 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
6233 * src/preproc/eqn/main.cc: Include `ctype.h'.
6234 (suppress_html): Removed.
6236 (inline_equation): Use `html_begin_suppress' and
6237 `html_end_suppress'.
6238 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
6239 (troff_output::start_picture, troff_output::finish_picture):
6241 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
6242 (process_input_file): Updated.
6244 * src/roff/troff/div.cc (page_number): Set page number only if the
6245 `ps4html' register isn't defined.
6246 * src/roff/troff/input.cc (image_no): New external variable.
6247 (do_suppress): Use it.
6248 * src/roff/troff/node.h (suppress_node::image_id): New member.
6249 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
6250 (suppress_node::suppress_node): Initialize `image_id' member.
6251 (suppress_node::same): Handle `image_id' also.
6252 (suppress_node::copy): Updated.
6253 (last_image_id): New global variable.
6254 (suppress_node::tprint): Use it.
6256 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
6258 * tmac/pspic.mac (PSPIC): Fix html support.
6259 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
6260 * tmac/www.tmac (www-image-template): Set up.
6261 (HTMLINDEX): Renamed to...
6263 (BODYCOLOR): Renamed to...
6265 (BACKGROUND): Renamed to...
6267 (URL): Change order of parameters for consistency.
6268 (MAILTO): Renamed to...
6270 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
6271 (IMG, PIMG, MPIMG): This.
6272 (HTML-H-BEGIN, HTML-H-END): Renamed to...
6274 (LINKS): Renamed to...
6276 (LINE): Renamed to...
6278 (NO-AUTO-RULE): Renamed to...
6280 (HTML-TL): Renamed to...
6282 (UL-BEGIN, UL-END): Renamed to...
6284 (DROPCAP): Renamed to...
6286 (TS, TE, EQ, EN): Provide default definitions.
6287 (www-make-unique-name): Updated.
6288 (HTML-IMAGE-INLINE): Fix typo.
6289 * tmac/groff_www.man: Updated.
6291 * doc/Makefile (homepage.html): Add option -r to grohtml.
6292 Use shortened image name.
6293 * doc/groff.texinfo: Updated info on grohtml strings and macros.
6294 * doc/homepage.ms: Updated and extended.
6296 2002-02-14 Werner LEMBERG <wl@gnu.org>
6298 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
6300 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
6301 SGR_BACK_DEFAULT_COLOR): Replaced with ...
6302 (tty_printer::put_color): Use it.
6303 (ttr_printer::end_page): Simplify.
6305 2002-02-13 Werner LEMBERG <wl@gnu.org>
6307 * tmac/groff_tmac.man: Moved to...
6308 * man/groff_tmac.man: This place.
6309 * tmac/Makefile.sub, man/Makefile.sub: Updated.
6311 2002-02-12 Werner LEMBERG <wl@gnu.org>
6313 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
6314 $(COMPILE.c) to not include groff's assert.h.
6316 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
6318 * NEWS, src/drivers/grotty/grotty.man: Document it.
6320 2002-02-11 Werner LEMBERG <wl@gnu.org>
6322 * src/libs/snprintf/snprintf.c: Updated to latest version
6325 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
6326 test whether there is `.]' also.
6327 Don't check for spaces after `.['.
6328 * src/roff/grog/grog.sh: Do the same.
6330 2002-02-10 Werner LEMBERG <wl@gnu.org>
6334 * src/libs/libgroff/illegal.cc: Renamed to ...
6335 * src/libs/libgroff/invalid.cc: This.
6336 (illegal_char_table): Renamed to ...
6337 (invalid_char_table): This.
6338 * src/libs/libgroff/Makefile.sub: Updated.
6339 * win32-diffs: Updated.
6341 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
6342 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
6343 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
6344 font::load), src/preproc/eqn/main.cc (read_line, main),
6345 src/preproc/eqn/lex.cc (file_input::read_line),
6346 src/preproc/pic/lex.cc (file_input::read_line,
6347 simple_file_input::get, simple_file_input::peek),
6348 src/preproc/pic/main.cc (top_input::get, top_input::peek),
6349 src/preproc/pic/pic.man, src/preproc/refer/main.cc
6350 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
6351 do_bib), src/preproc/tbl/main.cc (table_input::get),
6352 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
6353 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
6354 do_zero_width, read_request, encode_char, ps_get_line,
6355 transparent_file, get_char_for_escape_name, transparent_translate,
6356 asciify, input_char_description, read_string, set_string),
6357 src/roff/troff/env.cc (environment::add_html_tag),
6358 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
6360 * src/include/lib.h: Updated.
6362 * src/preproc/eqn/eqn.cc: Removed.
6366 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
6368 2002-02-09 Werner LEMBERG <wl@gnu.org>
6370 * doc/gnu.xpm: New image.
6371 * doc/Makefile (DOCS): Add homepage.ps.
6372 Add rules for converting xpm->png and xpm->eps.
6373 Use `gnu.{xpm,eps}' as image names.
6374 * doc/homepage.ms: Updated.
6376 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
6378 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
6379 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
6380 Remove calls to `B1' and `B2'
6381 (PNG-IMAGE): New macro for inclusion of images in PNG format.
6382 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
6383 auxiliary variables for MARGIN-PNG-IMAGE.
6384 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
6385 auxiliary macros for MARGIN-PNG-IMAGE.
6386 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
6388 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
6389 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
6390 (DROPCAP): New macro to produce dropcap characters.
6391 (www-do-image): Renamed back to...
6392 (HTML-DO-IMAGE): This.
6393 Updated all callers.
6395 * doc/Makefile (gnubw.eps): Updated.
6396 * doc/homepage.ms: Updated.
6398 2002-02-08 Werner LEMBERG <wl@gnu.org>
6400 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
6401 Added `linethick' to table in section `Style Variables'.
6403 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
6405 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
6407 2002-02-07 Werner LEMBERG <wl@gnu.org>
6409 Adding options -C (compatibility mode) and -c (grotty's old output
6412 * src/roff/nroff/nroff.sh: Implement it.
6414 * NEWS, src/roff/nroff/nroff.man: Updated.
6416 * PROBLEMS: Document bison 1.32 bug.
6418 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
6420 * src/roff/troff/node.cc (make_tfont): Define it earlier.
6421 * src/roff/troff/div.h: Add prototype for `end_diversions'.
6422 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
6423 * src/roff/troff/env.h: Add prototype for `title'.
6425 Adding EBCDIC support to grotty.
6427 * src/devices/grotty/tty.cc (CSI): New macro.
6428 (SGR_*, tty_printer::put_color): Use it.
6430 2002-02-06 Werner LEMBERG <wl@gnu.org>
6432 Implementing color support in grotty. The new switch -c activates
6433 the old drawing scheme, disabling color at the same time. The new
6434 switch `-i' selects italic instead of underlining (SGR only).
6436 * src/devices/grotty/tty.cc (putstring): New define instead of
6437 `fputs'. Updated all callers.
6438 (old_drawing_scheme): New global variable.
6439 (COLOR_CHANGE): New enum value.
6440 (SGR_*): New defines containing color handling escape sequences.
6441 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
6442 (glyph): New members `back_color_idx' and `fore_color_idx'.
6443 (glyph::order): Add COLOR_CHANGE.
6444 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
6445 `is_underline', `is_bold', `cu_flag', `tty_colors'.
6446 New methods `make_underline', `make_bold', `color_to_idx',
6447 `change_color', `put_color'.
6448 (cu_flag): Moved into `tty_printer' class.
6449 (tty_printer::tty_printer): Initialize colors.
6450 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
6451 tty_printer::draw, tty_printer::end_page): Handle colors also.
6452 (main): Add options `-c' and `-i'.
6454 * NEWS, src/devices/grotty/grotty.man: Updated.
6456 * src/include/errarg.h (errarg): Add support for `unsigned int'.
6457 * src/libs/libgroff/errarg.c: Implement it.
6459 * src/include/printer.h (printer): Add `change_color' method
6460 (currently used by grotty only).
6461 * src/libs/libdriver/printer.cc: Implement it.
6462 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
6463 call to `pr->change_color'.
6465 * src/roff/troff/node.cc (troff_output_file::fill_color,
6466 troff_output_file::glyph_color): Call `do_motion'.
6468 * tmac/tty.tmac: Add color definitions.
6470 * src/roff/groff/groff.man: Minor fixes.
6472 2002-02-05 Bernd Warken <bwarken@mayn.de>
6474 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
6475 it. This is a preparation for future changes.
6477 2002-02-05 Werner LEMBERG <wl@gnu.org>
6479 * src/roff/troff/input.cc (process_input_stack): Fix the case
6480 where leading spaces are followed by \f or \s; previously, an
6481 incorrect space width has been used.
6483 * doc/roff.man (quoted_char): Fix argument.
6484 (comment): Define string.
6486 2002-02-04 Larry Kollar <kollar@alltel.net>
6488 * doc/groff.texinfo: More fixes.
6490 2002-02-04 Werner LEMBERG <wl@gnu.org>
6492 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
6493 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
6494 `restore_compatibility' before `output_string' -- the LINE_STRING
6495 register now already contains proper switches from and to
6498 * man/groff_char.man: Add Euro symbol.
6499 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
6500 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
6501 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
6504 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
6506 (.texinfo.html): Add support for texinfo->html.
6508 2002-02-03 Werner LEMBERG <wl@gnu.org>
6510 Added three new requests `ds1', `as1', and `ami'. The former two
6511 are equivalent to `ds' and `as' with the difference that
6512 compatibility mode is saved on entry, switched off during string
6513 expansion, and restored on exit. The latter is the pendant to `dei'
6516 (do_define_string): Use `define_mode' and `calling mode'.
6517 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
6518 end of string, respectively.
6519 (define_string, append_string): Use `calling_mode'.
6520 (define_nocomp_string, append_nocomp_string,
6521 define_string_indirect): New functions.
6522 (init_input_requests): Updated.
6523 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6525 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
6526 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
6527 mm macro package accesses this string register directly.
6528 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
6530 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
6533 2002-02-02 Larry Kollar <kollar@alltel.net>
6535 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
6537 2002-01-31 Werner LEMBERG <wl@gnu.org>
6539 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
6541 2002-01-31 Bernd Warken <bwarken@mayn.de>
6543 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
6544 * man/groff_out.man: Revised and updated.
6546 2002-01-30 Bernd Warken <bwarken@mayn.de>
6548 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
6549 out the unused `{' and `}' commands. Undefined by default.
6550 (IntArray): Make `data' private.
6551 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
6552 new methods instead.
6553 (skip_line_D, skip_to_end_of_line): New functions.
6554 (get_D_fixed_args): Use `skip_line_D'.
6555 Changed to handle dummy odd arguments by ...
6556 (get_D_fixed_args_odd_dummy): This new function.
6557 (get_D_variable_args): Split some code into ...
6558 (get_possibly_integer_args): This new function.
6559 (send_draw): Use more `const'.
6560 (delete_current_env): New function.
6561 (position_to_end_of_args): Use `size_t'.
6563 (send_draw): Updated.
6564 (parse_D_command): Handle `c', `C', and `t' better.
6568 2002-01-29 Werner LEMBERG <wl@gnu.org>
6571 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
6572 @Def...ListEnd which replaces @Def...x. This is necessary to get
6573 proper HTML output -- see the comment in the file for more
6577 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
6579 Fixes to make color changes of 2002-01-21 work with grohtml.
6581 * src/devices/grohtml/post-html.cc (style): Updated.
6582 (html_printer): Remove unused methods.
6583 (html_printer::do_font, html_printer::draw, html_printer::set_char,
6584 html_printer::special): Updated.
6585 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
6586 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
6587 Added some debugging code.
6588 (html_text::start_tag): Updated.
6589 (html_text::do_push): New method.
6590 (html_text::push_para): Call it.
6591 Add method for handling color.
6592 (html_text::do_color): Updated.
6593 (html_text::shutdown): Handle color.
6594 * src/devices/grohtml/html-text.h (tag_definition): New member
6598 2002-01-28 Werner LEMBERG <wl@gnu.org>
6600 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
6602 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
6604 Add two switches -a and -g to control the antialiasing bits for
6605 text and graphics, respectively.
6607 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
6609 * src/devices/grohtml/grohtml.man: Document them.
6610 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
6612 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
6613 (setupAntiAlias): New function.
6614 (createAllPages): Updated.
6615 (scanArguments): Handle `-a' and `-g'.
6616 (main): Call `setupAntiAlias'.
6619 2002-01-27 Werner LEMBERG <wl@gnu.org>
6621 * doc/groff.texinfo (Def*): Call index function after deffn.
6623 * tmac/html.tmac: Call `nroff' request.
6625 2002-01-26 Larry Kollar <kollar@alltel.net>
6627 * tmac/groff_ms.man: Add some omissions.
6629 2002-01-25 Larry Kollar <kollar@alltel.net>
6631 * tmac/groff_ms.man: Typographical improvements.
6633 2002-01-25 Werner LEMBERG <wl@gnu.org>
6635 * doc/groff.texinfo: Updated version and copyright.
6636 * src/devices/grops/grops.man: Updated.
6638 * tmac/groff_tmac.man: Fix `ig' macro.
6640 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
6642 Use `.ne' unconditionally everywhere.
6643 (TS): Only insert some vertical space. Doing a page break is no
6644 longer necessary due to the redefinition of the `ne' request.
6646 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
6647 warning for unknown subcommands but parse and pass them to the
6650 2002-01-24 Werner LEMBERG <wl@gnu.org>
6652 * tmac/groff_www.man, NEWS: Fix typos.
6654 2002-01-21 Werner LEMBERG <wl@gnu.org>
6656 Complete revision of color support:
6658 Adapt programs to the new libdriver/input.cc.
6660 Color spaces are no longer converted to RGB but transferred as-is
6661 in the troff intermediate output format.
6663 Handle default color gracefully. troff now supports a `default'
6664 color (which can't be changed).
6666 grops will now use the proper color space functions if available.
6670 Note that currently grohtml doesn't handle colors properly. This
6673 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
6674 (ui_to_a): New function.
6675 * src/include/lib.h: Updated.
6677 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
6678 (color): Simplified; removed all `double' members and methods.
6679 A new array `components' now holds the color parameters.
6680 (color::is_default, color::get_components): New methods.
6681 (color::operator==, color:operator!=): New.
6682 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
6683 to make access to the `components' array more comprehensible.
6684 * src/libs/libgroff/color.cc: Implement new color support.
6685 (atoh): Small fixes.
6686 (color::read_encoding): Simplified for new troff intermediate color
6688 (default_color): New global variable.
6690 * src/roff/troff/input.cc (default_symbol): New global variable.
6691 (lookup_color): Use it.
6692 (default_black): Removed.
6693 (do_glyph_color, do_fill_color): Simplified.
6694 (define_color): Handle default color.
6696 (do_if_request): Handle default color.
6697 * src/roff/troff/env.cc (environment::environment): Initialize
6698 colors with `default_color'.
6699 * src/roff/troff/node.cc (troff_output_file::put): Add method
6701 (troff_output_file::hex): Removed.
6702 (troff_output_file::fill_color, troff_output_file::glyph_color):
6703 Updated to include/color.h and libdriver/input.cc.
6705 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
6706 fill color properly (identically to the outline color). \D'f...'
6707 doesn't work any more.
6708 All function calls to it updated.
6710 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
6712 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
6715 * src/devices/grops/ps.cc (ps_output::put_color): New method.
6716 (ps_printer::sbuf_color): Make a real member instead of pointer.
6717 (ps_printer::fill_color, ps_printer::output_color): Removed.
6718 (ps_printer::ps_printer): Updated.
6719 (ps_printer::set_char): Ditto.
6720 (ps_printer::set_color): Use various color schemes.
6721 Use `put_color' method.
6722 (ps_printer::flush_sbuf): Don't set color.
6723 (ps_printer::fill_path): Take `environment' as parameter.
6724 Simplify color handling.
6725 (ps_printer::set_line_thickness): Renamed to ...
6726 (ps_printer::set_line_thickness_and_color): This (and updated).
6727 (ps_printer::set_color): Change second parameter from `complete'
6728 to `fill' which better describes what it does.
6729 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
6730 and text in the right order.
6732 Remove branches for `f' and `F'; this is handled by
6734 * src/devices/grops/ps.h: Updated.
6735 * font/devps/prologue (FL): Redefined.
6736 ({F,C}r,k,g: New color functions (with and without filling).
6738 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
6739 * man/groff_diff.man, man/groff.man, man/groff_out.man,
6740 doc/groff.texinfo, NEWS: Updated.
6742 2002-01-20 Bernd Warken <bwarken@mayn.de>
6744 * src/libs/libdriver/input.cc: Completely rewritten. See comments
6745 in this file for what has been changed.
6747 2002-01-19 Werner LEMBERG <wl@gnu.org>
6749 * test-groff: Fix GROFF_FONT_PATH.
6750 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
6751 is read before .TH or .Dd is parsed.
6753 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
6755 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
6756 quadrant boundaries.
6758 2002-01-18 Werner LEMBERG <wl@gnu.org>
6760 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
6763 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
6765 * tmac/doc.common: Initialize %I register for the %I macro to
6766 avoid (harmless) warning.
6767 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
6768 when in the SYNOPSIS section.
6770 2002-01-17 Bruno Haible <haible@clisp.cons.org>
6772 * src/preproc/pic/lex.cc (get_token): Fix typo.
6774 2002-01-17 Werner LEMBERG <wl@gnu.org>
6776 * devices/grops/ps.cc: Fix incorrectly applied last patch.
6778 2002-01-17 Larry Kollar <kollar@alltel.net>
6780 * tmac/groff_ms.man: Completely rewritten.
6782 2002-01-16 Werner LEMBERG <wl@gnu.org>
6784 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
6786 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
6788 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
6790 (ps_printer::draw): Ditto.
6792 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
6794 * tmac/groff_mdoc.man: Minor fixes.
6796 2002-01-13 Werner LEMBERG <wl@gnu.org>
6798 * man/groff_out.man: Some fixes.
6800 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
6802 * doc/pic.ms: Fix typos.
6804 2002-01-12 Werner LEMBERG <wl@gnu.org>
6806 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
6808 2002-01-10 Werner LEMBERG <wl@gnu.org>
6810 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
6814 2002-01-09 Bernd Warken <bwarken@mayn.de>
6816 * man/groff_out.man: Revised.
6817 * man/roff.man: Minor fixes.
6818 * src/roff/troff/troff.man: Some reordering.
6820 2002-01-09 Werner LEMBERG <wl@gnu.org>
6822 * tmac/an-old.tmac: Add dummy macros for equation support.
6824 2002-01-07 Werner LEMBERG <wl@gnu.org>
6826 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
6828 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
6830 * tmac/groff_man.man: Small improvements.
6832 2002-01-07 Bernd Warken <bwarken@mayn.de>
6834 * man/groff_diff.man: Revised.
6836 2002-01-06 Werner LEMBERG <wl@gnu.org>
6838 * tmac/www.tmac: Remove extraneous backslash.
6840 2002-01-06 Bernd Warken <bwarken@mayn.de>
6842 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
6844 2002-01-05 Werner LEMBERG <wl@gnu.org>
6846 Integrated groffer, contributed by Bernd Warken.
6848 * contrib/groffer/*: New.
6849 * Makefile.in, NEWS: Updated.
6851 2002-01-04 Werner LEMBERG <wl@gnu.org>
6853 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
6854 registers defined in macro packages.
6855 Revising the ms part.
6857 2002-01-04 Larry Kollar <kollar@alltel.net>
6859 * doc/groff.texinfo: Add documentation for ms macros.
6861 2002-01-02 Werner LEMBERG <wl@gnu.org>
6863 First step in adding PS support for the Euro symbol. `eu' is the
6864 official Euro logo, `Eu' is a font-specific glyph variant.
6866 * font/devps/text.enc: Add `Euro' at position 9.
6867 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
6868 * font/devps/symbolmap: Regenerated.
6872 2002-01-02 Bernd Warken <bwarken@mayn.de>
6874 * man/roff.man: Revised.
6876 2002-01-01 Bernd Warken <bwarken@mayn.de>
6878 * src/roff/groff/groff.man: Completely rewritten.
6880 2001-12-31 Werner LEMBERG <wl@gnu.org>
6882 * doc/Makefile: Updated.
6884 2001-12-30 Werner LEMBERG <wl@gnu.org>
6886 * tmac/www.tmac: Make all names of internal macros/registers/strings
6887 lowercase, and prepend `www-'.
6888 Other minor changes.
6889 * src/roff/troff/troff.man: Add preprocessor string at BOF.
6891 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
6893 Implement option `-b' in grohtml to set the HTML background colour.
6895 * src/devices/grohtml/post-html.cc (default_background): New global
6897 (html_printer::html_printer): Initialize `background' to
6898 `default_background'.
6899 (main): Implement option `-b'.
6901 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
6903 * src/devices/grohtml/grohtml.man: Updated.
6904 * doc/Makefile (.ms.html): Use `-b'.
6905 * tmac/html.tmac: Don't set background color.
6907 Add new grohtml tag `.html-tl'.
6909 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
6911 (title_desc::title_desc): Updated.
6912 (html_printer::troff_tag): Handle `.html-tl'.
6913 (html_printer::write_title): Use `with_h1'.
6914 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
6915 (HTML-TL): New macro.
6917 Add support for unordered lists in HTML.
6919 * tmac/www.tmac (www-level): New auxiliary register.
6920 (www-level1, www-level2, www-level3): New auxiliary strings.
6921 (www-push-level, www-pop-level): New auxiliary macros
6922 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
6926 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
6927 (DEFAULT_VERTICAL_OFFSET): Removed.
6928 (IMAGE_BOARDER_PIXELS): Set to 0.
6929 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
6930 (vertical_offset): Initialize with 0.
6931 (gsPaper): New global variable.
6932 (get_resolution): Scan for and return unsigned int.
6933 (get_papersize): New function to get paper length from devps/DESC.
6934 (determine_vertical_offset): New function.
6935 (createAllPages): Produce gray-level images and use proper page
6937 (createImage): Use `-quiet' option of pnmcrop.
6938 (addZ): Fix passing of `-Z'.
6939 (scanArguments): Fix handling of `-o'.
6940 (main): Call `determine_vertical_offset'.
6941 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
6944 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
6945 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
6946 glyph descenders properly.
6948 * doc/homepage.ms: Include `gnubw.eps'.
6949 * doc/Makefile (gnubw.eps): New rule.
6950 (homepage.html): Depend on `gnubw.eps'.
6952 2001-12-25 Werner LEMBERG <wl@gnu.org>
6954 * src/roff/troff/input.cc (default_black): Fix return value.
6956 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
6958 * tmac/doc-common (Dt): Change output of architecture strings.
6959 Do some syntax cleanup.
6960 * tmac/groff_mdoc.man: Updated.
6962 2001-12-23 Werner LEMBERG <wl@gnu.org>
6964 Adding an `itc' request (input line trap accepting \c).
6966 * src/roff/troff/env.h (environment): New member
6967 `continued_input_trap'.
6968 Make `do_input_trap' a friend function instead of `input_trap'.
6969 * src/roff/troff/env.cc (environment::environment,
6970 environment::copy): Updated.
6971 (environment::newline): Implement it.
6972 (do_input_trap): New function.
6973 (input_trap): Call `do_input_trap'.
6974 (input_trap_continued): New function.
6975 (init_env_requests): Updated.
6976 * src/roff/troff/TODO: Updated.
6978 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
6981 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
6983 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
6985 * tmac/doc-common, tmac/doc-syms: Small updates.
6987 2001-12-22 Colin Watson <cjwatson@debian.org>
6989 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
6991 2001-12-22 Bernd Warken <bwarken@mayn.de>
6993 * MANIFEST: New file.
6995 2001-12-22 Werner LEMBERG <wl@gnu.org>
6997 * src/preproc/grn/grn.man: Updated.
6999 2001-12-22 Solar Designer <solar@openwall.com>
7001 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
7004 2001-12-19 Werner LEMBERG <wl@gnu.org>
7006 Implement a fallback character request `.fchar'.
7008 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
7009 (is_fallback): New inline function.
7010 * src/roff/troff/input.cc (do_define_character): New function.
7011 (define_character): Call `do_define_character'.
7012 (define_fallback_character): New function.
7013 (init_input_requests): Add `fchar'.
7014 (charinfo::charinfo): Updated.
7015 (charinfo::set_macro): New argument to set `fallback' flag.
7016 * src/roff/troff/node.cc (make_glyph_node, make_node,
7017 node::add_char): Check `fallback' flag.
7018 * NEWS, man/groff_diff.man, man/groff_man: Updated.
7020 2001-12-16 Werner LEMBERG <wl@gnu.org>
7022 * groff.texinfo: Document exact search algorithm for glyphs.
7024 2001-12-15 Werner LEMBERG <wl@gnu.org>
7026 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
7027 the left side of $(MANPAGES) rule to make it always non-empty.
7029 2001-12-14 Werner LEMBERG <wl@gnu.org>
7031 * src/roff/troff/input.cc (default_black): Define default color
7032 `black' if not yet defined.
7034 2001-12-13 Werner LEMBERG <wl@gnu.org>
7036 Implement new string-valued register `.fn' to return the current
7037 real (internal) font name.
7039 * env.cc (environment::get_font_name_string): New function.
7040 (init_env_requests): Add `.fn' register.
7041 * env.h (environment): Updated.
7042 * node.cc (font_info): Make `get_font_name' a friend.
7043 (get_font_name): New function.
7046 * man/groff_diff.man, man/groff.man, NEWS: Updated.
7048 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7050 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
7052 2001-12-12 Werner LEMBERG <wl@gnu.org>
7054 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
7056 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
7058 * man/groff_diff.man: Adding documentation for \O.
7060 2001-12-10 Werner LEMBERG <wl@gnu.org>
7062 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
7063 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
7065 2001-12-09 Werner LEMBERG <wl@gnu.org>
7067 * man/roff.man: Revised.
7068 * src/roff/groff/groff.man: Replace man page references with a
7069 pointer to roff.man.
7071 2001-12-09 Bernd Warken <bwarken@mayn.de>
7073 * man/roff.man: Completely rewritten.
7075 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7077 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
7079 2001-12-05 Werner LEMBERG <wl@gnu.org>
7081 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
7083 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
7084 order of initializers.
7087 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
7089 * doc/groff.texinfo: Fix documentation of \O.
7091 * src/devices/grohtml/html-text.cc (html_text::do_indent,
7092 html_text::do_table, html_text::do_emittext, html_text::do_para):
7093 Use `const' for first argument.
7094 (html_text::do_table): Use cast.
7095 * src/devices/grohtml/html-text.h: Updated.
7096 * src/devices/grohtml/output.cc (simple_output::put_string): Add
7097 method for `const string &s'.
7098 * src/devices/grohtml/html.h: Updated.
7099 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
7100 (ANCHOR_TEMPLATE): Modified.
7101 (manufacture_headings): New global variable to handle `-h' option.
7102 (is_subsection): Removed.
7103 (char_buffer::add_string): Add `const' to first argument.
7104 Protect against invalid string argument.
7105 Add method for `const string &s'.
7106 (text_glob): Completely redesigned.
7107 (page): Use `const' for strings and remove string length variable.
7108 (page::add_html): Removed.
7109 (page::add_end_encode): New member function.
7110 (to_unicode): Moved upwards.
7111 (title_desc, header_desc): Updated.
7112 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
7114 (html_printer::is_bold, html_printer::make_bold): New member
7116 (html_printer::end_of_line): Updated.
7117 (generate_img_src, html_printer::do_auto_image,
7118 html_printer::do_title, html_printer::write_header,
7119 html_printer::determine_header_level, html_printer::do_heading,
7120 html_printer::do_linelength, html_printer::do_pageoffset,
7121 html_printer::do_indentation, html_printer::do_tempindent,
7122 html_printer::do_indentedparagraph, html_printer::do_break,
7123 html_printer::flush_sbuf, get_html_translation,
7124 html_printer::begin_page, html_printer::special): Rewritten to get
7125 rid of static string length limit.
7126 (html_printer::troff_tag): Added `.no-auto-rule'.
7127 (html_printer::flush_globs): Small fix.
7128 (html_printer::determine_space): Don't compute `space_width'.
7129 (html_printer::translate_to_html): Renamed to ...
7130 (html_printer::emit_html): This (with updates).
7131 (html_printer::write_header): Implement `-h' option.
7132 (html_printer::draw): Remove commented-out code. Handle `F'
7134 (html_printer::add_char_to_sbuf): Removed.
7135 (html_printer::add_to_sbuf): Rewritten.
7136 (html_printer::sbuf_continuation): Fixed.
7137 (html_printer::seen_backwards_escape, reverse,
7138 html_printer::remove_last_char_from_sbuf): Removed.
7139 (char_translate_to_html, str_translate_to_html): Removed.
7140 (html_printer::overstrike): New function member.
7141 (html_printer::set_char): Use it.
7142 (html_printer::do_body): New function member.
7143 (html_printer::~html_printer): Use it.
7144 (main): Handle `-h' option.
7146 * src/devices/grohtml/grohtml.man: Document -h switch.
7148 * src/preproc/html/pre-html.cc: Include searchpath.h
7149 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
7150 (get_resolution): New function.
7151 (checkImageDir): Use `0777' permissions in mkdir()
7152 (write_start_image): Rewritten to use `\O[5...]'.
7153 (createImage, generateImages): Updated.
7154 (main): Handle `F' and `h' options.
7155 Use `get_resolution'.
7157 * src/roff/troff/input.cc (begin, end, image): Removed.
7158 (do_suppress): Take parameter.
7159 Handle modified syntax of `\O'.
7160 (token::next): Updated.
7161 (init_markup_requests): Removed.
7164 * src/roff/troff/div.h: Add declaration for begin_page().
7166 * tmac/color-html.tmac: Removed. Contents moved to...
7167 * tmac/html.tmac: Here. Set background color.
7168 * tmac/color.tmac: Removed. Contents moved to...
7169 * tmac/ps.tmac: Here.
7170 * tmac/www.tmac: Remove the title command when generating images
7172 (NO_AUTO_RULE): New macro.
7173 (HTML_DO_IMAGE): Use revised `\O' escapes.
7174 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
7176 2001-12-02 Werner LEMBERG <wl@gnu.org>
7178 * tmac/groff_mdoc.man: Fix typo.
7180 2001-12-01 Colin Watson <cjwatson@debian.org>
7182 * man/roff.man: Fix typo.
7184 2001-11-29 Werner LEMBERG <wl@gnu.org>
7186 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
7189 * src/roff/troff/input.cc (read_draw_node): Emit error message if
7190 more than one argument to \D'f ...'.
7192 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
7194 2001-11-28 Werner LEMBERG <wl@gnu.org>
7196 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
7199 * tmac/groff_man.man: Minor cosmetic fix.
7201 2001-11-27 Werner LEMBERG <wl@gnu.org>
7203 * src/roff/groff/groff.man, tmac/groff_tmac.man,
7204 tmac/groff_www.man: s/mwww/www/.
7206 2001-11-26 Werner LEMBERG <wl@gnu.org>
7208 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
7209 * configure: Regenerated.
7210 * win32-diffs: Updated.
7212 * tmac/groff_mwww.tmac: Renamed to ...
7213 * tmac/groff_www.tmac: This.
7214 * tmac/mwww.tmac: Removed.
7215 * NEWS, tmac/Makefile.sub: Updated.
7217 2001-11-21 Werner LEMBERG <wl@gnu.org>
7219 * doc/groff.texinfo: Improve documentation of the `\v' escape.
7220 Fix explanation of `\D' and `rt'.
7222 2001-11-20 Werner LEMBERG <wl@gnu.org>
7224 * tmac/an-old.tmac (an-header): Set header length equal to page
7226 * doc/groff.texinfo: Improve documentation of `ne' request. Other
7230 2001-11-19 Werner LEMBERG <wl@gnu.org>
7232 * NEWS, man/Makefile.sub: Updated.
7234 2001-11-19 Bernd Warken <bwarken@mayn.de>
7236 * man/ditroff.man: New file.
7238 2001-11-17 Werner LEMBERG <wl@gnu.org>
7240 * man/groff_differences.man: Renamed to ...
7241 * man/groff_diff.man: This. Updated.
7242 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
7244 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
7245 * src/preproc/html/pushback.cc: This. Updated.
7246 * src/preproc/html/pushbackbuffer.h: Renamed to ...
7247 * src/preproc/html/pushback.h: This.
7248 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
7251 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
7252 * src/libs/libgroff/htmlhint.cc: This.
7253 * src/libs/libgroff/Makefile.sub: Updated.
7255 * tmac/an-old.tmac (an-end): Fix page length.
7257 2001-11-16 Werner LEMBERG <wl@gnu.org>
7259 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
7260 * man/Makefile.sub: Include groff_differences.man.
7261 * VERSION: Set to 1.18.
7262 * REVISION: Set to 0.
7264 2001-11-16 Bernd Warken <bwarken@mayn.de>
7266 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
7267 the second dot (or ending macro name) to end a macro.
7268 * doc/groff.texinfo: Doc fix.
7270 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
7272 * tmac/doc-common (doc-header): Handle very long document titles
7275 2001-11-16 Werner LEMBERG <wl@gnu.org>
7277 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
7279 2001-11-15 Werner LEMBERG <wl@gnu.org>
7281 * src/roff/troff/troff.man: Revised and split into troff.man and...
7282 * man/groff_differences.man: New file.
7285 2001-11-13 Werner LEMBERG <wl@gnu.org>
7287 * tmac/an-old.tmac (TS, TE): New macros for table support.
7289 2001-11-12 Werner LEMBERG <wl@gnu.org>
7291 * src/include/lib.h: Provide a fix for emx to not include
7294 2001-10-27 Werner LEMBERG <wl@gnu.org>
7296 * src/roff/troff/input.cc (substring_macro): Fix computation of
7299 2001-10-20 Werner LEMBERG <wl@gnu.org>
7301 Undo change from 2001-08-28.
7303 * src/roff/troff/input.cc (have_input): New global variable.
7304 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
7305 in compatibility mode.
7306 (process_input_stack): Use it.
7308 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
7310 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
7311 being handled as end-of-sentence characters,
7313 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
7315 * src/roff/troff/input.cc (file_iterator): New members
7316 `suppress_newline_flag' and `seen_escape'.
7317 (file_iterator::next_file): Updated.
7318 (file_iterator::fill): Use it.
7319 (string_iterator): New member `suppress_newline_flag'.
7320 (string_iterator::fill): Set it.
7321 (get_color_element): Use MAX_COLOR_VAL.
7322 * src/roff/troff/env.cc (environment): Remove `need_eol'.
7323 (no_fill): Don't set `env->ignore_next_eol'.
7324 (environment::newline): Handle `eol' tag properly.
7326 (environment::add_html_tag): Set `env->ignore_next_eol'.
7328 * src/roff/troff/env.h (environment): Updated.
7330 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
7332 (html_printer::outstanding_eol): New member function.
7333 (html_printer::do_title): Use new functions.
7334 (html_printer::troff_tag): Test `id_eol_ce'.
7336 2001-10-10 Werner LEMBERG <wl@gnu.org>
7338 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
7339 files work with -C also.
7341 2001-10-05 Werner LEMBERG <wl@gnu.org>
7343 * doc/pic.ms: Minor fix.
7344 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
7345 as a valid command line switch.
7346 * src/devices/grohtml/post-html.cc (main): Ditto.
7348 * src/devices/grohtml/grohtml.man: Updated.
7349 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
7351 2001-10-04 Werner LEMBERG <wl@gnu.org>
7353 Implementing color support in troff, pic, grops, and grohtml. These
7354 changes are based on a major patch provided by Gaius Mulley
7357 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
7358 definitions with both hex values and fractions.
7360 New escapes: \m and \M for drawing and background color,
7361 respectively. This corresponds to the troff output commands `m'
7364 groff and troff accept command line switch `-c' to disable color
7365 output (which is automatically disabled in compatibility mode).
7367 New scaling indicator `f' for fractions (1f = 65536u).
7369 New conditional operator `m' to test for defined colors with `if'
7372 New keywords `color' (or `colour', `colored', `coloured'), `outline'
7373 (or `outlined'), and `shaded' added to pic.
7375 * src/include/color.h: New file.
7376 * src/include/driver.h: Include it.
7377 * src/include/printer.h: Include color.h.
7378 (environment): New members `col' and `fill'.
7379 (printer): Remove `adjust_arc_center' member function.
7380 * src/include/Makefile.sub: Updated.
7382 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
7384 Handle `m' and `DF' troff commands.
7385 * src/libs/libgroff/color.cc: New file.
7386 * src/libs/libgroff/Makefile.sub: Updated.
7388 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
7390 (createImage): Fix computation of `y2'.
7392 (buffer::write_file_html): Remove calls to `stop'.
7394 * src/preproc/pic/common.h (common_output): New abstract function
7395 members `set_color', `reset_color', `get_last_filled', and
7396 `get_outline_color'.
7397 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
7398 (object_spec): Add members `shaded' and `outlined'.
7399 * src/preproc/pic/output.h (output): `command' is now abstract.
7400 New function members `set_color', `reset_color', `get_last_filled',
7401 and `get_outline_color'.
7402 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
7403 `outline[d]', and `shaded'.
7404 * src/preproc/pic/object.cc (output::command): Removed.
7405 (output::set_location): Moved to output.h.
7406 (graphic_object): Add protected members `outline_color' and
7408 Add member functions `set_outline_color', `get_outline_color', and
7410 (closed_object): Add member function `set_fill_color'.
7411 Add member `color_fill'.
7412 (graphic_object::print_text): Use `out->set_color' and
7414 (box_object::print, ellipse_object::print, circle_object::print,
7415 line_object::print, spline_object::print, arc_object::print): Ditto.
7416 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
7417 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
7418 `SHADED', making them `%left'.
7419 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
7420 * src/preproc/pic/tex.cc (tex_output): New dummy function members
7421 `set_color', `reset_color', `get_last_filled', and
7422 `get_outline_color'.
7423 * src/preproc/pic/troff.cc (simple_output): New abstract function
7424 members `set_color', `reset_color', and `get_last_filled'.
7425 (simple_output::polygon, simple_output::circle,
7426 simple_output::ellipse): Use `get_last_filled'.
7427 (troff_output): New members `last_filled' and `last_outlined'.
7428 New function members `set_color', `reset_color', `get_last_filled',
7429 and `get_outline_color'.
7430 (troff_output::finish_picture): Use `reset_color'.
7431 (troff_output::set_fill): Test `last_filled'.
7432 * src/preproc/pic/pic.man: Updated.
7434 * src/roff/groff/groff.cc (main): Implement `-c' option.
7435 (synopsis, help): Updated.
7436 src/roff/groff/groff.man: Updated.
7438 * src/roff/troff/troff.h: Include color.h.
7439 (warning_type): Add WARN_COLOR.
7440 * src/roff/troff/env.h (environment): New members
7441 `{cur,prev}_{glyph,fill}_color'.
7442 New member functions `get_{prev_,}{glyph,fill}_color'.
7443 * src/roff/troff/env.cc: Initialize and implement them.
7444 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
7445 Replace `NULL' with `0' everywhere for consistency.
7446 (lookup_color, default_black, do_glyph_color, do_fill_color,
7447 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
7448 define_color): New functions.
7449 (token::next): Implement \M and \m escapes.
7450 (do_if_request): Implement `m' operator.
7452 (main): Implement `-c' option.
7453 (init_markup_requests): Add `defcolor' request.
7454 (warning_table): Add `color' warning.
7455 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
7457 * src/roff/troff/node.cc (troff_output_file): New members
7458 `current_{page,glyph}color'. New member functions `put_hex',
7459 `glyph_color', and `fill_color'.
7460 (glyph_color_node::*, fill_color_node::*): Implement it.
7461 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
7462 (parse_term): Add support for `f'.
7463 * src/roff/troff/troff.man: Updated.
7465 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
7467 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
7468 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
7470 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
7471 (tag_definition): Use `void *' for arg1.
7472 (html_text): New member functions `do_color' and `done_color'.
7473 Use `void *' for second parameter of `push_para' member function.
7474 New `push_para' member function with a single parameter.
7475 Use `char *' for parameter of `issue_table_begin' member funtion.
7476 New `issue_color_begin' member function.
7477 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
7479 (html_text::issue_color_begin): New function.
7480 (html_text::issue_table_begin): Use `char *' for parameter.
7481 (html_text::start_tag, html_text::shutdown,
7482 html_text::check_emit_text): Updated.
7483 (html_text::push_para): Use `void *' for second parameter.
7484 Add same function with only one parameter.
7485 (html_text::do_*): Updated.
7486 (html_text::do_color, html_text::done_color): New functions.
7487 * src/devices/grohtml/post-html.cc (style): New member `col'.
7488 Mew member `style' with 6 parameters.
7489 (style::style, style::operator==): Updated.
7490 (html_printer::do_font): Use it.
7491 (html_printer::draw): Add dummy entry for `F'.
7492 (html_printer::set_char): Updated.
7493 * src/devices/grohtml/grohtml.man: Updated.
7495 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
7496 trailing zeroes removed.
7497 (ps_printer): New members `sbuf_color', `fill_color', and
7499 Removed member `fill'.
7500 New member function `set_color'.
7501 (ps_printer::ps_printer, ps_printer::set_char): Updated.
7502 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
7503 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
7505 * tmac/color-html.tmac, tmac/color.tmac: New files.
7506 * tmac/troffrc: Include them.
7507 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
7508 * tmac/Makefile.sub: Updated.
7510 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
7511 man/groff.man: Updated.
7512 * font/devps/prologue.ps: Define FC and CO functions.
7514 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
7516 Fix incorrect cropping of images and incorrect handling of special
7517 characters. Fix handling of file names in \O.
7519 * src/include/geometry.h: New file.
7520 * src/libs/libgroff/geometry.cc: New file.
7521 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
7523 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
7525 (do_suppress): Updated.
7526 * src/roff/troff/node.cc: Include geometry.h.
7527 (troff_output_file::flush_tbuf): Fixed parameters to
7528 `check_output_limits'.
7529 (troff_output_file::check_charinfo): Ditto.
7530 (troff_output_file::determine_line_limits): Add support for `Da'
7533 * src/devices/grohtml/post-html.cc (str_translate_to_html):
7534 Add new parameter `is_special' to decode special characters from
7536 (html_printer::do_title, html_printer::do_heading,
7537 html_printer::do_indentedparagraph,
7538 html_printer::translate_to_html, html_printer::special): Updated.
7540 2001-10-03 Werner LEMBERG <wl@gnu.org>
7542 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
7543 Fix entry for config.h.
7544 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
7545 * tmac/troffrc: Translate nonbreakable space character to `\~'.
7546 * src/preproc/eqn/eqn.man: Document -d command line option.
7548 2001-09-27 Werner LEMBERG <wl@gnu.org>
7550 * man/groff.man: Use
7558 instead of the old code (`.ad .hy' after the table) to suppress
7559 incorrect hyphenation for grohtml output.
7561 2001-09-22 Werner LEMBERG <wl@gnu.org>
7563 * man/groff_font.man, man/groff_out.man: Minor fixes.
7565 2001-09-20 Werner LEMBERG <wl@gnu.org>
7567 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
7568 Arnold Robbins <arnold@skeeve.com>).
7570 2001-09-09 Werner LEMBERG <wl@gnu.org>
7572 * configure: Regenerated with autoconf 2.52.
7574 * doc/groff.texinfo: Complete revision of indices.
7576 2001-09-07 Werner LEMBERG <wl@gnu.org>
7578 * doc/Makefile (clean): Updated to delete all indices.
7580 2001-09-05 Werner LEMBERG <wl@gnu.org>
7582 * src/roff/troff/troff.man: Remove superfluous line.
7584 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
7585 given on the command line (or rather, if only the default warnings
7588 2001-09-03 Werner LEMBERG <wl@gnu.org>
7590 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
7591 use .ne for TTY devices.
7593 2001-08-31 Werner LEMBERG <wl@gnu.org>
7595 * src/roff/troff/token.h, src/roff/troff/input.cc:
7596 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
7598 2001-08-28 Werner LEMBERG <wl@gnu.org>
7600 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
7601 * src/roff/troff/input.cc (token::next): Return
7602 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
7604 (token::description): Updated.
7605 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
7606 (token::add_to_node_list, token::process): Ignore
7607 TOKEN_TRANSPARENT_ESCAPE.
7609 2001-08-27 Werner LEMBERG <wl@gnu.org>
7611 * tmac/an-old.tmac: Fix `S' string.
7613 2001-08-26 Werner LEMBERG <wl@gnu.org>
7615 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
7617 2001-08-25 Werner LEMBERG <wl@gnu.org>
7619 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
7621 Many other minor fixes.
7623 * configure.ac: Add message at end to inform how to compile
7625 * configure: Regenerated.
7627 2001-08-24 Werner LEMBERG <wl@gnu.org>
7629 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
7630 Updated to latest version of libc.
7632 2001-08-23 Werner LEMBERG <wl@gnu.org>
7634 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
7635 Autoconf 2.50 and newer can handle this.
7636 * configure: Regenerated.
7638 2001-08-21 Werner LEMBERG <wl@gnu.org>
7640 * doc/pic.ms: Fix typo.
7641 * src/preproc/tbl/tbl.man: Document case of global options.
7643 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
7645 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
7646 handling of `CR' font.
7648 2001-08-20 Werner LEMBERG <wl@gnu.org>
7650 Use a config.h file.
7652 * src/include/lib.h: Include config.h.
7653 * All C files: Ditto (if necessary).
7654 * All C++ source and header files: Include lib.h first (if
7657 * src/include/config.hin: New file (autogenerated by autoheader).
7658 * stamp-h.in: New file.
7659 * configure.ac: Updated.
7660 * aclocal.m4: Add third parameters to AC_DEFINE macros.
7661 (GROFF_ARRAY_DELETE): Simplified.
7662 * Makefile.sub (DISTCLEANFILES): Updated.
7663 Added targets for remaking config.status, config.hin, config.h,
7664 stamp-h.in, and stamp-h.
7665 * configure: Regenerated.
7667 2001-08-19 Werner LEMBERG <wl@gnu.org>
7671 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
7673 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
7674 (do_sprintf): Use snprintf().
7676 2001-08-18 Werner LEMBERG <wl@gnu.org>
7678 * src/libs/snprintf/*: Added an snprintf module written by Mark
7680 * src/libs/libgroff/Makefile.sub: Updated.
7681 * configure.ac: Add test for snprintf().
7682 * Makefile.in: Updated.
7683 * configure: Regenerated.
7685 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
7688 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
7690 * tmac/doc.tmac (Ex): New implementation.
7691 * tmac/doc-common, tmac/groff_tmac.man: Updated.
7693 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
7695 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
7697 * tmac/groff_tmac.man: Updated.
7699 2001-08-13 Werner LEMBERG <wl@gnu.org>
7701 * src/preproc/tbl/tbl.man: Minor documentation update.
7703 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
7705 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
7706 * configure.ac: Add declaration test for gettimeofday().
7707 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
7708 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
7709 * configure: Regenerated.
7711 2001-08-11 Werner LEMBERG <wl@gnu.org>
7713 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
7714 * configure.ac: Add declaration test for strcasecmp().
7715 * Makefile.in: Updated.
7716 * configure: Regenerated.
7717 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
7718 this is necessary because groff's mkstemp.cc is C++.
7719 Add declaration conditionally for strcasecmp().
7721 2001-08-10 Werner LEMBERG <wl@gnu.org>
7723 Integrated pic2graph, contributed by Eric S. Raymond.
7725 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
7727 * Makefile.in, NEWS: Updated.
7729 * src/preproc/tbl/tbl.man: Revised.
7731 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
7733 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
7735 2001-08-09 Werner LEMBERG <wl@gnu.org>
7737 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
7740 2001-08-08 Paul Eggert <eggert@twinsun.com>
7742 * Makefile.sub (configure): Depend on configure.ac, not
7744 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
7746 2001-08-07 Werner LEMBERG <wl@gnu.org>
7748 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
7751 2001-08-06 Werner LEMBERG <wl@gnu.org>
7753 * src/roff/troff/troff.man: Improve documentation of -E option.
7755 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7757 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
7760 2001-07-27 Werner LEMBERG <wl@gnu.org>
7762 * src/preproc/refer/refer.cc: Undo last change.
7763 * src/devices/grohtml/post-html.cc: Ditto.
7765 2001-07-26 Werner LEMBERG <wl@gnu.org>
7767 * src/preproc/refer/refer.cc: Include `lib.h'.
7768 * src/devices/grohtml/post-html.cc: Ditto.
7770 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
7772 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
7773 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
7774 * Makefile.in: Comment updated.
7775 * configure: Regenerated.
7777 2001-07-25 Werner LEMBERG <wl@gnu.org>
7779 * src/preproc/pic/pic.cc: Removed.
7780 * src/preproc/pic/pic_tab.h: Removed.
7781 * src/preproc/refer/label.cc: Removed.
7783 * doc/Makefile (.ms.html): Don't use a file name extension in
7784 argument to grohtml's -I option.
7785 * Makefile.in (dist): Remove CVS directories.
7786 Call `distfiles' target.
7788 * src/devices/grohtml/grohtml.man: Add information about valid
7789 versions of pnmtopng.
7790 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
7791 name instead of number.
7793 2001-07-24 Werner LEMBERG <wl@gnu.org>
7795 * doc/groff.texinfo: Minor fixes.
7797 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
7799 * doc/Makefile (.ms.html): Put image files into a subdirectory.
7802 2001-07-20 Werner LEMBERG <wl@gnu.org>
7804 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
7805 * src/libs/libgroff/mkstemp.cc: New file.
7806 * src/libs/libgroff/mksdir.cc: New file.
7807 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
7808 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
7809 * src/libs/libgroff/Makefile.sub: Updated.
7810 * src/include/lib.h: Add mksdir() prototype.
7811 * src/include/posix.h: Define S_IXUSR if not yet defined.
7813 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
7814 (createAllPages): Use mksdir() instead of current code.
7815 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
7816 (main): [!HAVE_MKSTEMP]: Removed.
7818 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
7819 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
7821 * configure.ac: Add tests for stdint.h, sys/time.h, and
7823 Call new GROFF_xxx macros.
7824 * configure: Regenerated.
7825 * Makefile.in: Comments updated.
7827 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
7829 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
7830 instead of current code.
7831 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
7832 * src/roff/groff/groff.cc (possible_command::insert_args): New
7834 (main): Use it for predriver handling instead of insert_arg().
7836 2001-07-19 Werner LEMBERG <wl@gnu.org>
7838 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
7841 * src/include/posix.h: Define S_IWUSR if not yet defined.
7843 2001-07-18 Werner LEMBERG <wl@gnu.org>
7847 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
7849 * tmac/groff_mdoc.man: Document new -width and -column syntax.
7850 Some other minor fixes.
7851 * tmac/an-old.tmac: Add `AT' and `UC' macros.
7853 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
7855 Replace call to `troff' with `groff -Z' to make it aware of
7858 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
7859 (troff_command, command_prefix): Removed.
7860 (alterDeviceTo): Use groff.
7861 (addZ): New function.
7862 (char_buffer::do_html): Use it.
7863 (scanArguments): Use TROFF_COMMAND.
7864 (findPrefix): Removed.
7866 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
7868 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
7870 * doc/pic.ms: Documentation fixes.
7872 2001-07-17 Werner LEMBERG <wl@gnu.org>
7874 Replace atexit() with global destructor.
7876 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
7877 (xtmpfile_list_init): New global structure to deallocate
7878 xtmpfile_list on exit. Its destructor inherits most code from
7880 (remove_tmp_files): Deleted.
7881 (add_tmp_file): Simplified.
7883 2001-07-16 Werner LEMBERG <wl@gnu.org>
7885 Replace strdup() with strsave().
7887 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
7888 (set_papersize): Use strsave() and a_delete.
7889 (main): Use strsave().
7890 * src/preproc/html/pre-html.cc (make_message, createAllPages,
7891 removeAllPages): Use strsave() and a_delete.
7893 * configure.ac: Remove test for strdup.
7894 * Makefile.in: Comment updated.
7895 * configure: Regenerated.
7897 2001-07-15 Werner LEMBERG <wl@gnu.org>
7899 * win32-diffs: Updated.
7901 2001-07-14 Werner LEMBERG <wl@gnu.org>
7903 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
7904 removing the old one.
7905 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
7907 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7909 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
7911 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
7913 Merge -xwidth into -width. Add -xwidth functionality to -column
7916 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
7918 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
7919 string immediately following a leading dot starts with a valid mdoc
7921 Add similar code to the -column branch.
7922 (doc-Bl-usage): Updated.
7923 * groff_mdoc.man: s/-xwidth/-width/.
7925 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
7927 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
7928 running into centered or non-formatted text.
7930 2001-07-11 Werner LEMBERG <wl@gnu.org>
7932 Introduce short and long prefixes to have the selection at run-time
7933 whether there is a 8+3 limit for names of temporary files.
7935 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
7936 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
7937 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
7939 (temp_init): New global structure to initialize above three
7941 (xtmptemplate): Use two parameters for long and short prefix.
7942 Simplify code use above three variables.
7943 (xtmpfile): Use long and short prefixes as parameters.
7944 * src/include/lib.h: Updated.
7946 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
7948 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
7949 (createAllPages, makeTempFiles): Updated.
7951 2001-07-09 Werner LEMBERG <wl@gnu.org>
7953 * REVISION: Increased to 3.
7955 Version 1.17.2 released
7956 =======================
7958 2001-07-07 Werner LEMBERG <wl@gnu.org>
7960 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
7963 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
7965 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
7967 * tmac/groff_mdoc.man: Fix synopsis.
7969 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
7971 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
7972 Restore `doc-Pa-font'.
7974 2001-07-04 Werner LEMBERG <wl@gnu.org>
7976 * src/utils/indxbib/dirnamemax.c: Moved to ...
7977 * src/libs/libgroff/maxfilename.cc: Here.
7978 s/dir_name_max/file_name_max/.
7980 * src/include/lib.h: Add file_name_max.
7981 * src/utils/indxbib/indxbib.cc: Updated.
7982 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
7985 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
7987 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
7989 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
7990 REGION_TEMPLATE): New macros.
7991 (createAllPages, makeTempFiles): Use them.
7992 Include `nonposix.h'.
7993 (html_system): New function.
7994 (createAllPages, createImage): Use it.
7997 * tmac/www.tmac: Fix typos.
7999 2001-07-03 Werner LEMBERG <wl@gnu.org>
8001 * tmac/www.tmac: Disable hyphenation in normal text only if output
8003 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
8004 * tmac/groff_mwww.man, NEWS: Updated.
8006 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
8008 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
8011 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
8013 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
8014 doc-display-ps-stack): Implement font and font size stack for
8017 2001-07-02 Werner LEMBERG <wl@gnu.org>
8019 * REVISION: Increased to 2.
8020 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
8022 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
8023 beginning of a line.
8024 * src/groff/grog/grog.sh: Ditto.
8026 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
8028 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
8031 2001-06-27 Werner LEMBERG <wl@gnu.org>
8033 Fix problems with preprocessor string for `man' program.
8035 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
8036 Updated/added copyright.
8037 Moved Emacs's local variable to identify nroff mode to the end of
8038 the file; add local variable if missing.
8040 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
8042 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
8043 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
8044 * configure: Regenerated.
8046 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
8048 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
8049 * configure: Regenerated.
8051 2001-06-24 Werner LEMBERG <wl@gnu.org>
8053 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
8055 * doc/pic.ms: Fix typos.
8057 Version 1.17.1 released
8058 =======================
8060 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
8062 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
8063 * configure: Updated.
8065 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
8067 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
8069 * src/roff/troff/dic.cc (blank_line): Add html tag.
8071 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
8073 * src/roff/troff/input.cc (do_suppress): Fix typo.
8075 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
8077 Added two new options (-D and -I) to specify image names and a
8078 subdirectory to place the images in.
8080 Change syntax from \\Ox to \\O[x].
8082 * src/devices/grohtml/post-html.cc (main): Add options.
8084 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
8085 Use `NULL' instead of `0' for null string pointers.
8086 (MAX_RETRIES): New macro.
8087 (lengthOfintToStr, intToStr, make_message): New functions.
8088 (makeFileName): Make function static.
8089 Implement -D and -I options.
8090 (checkImageDir): New function.
8091 (write_end_image, write_start_image): Use new syntax of \O.
8092 (createAllPages, removeAllPages): Implement -D and -I options. Use
8094 (createImage): Use make_message().
8095 (addps4html): Add guard for malloc().
8096 (usage, scanArguments): Updated.
8097 (makeTempFiles): Use mkstemp().
8098 (removeTempFiles): Use unlink().
8099 (findPrefix): Add guard for malloc().
8101 * src/roff/troff/input.cc (get_delim_file_name): New function to
8103 (do_suppress): Updated to parse new syntax.
8104 * src/devices/grohtml/grohtml.man: Updated.
8105 * tmac/www.tmac: Updated to new syntax.
8109 2001-06-15 Werner LEMBERG <wl@gnu.org>
8111 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
8113 * src/devices/grohtml/grohtml.man: Minor improvements.
8115 2001-06-14 Werner LEMBERG <wl@gnu.org>
8117 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
8119 2001-06-11 Werner LEMBERG <wl@gnu.org>
8121 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
8122 line to specify preprocessor options -- mandb 2.3.1 only recognizes
8124 * src/preproc/grn/grn.man: Add proper '\" string.
8126 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
8128 * test-groff: Don't use PATH but GROFF_BIN_PATH.
8130 2001-06-08 Werner LEMBERG <wl@gnu.org>
8132 Updated to autoconf 2.50.
8134 * configure.in: Renamed to...
8135 * configure.ac: This.
8136 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
8137 (GROFF_OS390): Updated.
8138 * configure: Regenerated.
8140 2001-05-18 Werner LEMBERG <wl@gnu.org>
8142 * src/roff/troff/env.c, src/roff/troff/env.h,
8143 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
8146 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
8148 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
8150 2001-05-16 Werner LEMBERG <wl@gnu.org>
8152 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
8153 less than or equal zero; set it to 1 then.
8154 * src/roff/troff/node.h (node::node): Initialize `last'.
8156 2001-05-08 Werner LEMBERG <wl@gnu.org>
8158 * tmac/an-old.tmac: Make predefined strings work in compatibility
8160 Add troff version guard.
8161 * tmac/doc.tmac: Simplify version guard.
8163 2001-05-07 Werner LEMBERG <wl@gnu.org>
8165 The .ns and .rs requests are now honoured not only in the top-level
8166 but in all diversions (similar to UNIX troff).
8168 This change is based on a patch from Tadziu Hoffmann
8169 <hoffmann@usm.uni-muenchen.de>.
8171 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
8172 (top_level_diversion): Remove `no_space_mode' member.
8173 * src/roff/troff/div.cc (diversion::diversion,
8174 top_level_diversion::top_level_diversion): Updated.
8175 (macro_diversion::output): Reset `no_space_mode'.
8176 (no_space, restore_spacing): Use `curdiv' unconditionally.
8177 (space_request, blank_line): Check `curdiv->no_space_mode'.
8178 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
8179 `curdiv' unconditionally.
8180 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8183 2001-05-06 Werner LEMBERG <wl@gnu.org>
8185 Added two new requests `de1' and `am1' which are similar to `de' and
8186 `am' with the difference that compatibility mode is saved on entry,
8187 switched off during macro execution, and restored on exit.
8189 * src/roff/troff/input.h: Added two new special characters
8190 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
8191 * src/roff/troff/input.cc (input_iterator): Added two member
8192 functions `save_compatible_flag' and `get_compatible_flag'.
8193 (input_stack): Ditto.
8194 (string_iterator): Ditto. Also add private member
8195 `saved_compatible_flag'.
8196 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
8197 (calling_mode): New enumeration.
8198 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
8199 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
8200 (define_macro, define_indirect_macro, append_macro, ignore): Use
8202 (define_nocomp_macro, append_nocomp_macro): New functions.
8203 (init_input_requests): Updated.
8204 (do_request): Rename local variable `saved_compatible_flag' to
8205 `old_compatible_flag'.
8206 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8208 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
8209 public and trap-invoked macros. As a consequence, the man macros
8210 work in compatibility mode also.
8212 2001-05-06 Solar Designer <solar@openwall.com>
8214 * Makefile.in: Use $(mandir).
8216 2001-05-06 Alexios Zavras <zvr@pobox.com>
8218 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
8220 2001-05-05 Werner LEMBERG <wl@gnu.org>
8222 Added `.ns' number register: Returns 1 in no-space mode (if in
8223 top-level diversion), 0 otherwise.
8225 * src/roff/troff/div.cc (no_space_mode_reg): New class.
8226 (init_div_requests): Updated.
8227 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8230 2001-05-04 Werner LEMBERG <wl@gnu.org>
8232 * src/roff/nroff/nroff.man: Improved documentation (especially
8235 2001-05-02 Werner LEMBERG <wl@gnu.org>
8237 Added `brp' request: This is \p as a request.
8239 * src/roff/troff/env.cc (environment::do_break): Add parameter
8241 (do_break_request): New function (was `break_request').
8242 (break_request): Calls `do_break_request'.
8243 (break_spread_request): New; calls `do_break_request'.
8244 (init_env_requests): Updated.
8245 * src/roff/troff/env.h: Updated.
8246 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8248 * REVISION: Increased to 1.
8249 * win32-diffs: Updated.
8251 2001-05-01 Werner LEMBERG <wl@gnu.org>
8253 * tmac/an-old.tmac: Fix minor compatibility mode issue.
8254 * tmac/troffrc-end: Make it really work in compatibility mode.
8256 2001-04-27 Werner LEMBERG <wl@gnu.org>
8258 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
8261 2001-04-22 Werner LEMBERG <wl@gnu.org>
8263 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
8264 latest versions from glibc CVS archive.
8266 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
8267 <c.zeelenberg@hccnet.nl>.
8269 2001-04-21 Werner LEMBERG <wl@gnu.org>
8271 * configure.in: Move check for mkstemp() to...
8272 * aclocal.m4 (GROFF_MKSTEMP): This new function.
8273 * configure: Regenerated.
8275 * src/include/groff-getopt.h: Don't use variable names in
8278 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
8279 * src/devices/grohtml/Makefile.sub,
8280 src/devices/grohtml/post-html.cc: Updated.
8282 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
8284 * configure.in: Add special check for mkstemp().
8285 * src/libs/libgroff/tmpfile.cc: Use it.
8286 * src/utils/indxbib/indxbib.cc: Ditto.
8287 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
8288 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
8291 2001-04-20 Bruce Lilly <blilly@erols.com>
8293 `Version_string' as C++ object was not visible to linker from C
8295 Add `const' to `Version_string'.
8297 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
8298 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
8299 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
8300 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
8301 (scanArguments), src/preproc/refer/refer.cc (main),
8302 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
8303 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
8304 (main), src/devices/grohtml/post-html.cc (main),
8305 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
8306 (main), src/utils/hpftodit/hpftodit.cc (main),
8307 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
8308 (main), src/utils/lkbib/lkbib.cc (main),
8309 src/utils/addftinfo/addftinfo.cc (main): Implement it.
8311 * src/roff/groff/pipeline.c: Add _UWIN.
8312 * src/include/nonposix.h: Ditto.
8314 2001-04-20 Werner LEMBERG <wl@gnu.org>
8316 * src/include/lib.h: Use HAVE_STRERROR.
8317 * src/roff/groff/pipeline.c: Ditto.
8318 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
8319 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
8320 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
8321 * win32-diffs: Updated.
8322 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
8324 2001-04-19 Werner LEMBERG <wl@gnu.org>
8326 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
8327 instead of hardwired `"troff"'.
8328 (char_buffer::read_file): Remove unused variables.
8329 (char_buffer::write_file_troff): Ditto.
8330 (char_buffer::write_file_html): Ditto.
8331 (generateImages): Ditto.
8333 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
8335 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
8337 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
8338 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
8339 index_search_item::search1): Ditto.
8340 * src/roff/troff/node.h (width_list): Reorder members.
8341 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
8342 (lookup_warning): Ditto.
8343 (prepend_string): Commented out.
8344 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
8345 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
8346 * src/preproc/tbl/main.cc (process_format): Ditto.
8347 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
8349 * src/preproc/pic/pic.cc: Updated.
8350 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
8351 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
8352 * src/preproc/refer/command.cc (execute_command): Ditto.
8353 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
8354 * src/preproc/refer/token.cc (lookup_token): Ditto.
8355 * src/preproc/soelim/soelim.cc: Ditto.
8356 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
8357 (isHexDigit): Commented out.
8358 (pushBackBuffer::isString): Remove unused variable.
8359 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
8361 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
8362 resource_manager::read_resource_arg, read_one_of, parse_extensions):
8364 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
8365 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
8366 lookup_paper_size): Ditto.
8367 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
8368 (text_glob, element_list): Reorder members.
8369 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
8371 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
8372 return value to `void'.
8373 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
8375 * src/devices/grohtml/html.h (simple_output::check_newline,
8376 simple_output::space_or_newline, simple_output::enable_newlines):
8378 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
8380 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
8381 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
8382 output_ligatures, output_charset, read_map): Ditto.
8383 * src/utils/lookbib/lookbib.cc (main): Ditto.
8384 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
8385 (do_file): Fix typo (`=' -> `==').
8386 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
8387 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
8389 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
8391 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
8392 Fix usage of GROFF_BIN_PATH.
8393 * src/roff/nroff/nroff.man: Updated.
8395 2001-04-18 Werner LEMBERG <wl@gnu.org>
8397 * NEWS: Fixing typos.
8400 Version 1.17 released
8401 =====================
8403 2001-04-17 Werner LEMBERG <wl@gnu.org>
8405 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
8406 directory, not in $(srcdir).
8408 2001-04-16 Werner LEMBERG <wl@gnu.org>
8410 * doc/groff.texinfo: More info on conditionals.
8412 2001-04-15 Werner LEMBERG <wl@gnu.org>
8414 * doc/groff.texinfo: Added some info about groff internals.
8416 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
8417 about missing special character only if the name is non-null.
8419 2001-04-14 Werner LEMBERG <wl@gnu.org>
8421 Removing the grohtml-old device driver which is now obsolete.
8423 * src/devices/grohtml-old/*: Removed.
8424 * font/devhtml-old/*: Removed.
8425 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
8427 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
8428 * test-groff (PATH): Updated.
8429 * tmac/Makefile.sub (NORMALFILES): Updated.
8430 * tmac/an-old.tmac: Remove special code for html-old device.
8431 Replace `html-or-html-old' register with `an-html'.
8432 * tmac/eqnrc: Updated.
8433 * tmac/html-old.tmac: Removed.
8434 * tmac/troffrc, tmac/troffrc-end: Updated.
8435 * tmac/www.tmac: Remove special code for html-old device.
8436 Replace `html-or-html-old' register with `www-html'.
8438 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
8439 src/libs/libgroff/htmlindicate.cc (graphic_end),
8440 include/htmlindicate.h, src/preproc/grn/*.cc,
8441 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
8442 single argument for consistency with rest of source code.
8444 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
8446 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
8448 * src/roff/troff/troff.man: Fixing typos.
8450 2001-04-13 Werner LEMBERG <wl@gnu.org>
8452 * doc/pic.ms: Fixing many font switches.
8453 * doc/groff.texinfo: Fixes, additions.
8454 * MORE.STUFF: Updated.
8456 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
8458 * src/devices/grohtml/grohtml.man: Updated manual page regarding
8460 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
8462 (removeTempFiles): New function to tidy up temporary files.
8463 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
8464 Many fixes to do with the new inline suppress node and image regions
8466 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
8467 (generate_img_src): New function.
8468 (html_printer::do_auto_image): Utilizes it.
8469 (do_heading, do_title): Include inline images within their contents.
8470 (html_printer::begin_page): Tidied up comments that are issued to
8471 the html output file.
8472 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
8474 (text_glob::is_br): New method used by do_heading.
8475 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
8476 equivalent diversion.
8477 * src/include/html-strings.h: Altered image tags to reflect the
8479 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
8481 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
8482 it is already inside a pic image. Only emit tags if the argument
8483 `-Tps:html' is present.
8484 * src/preproc/tbl/main.cc: Changes to reflect additional
8485 `html_end_suppress' parameter.
8486 * src/roff/troff/env.cc: Only emit eol tag if a node has been
8487 emitted since the last eol tag was written.
8488 * src/roff/troff/env.h: New boolean `emitted_node'.
8489 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
8490 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
8491 * src/roff/troff/node.cc (check_charinfo): New method.
8492 (troff_output_file::determine_line_limits): Alterations to limit
8494 * tmac/www.tmac: Changes to reflect new suppress nodes.
8496 2001-04-12 Bruno Haible <haible@clisp.cons.org>
8498 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
8499 Escape the html_glyph in the buffer.
8500 (str_translate_to_html): Output the unescaped escaped_char.
8501 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
8502 `frame=void', not `frame=none'. Add `border=0'.
8504 2001-04-12 Werner LEMBERG <wl@gnu.org>
8506 * PROBLEMS: Add some words on how to avoid wrapper macros.
8508 2001-04-11 Blake McBride <blake@florida-software.com>
8510 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
8512 2001-04-11 Werner LEMBERG <wl@gnu.org>
8514 * font/devlbp/Makefile.sub (CLEANADD): Set it.
8515 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
8516 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
8517 * Makefile.sub (DISTCLEANFILES): Here.
8519 * libs/libgroff/new.cc: Include `nonposix.h'.
8520 * win32-diffs: Updated.
8522 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
8524 Added skeleton macro for defunct macros.
8526 Updated documentation.
8528 When inside displays, an empty input line warning should be
8529 suppressed. If another macro call is put inside a display,
8530 all subsequent empty lines found in that display caused a
8531 warning to be emitted.
8533 * tmac/doc.tmac (doc-defunct-macro): New macro.
8534 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
8535 (doc-restore-global-vars): Fixed typo.
8536 (doc-empty-line): Check the `doc-display-depth' register to
8537 determine whether we are inside display or not.
8539 * tmac/doc-common: Removed `Or' and `Sf' registers.
8540 Moved obsolete `Ds' macro to doc.tmac.
8542 * tmac/groff_mdoc.man: Bump document date.
8543 Document `.Vt' under ``Variable Types''.
8544 Removed documentation for obsolete `.Or' macro.
8546 2001-04-10 Werner LEMBERG <wl@gnu.org>
8549 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
8551 2001-04-10 Bruno Haible <haible@clisp.cons.org>
8553 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
8554 (usage): Add stream argument. Don't exit.
8555 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
8556 Write --version output to stdout, not stderr.
8557 (usage): Add stream argument. Don't exit.
8558 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
8559 (usage): Add stream argument. Don't exit.
8560 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
8562 (usage): Add stream argument. Don't exit.
8563 (main): Write --help output to stdout, not stderr.
8564 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
8565 (usage): Add stream argument. Don't exit.
8566 * src/devices/grops/ps.cc (main): Accept --help and --version.
8567 (usage): Add stream argument. Don't exit.
8568 * src/devices/grotty/tty.cc (main): Accept --help and --version.
8569 (usage): Add stream argument. Don't exit.
8570 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
8571 (main): Accept --help and --version.
8572 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
8573 (main): Accept --help and --version.
8574 * src/preproc/html/pre-html.cc (usage): Add stream argument.
8575 (scanArguments): Accept --help and --version.
8576 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
8577 (main): Accept --help and --version.
8578 * src/preproc/refer/refer.cc (main): Accept --help and --version.
8579 (usage): Add stream argument. Don't exit.
8580 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
8582 (main): Accept --help and --version.
8583 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
8584 (main): Accept --help and --version.
8585 * src/roff/groff/groff.cc (main): Accept --help and --version.
8586 (synopsis): Add stream argument.
8587 (help): Write --help output to stdout, not stderr.
8588 (usage): Add stream argument. Don't exit.
8589 * src/roff/grog/grog.pl: Accept --help and --version.
8591 * src/roff/grog/grog.sh: Accept --help and --version.
8592 * src/roff/nroff/nroff.sh: Accept --help and --version.
8593 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
8594 (usage): Add stream argument. Don't exit.
8595 (main): Accept --help and --version.
8596 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
8597 (usage): New function with stream argument, doesn't exit.
8598 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
8599 (usage): New function with stream argument, doesn't exit.
8600 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
8601 (usage): Add stream argument. Don't exit.
8602 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
8603 (main): Accept --help and --version.
8604 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
8606 (main): Accept --help and --version.
8607 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
8608 (main): Accept --help and --version.
8609 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
8610 (usage): Add stream argument. Don't exit.
8612 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
8614 Fix indentation in SYNOPSIS.
8616 Updated to include changes of latest BSD mdoc version (basically,
8617 the only change is that `.Fn' and `.Fc' put a final semicolon after
8618 a function declaration in the SYNOPSIS section).
8620 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
8621 (doc-in-synopsis-section): New variable. Updated all related
8623 (doc-indent-synopsis-active): New register.
8624 (Nd, Fn, Fo): Use it.
8625 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
8626 `.Cd' with long argument line produces indented wrapped lines.
8627 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
8628 undesirable line break to be output.
8629 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
8631 (Fn, Fc): Add final `;' to output.
8632 (doc-save-global-vars, doc-restore-global-vars): Updated.
8633 * tmac/doc-common: Remove `Ex' register.
8635 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
8638 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
8640 * tmac/doc.tmac (Cd): Simplify code.
8641 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
8643 2001-04-06 Werner LEMBERG <wl@gnu.org>
8645 Implement continuous underlining for nroff mode. To do that, a new
8646 request in the ditroff language has been added: `x u N' (N is 0
8649 \X and \Y are now transparent to end-of-sentence recognition.
8651 * src/include/printer.h (printer): Add `type' parameter to `special'
8653 * src/libs/libdriver/printer.cc (printer::special): Updated.
8654 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
8656 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
8657 specials of type `p'.
8658 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
8659 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
8660 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
8661 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
8662 (glyph::order): New method.
8663 (tty_printer::add_char): Use it.
8664 (tty_printer::special): New method.
8665 (tty_printer::end_page): Implement it.
8667 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
8668 * src/roff/troff/node.cc (special_node::special_node): Add parameter
8669 to set `no_init_string'.
8670 (special_node::tprint_start): Use it.
8671 (special_node::same, special_node::copy): Updated.
8672 (special_node::ends_sentence): New method.
8673 (troff_output_file::start_special): Add parameter to include
8674 inititialization of special conditionally.
8676 * src/roff/troff/env.h (environment): New member `underline_spaces'.
8677 * src/roff/troff/env.cc (do_underline_special): New function.
8678 (environment::set_font): Use it.
8679 (do_underline): Use it. This was `underline()'.
8680 (underline): Call `do_underline()'.
8681 (continuous_underline): New function which calls `do_underline()'.
8682 (environment::newline): Use `do_underline_special()'.
8683 (init_env_requests): Updated.
8685 * NEWS, man/troff_out.man: Updated.
8687 2001-04-06 Bruno Haible <haible@clisp.cons.org>
8689 * font/devutf8/R.proto: Fix code of 'shc'.
8691 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
8693 Many fixes. Diag lists can now be nested also; additionally,
8694 `-compact' and `-offset' are supported.
8696 * tmac/doc.tmac (doc-have-indent): Replaced with ...
8697 (doc-list-have-indent-stackXXX): A new register stack.
8698 (doc-have-diag-list): Removed.
8699 (Bl): Use `doc-list-have-indent-stackXXX'.
8701 (doc-diag-list): Use `doc-compact-list-stackXXX'.
8702 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
8703 (doc-set-vertical-and-indent): Ditto.
8704 (doc-next-list-depth): Removed.
8705 (doc-increment-list-stack): Updated.
8706 (doc-decrement-list-stack): Use `doc-list-depth' instead of
8707 `doc-next-list-depth'.
8708 (doc-end-list, doc-end-column-list): Don't use
8709 `doc-increment-list-stack'.
8710 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
8711 (doc-save-global-vars, doc-restore-global-vars): Updated.
8712 * tmac/doc-common: Updated.
8713 * tmac/groff_mdoc.man: Updated.
8716 2001-04-02 Werner LEMBERG <wl@gnu.org>
8718 * src/devices/grotty/grotty.man: Fix grammatical error.
8720 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
8722 Remove .Ld from mdoc package; replace it with special handling of
8725 * tmac/doc-common: Remove `Ld' register.
8726 Uncomment `doc-volume-ds-*' strings.
8727 Remove `doc-operating-system-default'.
8729 * tmac/doc-syms (Ld): Removed.
8730 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
8734 * tmac/groff_mdoc.man: Many fixes and updates.
8736 2001-03-29 Werner LEMBERG <wl@gnu.org>
8738 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
8739 Bond <tkb@tkb.mpl.com>.
8740 * tmac/www.tmac: Save compatibility mode.
8742 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
8744 * tmac/groff_mdoc.man: Many fixes.
8746 2001-03-28 Werner LEMBERG <wl@gnu.org>
8748 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
8751 2001-03-27 Werner LEMBERG <wl@gnu.org>
8753 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
8754 diversion. This fixes overlong tags.
8756 2001-03-26 Werner LEMBERG <wl@gnu.org>
8758 * doc/groff.texinfo: Fixed and improved documentation of fonts.
8759 * tmac/doc-syms: Fix error messages.
8760 * tmac/an-old.tmac: Remove incorrect double backslashes.
8762 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
8764 * tmac/Makefile.sub: Strip mdoc.local also
8765 * tmac/strip.sed: Fixed.
8767 2001-03-24 Werner LEMBERG <wl@gnu.org>
8769 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
8770 selecting the font size.
8771 * tmac/groff_mdoc.man, NEWS: Document it.
8773 2001-03-23 Werner LEMBERG <wl@gnu.org>
8775 * src/roff/troff/div.cc (save_vertical_space): Add default argument
8777 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
8778 argument to restore previous font family.
8779 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
8781 * doc/groff.texinfo: More fixes and additions (mainly for font
8782 manipulating commands).
8784 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
8785 * tmac/groff_mdoc.man: This. The quick reference has been removed.
8786 * tmac/Makefile.sub, NEWS: Updated.
8788 2001-03-23 Werner LEMBERG <wl@gnu.org>
8790 Replaced mdoc implementation. The new version is `state of the
8791 art', using almost all new features of groff 1.17 -- it won't run
8792 with older versions.
8794 * tmac/doc.tmac: Completely rewritten.
8795 * tmac/doc-common: Ditto.
8796 * tmac/doc-nroff: Ditto.
8797 * tmac/doc-ditroff: Ditto.
8798 * tmac/doc-syms: Ditto.
8799 * tmac/mdoc.local: New file.
8800 * tmac/groff_mdoc.samples.man: Replaced with ...
8801 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
8802 * tmac/strip.sed: Updated.
8803 * tmac/Makefile.sub: Updated.
8806 * tmac/groff_man.man: Add `man.local' to the FILES section.
8808 2001-03-22 Werner LEMBERG <wl@gnu.org>
8810 * doc/groff.texinfo: Added many @noindent.
8811 Replaced @end_Example -> @endExample.
8812 Added info whether registers are r/o.
8813 Many other additions and fixes.
8815 2001-03-21 Werner LEMBERG <wl@gnu.org>
8817 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
8818 in makeinfo of texinfo 4.0) to be used in @Def* macros.
8819 Improved @Def* macros: Now the exact syntax of request, register,
8820 and escapes is shown.
8821 Added macros for parentheses and brackets to be used in @Def*.
8822 Many fixes and improvements of the documentation.
8824 2001-03-20 Werner LEMBERG <wl@gnu.org>
8826 * doc/groff.texinfo: Added new index: `st' (for strings).
8827 Added macros @Defstr(x).
8828 Added macro @Example (adding @group).
8829 Other minor improvements.
8831 2001-03-19 Werner LEMBERG <wl@gnu.org>
8833 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
8834 `rq' for requests. `fn' is no longer used.
8835 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
8838 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
8839 number with name of man page.
8841 2001-03-19 Larry Kollar <kollar@alltel.net>
8843 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
8846 2001-03-19 Werner LEMBERG <wl@gnu.org>
8848 * man/groff_font.man: Document `prepro', `postpro', and `print'.
8849 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
8850 * src/devices/grohtml/grohtml.man: Fixing typos.
8852 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
8854 * tmac/s.tmac (@IP): Pass `.ip' html tag.
8855 * tmac/groff_mwww.man: Remove .LINE macro
8856 * tmac/www.tmac (LINE): Add `.ti'.
8858 * src/devices/grohtml/post-html.cc (html_printer): New member
8860 (html_printer::emit_raw): Use it.
8861 (html_printer::do_linelength): Ditto.
8862 (html_printer::do_pageoffset): Ditto.
8863 (html_printer::do_indentation): Ditto.
8864 (html_printer::do_tempindent): Ditto.
8865 (html_printer::do_break): Ditto.
8866 (html_printer::begin_page): Ditto.
8867 (html_printer::do_indentedparagraph): New function.
8868 (html_printer::troff_tag): Handle `.ip'.
8869 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
8870 Add `<td width=...>' handling.
8871 (html_text::do_table): Add parameter.
8872 (html_text::do_indent): Updated.
8873 * src/devices/groohtml/html-text.h: Updated.
8875 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
8877 Introduced simple html tables to implement indentation.
8879 * src/devices/grohtml/html.h (word, word_list): New structures.
8880 (simple_output): Use it.
8881 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
8882 (html_printer): Improve indentation handling.
8883 (html_printer::emit_raw): Set `in_table' element. Handle
8885 (html_printer::write_header): Move conditional downwards.
8886 Don't allow whitespace in tags.
8887 (html_printer::do_linelength): Handle line length and indentation
8889 (html_printer::do_pageoffset): Handle indentation conditionally.
8890 (html_printer::do_indentation): Ditto.
8891 (html_printer::do_tempindent): New function member.
8892 (html_printer::do_fill): Take care of indentation.
8893 (html_printer::do_flush): Finish table.
8894 (html_printer::do_links): Ditto.
8895 (html_printer::do_break): New function for handling `.br' and `.ti'.
8896 (html_printer::troff_tag): Use it.
8898 (html_printer::flush_globs): Fix.
8899 (html_printer::flush_page): Finish table.
8900 (html_printer::html_printer): Fix error message. Set up
8902 (html_printer::add_to_sbuf): Remove special handling of character
8904 (to_unicode): Remove `stop()'.
8905 (html_printer::write_title): Cleanup.
8906 (html_printer::begin_page): Use `put_string()'. Handle indentation.
8907 (html_printer::~html_printer): Flush text and end the line.
8909 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
8910 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
8912 (html_text::start_tag): Disable newlines.
8913 (html_text::table_is_void): New function.
8914 (html_text::issue_table_begin): Ditto.
8915 (html_text::issue_table_end): Ditto.
8916 (html_text::push_para): Better table handling.
8917 (html_text::do_indent): New function.
8918 (html_text::do_table): Ditto.
8919 (html_text::done_table): Ditto.
8920 (html_text::do_tt): Handle PRE_TAG.
8921 (html_text::is_in_table): New function.
8922 (html_text::check_emit_text): Handle tables.
8923 (html_text::do_emittext): Use `nl()'.
8924 (html_text::do_para): Handle table.
8925 (html_text::remove_def): New function.
8926 * src/devices/grohtml/output.cc (word, word_list): Implement
8928 (simple_output::end_line): Flush last word.
8929 (simple_output::simple_comment): Ditto.
8930 (simple_output::begin_comment): Recoded.
8931 (simple_output::end_comment): Ditto.
8932 (simple_output::comment_arg): Removed.
8933 (simple_output::check_newline): Improve test and flush last word.
8934 (simple_output::space_or_newline): Improved.
8935 (simple_output::write_newline): Replaced with...
8936 (simple_output::nl): This.
8937 (simple_output::put_raw_char): Flush last word.
8938 (simple_output::check_space): Removed.
8939 (simple_output::put_translated_string): Ditto.
8940 (simple_output::put_string): Simplified.
8941 (simple_output::put_number): Updated.
8942 (simple_output::put_float): Ditto.
8943 (simple_output::put_symbol): Removed.
8944 (simple_output::enable_newlines): Add `check_newline()'.
8945 (simple_output::flush_last_word): New function.
8947 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
8948 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
8950 * tmac/s.tmac (@PP, @IP): Add html conditional code.
8951 * tmac/an-old.tmac (TP): Ditto.
8953 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
8955 * mdate.sh: Make it POSIX compliant.
8957 2001-03-09 Werner LEMBERG <wl@gnu.org>
8959 Added the `return' request to end a macro immediately. It simply
8960 pops iterators from the input stack until a macro iterator is found.
8962 * src/roff/troff/input.cc (input_iterator::is_macro,
8963 macro_iterator::is_macro): New member.
8964 (input_return_boundary): New class to signal an immediate return
8966 (input_stack::add_return_boundary, input_stack::is_return_boundary):
8968 (input_stack::clear): Use it.
8969 (input_stack::pop_macro): New function.
8970 (while_request): Use `is_return_boundary()'.
8971 (return_macro_request): New function.
8972 (init_input_requests): Use it.
8974 * src/roff/troff/TODO: Updated.
8975 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8977 2001-03-08 Werner LEMBERG <wl@gnu.org>
8979 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
8982 2001-03-07 Werner LEMBERG <wl@gnu.org>
8984 Make `\B' more rigid.
8986 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
8988 (get_number_rigidly): New function.
8989 * src/roff/troff/input.cc (do_expr_test): Use it.
8990 * src/roff/troff/token.h: Updated.
8992 * src/roff/troff/request.h: Fix typo (init_html_request ->
8993 init_markup_request).
8995 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
8997 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
8998 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
8999 are now `.begin', `.end', `.image'.
9001 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
9002 (html_printer::add_to_sbuf): Changing type of `code' parameter.
9003 Use add_char_to_sbuf().
9004 (to_unicode): New function.
9005 (char_translate_to_html): Changing type of `ch' parameter.
9007 (html_printer::~html_printer): Comment out doctype string.
9008 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
9009 instead of `.html-end'.
9010 (write_start_image): Use `.begin' and `.image' instead of
9011 `.html-begin' and `.html-image'.
9012 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
9013 (html_begin): Renamed to ...
9015 (html_end): Renamed to ...
9017 (html_image): Renamed to ...
9019 (init_html_requests): Renamed to ...
9020 (init_markup_requests): This.
9021 * tmac/www.tmac: Updated.
9023 2001-02-28 Bram <bram@avontuur.org>
9025 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
9028 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
9030 * doc/meref.me: Fixing some typos.
9032 2001-02-16 Werner LEMBERG <wl@gnu.org>
9034 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
9035 method. Return `HYPHEN_MIDDLE' if it was `\:'.
9036 * src/roff/troff/node.h: Updated.
9038 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
9040 * tmac/groff_tmac.man: Fix typo.
9042 2001-02-16 Werner LEMBERG <wl@gnu.org>
9044 Fixing a bug which prevented proper end-of-sentence recognition
9045 between an `unformatted' box and the following text. As a
9046 consequence, vertical line distances are no longer preserved in
9047 boxes after a call to `.unformat' -- because boxes aren't
9048 line-oriented (contrary to diversions), this doesn't make sense
9051 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
9053 (vertical_size_node::set_unformat_flag): New method.
9054 * src/roff/troff/node.hh: Updated.
9055 * src/roff/troff/input.cc (word_space_node::reread,
9056 hmotion_node::reread): Reset `unformat' flag after usage.
9057 (unformat_macro): Append only if `set_unformat_flag()' returns
9059 * src/roff/troff/troff.man: Updated.
9061 2001-02-15 Werner LEMBERG <wl@gnu.org>
9063 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
9064 documentation of `asciify' and `unformat' requests.
9066 2001-02-13 Werner LEMBERG <wl@gnu.org>
9068 Redesigned the `unformat' request. It is no longer connected with
9069 `asciify' but rather uses new `reread()' methods if the `unformat'
9070 flag is set. Additionally, the handling of space characters after
9071 unformatting has been fixed so that they retain their width.
9073 * src/roff/troff/node.h (width_list): New structure to store
9074 original widths of spaces.
9075 (node): Added `unformat' member.
9076 Replaced `num_spaces' variable with `orig_width' list.
9077 * src/roff/troff/node.cc (*node::asciify,
9078 asciify_reverse_node_list): Removed `unformat_only' flag and related
9080 (word_space_node::asciify, word_space_node::word_space_node): Use
9082 (word_space_node::~word_space_node): New destructor.
9083 (word_space_node::copy): Updated to handle `orig_width'.
9084 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
9085 (*node::merge_space): Update `orig_width' list if necessary.
9086 (*node::set_unformat_flag): New methods to set the `unformat' flag.
9087 * src/roff/troff/enc.cc (environment::space_newline): Use
9089 (environment::space): Added method to handle space width and
9090 sentence space width as parameters. Use `width_list'.
9091 (environment::make_tab_node): Updated.
9092 * src/roff/troff/env.h: Updated.
9093 * src/roff/troff/input.cc (word_space_node::reread,
9094 unbreakable_space_node::reread, hmotion_node::reread): New methods
9095 to handle nodes specially if `unformat' flag is set.
9096 (do_asciify_macro): Renamed back to ...
9097 (asciify_macro): This.
9098 (unformat_macro): New implementation to simply set the `unformat'
9101 * MORE.STUFF: Added more info about deroff.
9103 2001-02-08 Werner LEMBERG <wl@gnu.org>
9105 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9106 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
9107 and `add_self()' methods to avoid hyphenation. For example, the
9108 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
9109 soft hyphen after `foo'. Now the hyphen list is correctly
9110 `foo<ignore><ignore>bar'.
9112 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
9114 * tmac/groff_tmac.man: Fix `BIR' macro.
9116 2001-02-04 Werner LEMBERG <wl@gnu.org>
9118 A new escape sequence `\:', inserting a zero-width break point.
9120 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
9121 * src/roff/troff/input.cc (get_copy, token::next, asciify):
9123 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
9125 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
9126 and `asciify()' methods.
9127 * src/roff/troff/node.cc (space_node::space_node): Updated.
9128 (space_node::asciify): Handle `was_escape_colon'.
9129 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9131 Handle `\~' similar to other comparable requests.
9133 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
9135 (token::next): Move creation of an unbreakable_space_node to...
9136 (token::add_to_node_list): Here.
9138 Fix a bug which sometimes prevented hyphenation of words connected
9139 with `\~' or `\ ' (and other escape sequences handled as
9140 TOKEN_NODE). This also fixes a hyphenation problem with boxes
9141 (after a call to the `unformat' request).
9143 * src/roff/troff/env.h (environment::possibly_break_line,
9144 environment::hyphenate_line): Introducing `start_here' parameter.
9145 * src/roff/troff/env.cc (environment::space_newline,
9146 environment::space): Use it.
9147 (environment::possibly_break_line, environment::hyphenate_line):
9149 * src/roff/troff/input.cc (process_input_stack): Use it.
9150 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9151 space_char_hmotion_node, overstrike_node): Add
9152 `get_hyphenation_type()' method.
9153 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
9154 if `unformat_only' is active.
9156 2001-01-30 Werner LEMBERG <wl@gnu.org>
9158 Implemented new read-only number register `.linetabs' which
9159 returns 1 if in line-tabs mode, 0 otherwise.
9161 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
9162 * src/roff/troff/env.cc (get_line_tabs): New function.
9163 (init_env_requests): Use it.
9164 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9166 * VERSION, REVISION: Changing to 1.17.0.
9168 2001-01-28 Werner LEMBERG <wl@gnu.org>
9170 Fixed a bug which prevented hyphenation of words which are finished
9173 * src/roff/troff/token.h (token): Add enum type
9174 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
9175 * src/roff/troff/input.cc (token::next, token::description,
9176 get_line_arg, token::add_to_node_list, token::process): Use it.
9178 2001-01-27 Werner LEMBERG <wl@gnu.org>
9180 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
9181 * src/roff/troff/div.cc (do_divert): Use it.
9183 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
9185 2001-01-25 Werner LEMBERG <wl@gnu.org>
9187 Adding the `linetabs' request. If set, tab distances are not
9188 computed relative to the input line but relative to the output line.
9190 * src/roff/troff/env.h (environment): New member `line_tabs'.
9191 * src/roff/troff/env.cc (line_tabs_request): Implement request.
9192 (environment::environment, environment::copy): Updated.
9193 (environment::distance_to_next_tab): Use `line_tabs'.
9194 (init_env_requests): Register request.
9195 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
9198 2001-01-24 Werner LEMBERG <wl@gnu.org>
9200 Introducing a new read-only register `.int' which is set to a
9201 positive value if the last output line is interrupted (i.e., if it
9204 * src/roff/troff/env.cc (init_env_requests): Add it.
9205 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9207 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
9209 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
9210 * src/preproc/html/pre-html.cc (findPrefix): New function which
9211 generates the troff executable name via the system prefix.
9212 * src/preproc/eqn/main.cc: Modified warning message.
9214 2001-01-23 Werner LEMBERG <wl@gnu.org>
9216 troff's `box' and `boxa' requests didn't preserve temporary
9219 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
9220 `saved_target_text_length' members.
9221 * src/roff/troff/div.cc (do_divert): Use them.
9223 Tabs (but not yet leaders and fields) are now handled correctly by
9226 * node.h (hmotion_node): Add field `was_tab'.
9227 * env.cc (environment::make_tab_node): Set it.
9228 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
9230 Added new request `unformat' which will, contrary to `asciify',
9231 preserve font information after unformatting (i.e., only nodes
9232 dealing with horizontal space are converted back to input
9235 * input.cc (asciify_macro): Renamed to ...
9236 (do_asciify_macro): this, having a new parameter `unformat_only'.
9237 (asciify_macro, unformat_macro): New; using do_asciify_macro.
9238 (init_input_requests): Added `unformat'.
9239 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
9240 parameter to control asciification process.
9241 * node.h (*_node::asciify): Ditto.
9242 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9244 2001-01-20 Werner LEMBERG <wl@gnu.org>
9246 * doc/groff.texinfo: Minor improvement of `.in' documentation.
9248 2001-01-18 Werner LEMBERG <wl@gnu.org>
9250 * tmac/ps.tmac: Remove call of psold.tmac.
9251 * tmac/psold.tmac: Comment updated.
9252 * tmac/psnew.tmac: Removed since no longer needed.
9253 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
9255 * font/devutf8/R.proto: Adding `shc' glyph.
9256 * font/devutf8/NOTES: Updated.
9258 * test-groff: Updated.
9260 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
9262 First cut of the new html device driver. Changes to pre-html and
9263 the new grohtml are too numerous to be documented here.
9265 Stuff related to `html' has been renamed to `html-old' and `html2'
9266 stuff has been renamed to `html' (including directories). The new
9267 html device driver is therefore invoked as `-Thtml'.
9269 Added new `\O' escape to suppress output (needed by html driver).
9271 Added functions and code to pass info about input-level commands
9272 (`.in', `.fl', etc.) to html driver.
9274 Three new functions (.html-begin, .html-end, and .html-image) for
9275 better html handling: `html-begin' will execute the remaining line
9276 if at the outermost nesting level, increasing an internal counter.
9277 `html-end' does the same but decreases the internal counter.
9278 `html_image' puts its arguments into a special node (suppress_node)
9279 to define an image region.
9281 The `output' request has been removed.
9283 * tmac/html-tags.tmac: Removed.
9284 * tmac/arkup.tmac: Updated and renamed to ...
9285 * tmac/www.tmac: New file.
9286 * tmac/markup.tmac Updated and renamed to ...
9287 * tmac/mwww.tmac: New file.
9288 * tmac/Makefile.sub: Updated.
9289 * tmac/an-old.tmac: Updated.
9290 * tmac/eqnrc: Updated.
9291 * tmac/groff_man.man
9292 * tmac/groff_markup.man: Updated and renamed to ...
9293 * tmac/groff_mwww.man: New file.
9294 * tmac/groff_tmac.man: Updated.
9295 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
9296 * tmac/html.tmac: Updated and renamed from html2.tmac.
9297 * tmac/pspic.tmac: Updated html support.
9298 * tmac/s.tmac: Added html output support.
9299 * tmac/troffrc, tmac/troffrc-end: Updated.
9301 * Makefile.in, doc/Makefile: Updated.
9302 * doc/groff.texinfo: Added info about new `\O' escape.
9303 * doc/homepage.ms: Use `MAILTO' macro.
9305 * font/devhtml/DESC.proto: Add `C' font.
9306 * font/devhtml/Makefile.sub: Updated.
9307 * font/devhtml/R.proto: Minor fixes.
9308 * font/devhtml-old/Makefile.sub: Updated.
9310 * src/devices/grohtml-old/Makefile.sub: Updated.
9312 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
9314 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
9315 graphic_start): Add `inline' parameter. Update.
9316 (html_end_suppress, graphic_end): Update.
9318 * src/include/html-strings.h: New file.
9319 * src/include/htmlindicate.h: Comments updated.
9320 * src/include/printer.h: Updated.
9322 * src/preproc/eqn/main.cc (do_file, main): Updated.
9323 * src/preproc/pic/troff.cc (troff_output::start_picture,
9324 troff_output::finish_picture): Updated.
9325 * src/preproc/tbl/main.cc (process_input_file): Updated.
9327 * src/roff/groff/groff.cc (main): Updated.
9328 Pass device arguments to predrivers also.
9329 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
9330 * src/roff/troff/env.h (environment): Updated.
9331 New elements `need_eol' and `ignore_next_eol' (for html output).
9332 * src/roff/troff/env.cc (environment::environment): Add initializers
9333 for `need_eol' and `ignore_next_eol'.
9334 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
9336 (point_size, fill, no_fill, center, right_justify, line_length,
9337 indent, temporary_indent, break_request, handle_tab): Use
9339 (set_tabs): Use `add_html_tag_tabs()'.
9340 (environment::add_html_tag): Updated.
9341 (environment::do_break): Updated.
9342 * src/roff/troff/div.cc (space_request, flush_output): Use
9343 `environment::add_html_tag()'.
9344 * src/roff/troff/input.cc: Updated.
9345 New variable `html_level' to indicate nested `html-begin' requests.
9346 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
9347 (non_interpreted_char_node, token_node, non_interpreted_node): Add
9348 `force_tprint()' method.
9349 (token::next): Handle `\O'.
9350 (do_suppress): Implement it.
9351 (html_begin, html_end, html_image): New functions.
9352 (init_output_requests): Renamed to ...
9353 (init_html_requests): this.
9355 (macro::append_str, macro::append_unsigned, macro::append_int): New
9357 New variable `output_low_mark_miny' to limit minimal value of y.
9358 (reset_output_registers): Use it.
9359 (output_request): Removed.
9360 (get_output_registers): New function.
9361 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
9362 (*_node): Added `force_tprint()' if necessary.
9363 (special_node): New elements `tf' and `get_tfont()'.
9364 (suppress_node): New class.
9365 * src/roff/troff/node.cc:
9366 New global variables `image_no' and `suppress_start_page'.
9367 (real_output_file): New method `is_on()'.
9368 (troff_output_file): New method `start_special(tfont)'.
9369 (troff_output_file::really_print_line): Use `tprint' conditionally.
9370 (real_output_file::print_line): Updated.
9371 (real_output_file::on): Updated.
9372 (*_node): Added `force_tprint()'.
9373 (special_node::special_node): Initializer updated.
9374 (special_node::same, special_node::copy, special_node::tprint_start):
9376 (get_reg_int, get_reg_str): New functions.
9377 (suppress_node::*): New methods.
9378 New global variables last_position, last_image_filename;
9379 (min): New inline function.
9380 * src/roff/troff/reg.h, src/roff/troff/request.h,
9381 src/roff/troff/troff.h: Updated.
9383 2001-01-13 Werner LEMBERG <wl@gnu.org>
9385 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
9386 documentation of `asciify' request.
9388 2001-01-12 Werner LEMBERG <wl@gnu.org>
9390 * src/roff/troff/input.cc: Move definition of special characters
9391 like `ESCAPE_TILDE' to ...
9392 * src/roff/troff/input.h: New file.
9393 * src/roff/troff/Makefile.sub (HDRS): Add it.
9395 Extending the .asciify request to `unformat' space characters also.
9397 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
9398 to count input space characters.
9399 Update constructors to take care of it.
9400 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
9401 `ESCAPE_SPACE' instead of normal space.
9402 (word_space_node::asciify): New method.
9403 (unbreakable_space_node::asciify): New method.
9404 (word_space_node::merge_space): New method.
9405 * src/roff/troff/env.cc (environment::space_newline,
9406 environment::space): Add code to initialize `num_spaces' (using the
9407 constructor of `word_space_node').
9408 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9411 2001-01-09 Werner LEMBERG <wl@gnu.org>
9413 * man/groff_char.man: Use table header traps only conditionally.
9415 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
9417 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
9419 2001-01-08 Werner LEMBERG <wl@gnu.org>
9421 Introducing the `box' and `boxa' requests which are similar to
9422 `di' resp. `da' but omitting a partially filled line (which is
9423 restored after ending the diversion).
9425 * src/roff/troff/div.h (diversion): Add elements to save partially
9427 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
9428 partially filled line.
9429 (divert, divert_append): Updated.
9430 (box, box_append): New functions.
9431 (init_div_requests): Use them.
9432 * src/roff/troff/env.h (environment): do_divert() is now a friend.
9433 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9435 * doc/groff.texinfo: Fix documentation of `lf' request.
9437 2000-12-25 Werner LEMBERG <wl@gnu.org>
9439 * src/roff/troff/troff.man, NEWS: Document `writem' request.
9441 2000-12-21 Werner LEMBERG <wl@gnu.org>
9443 Ignore `ss' request if in compatibility mode.
9445 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
9446 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
9447 * src/roff/troff/env.cc (space_size): Use it.
9449 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
9450 `ss' request in nroff mode.
9452 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
9455 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
9457 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
9459 2000-12-13 Werner LEMBERG <wl@gnu.org>
9461 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
9462 * src/preproc/eqn/neqn.man: Small fixes and additions.
9464 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
9466 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
9469 * src/preproc/eqn/neqn.man: New file.
9471 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
9474 * tmac/e.tmac: Add `T&' macro.
9475 Fix `indent cannot be negative' warning.
9476 * tmac/s.tmac: Fix `indent cannot be negative' warning.
9478 2000-12-07 Werner LEMBERG <wl@gnu.org>
9480 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
9482 2000-12-06 Werner LEMBERG <wl@gnu.org>
9484 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
9487 * MORE.STUFF: Added info about deroff for djgpp.
9489 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
9490 documentation of -rcR switch.
9492 2000-12-03 Werner LEMBERG <wl@gnu.org>
9494 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
9495 if -rcR=1 (which is now the default in nroff mode), a single, very
9496 long page is created instead of multiple pages: All `ne' and `wh'
9497 requests are put into conditionals; a new macro `an-end' is added to
9498 be called with `em'.
9500 Some other minor cleanups.
9502 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
9504 2000-12-02 Werner LEMBERG <wl@gnu.org>
9506 Fixing a bug which prevented hyphenation in words followed
9507 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
9509 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
9510 Adding possibly_break_line().
9511 * src/roff/troff/env.h (environment): Make possibly_break_line()
9514 Make `\~' usable in .tr request.
9516 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
9517 (token): Add stretchable_space().
9518 * src/roff/troff/input.cc (token::next, token::delimiter,
9519 token::description, process_input_stack, do_translate,
9520 add_to_node_list, token::process): Use it.
9521 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
9522 for adjusting the space.
9523 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
9524 for stretchable space.
9525 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
9526 (make_node): Add code for stretchable space.
9527 * src/roff/troff/env.cc (environment::add_char): Use it.
9528 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
9529 (get_copy, token::next, transparent_translate, asciify): Use it.
9531 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
9532 doc/groff.texinfo: Updated.
9533 * man/groff.man: Small reorderings.
9535 2000-11-23 Werner LEMBERG <wl@gnu.org>
9538 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
9540 * src/roff/troff/input.cc (main): Add `config_macro_path' and
9541 `safer_macro_path' to -M option.
9542 * src/roff/troff/troff.man: Fixes.
9544 2000-11-22 Werner LEMBERG <wl@gnu.org>
9546 Use safer path (except for config files) if -U isn't specified. Add
9547 a special macro path (without home and current directory) for config
9548 files. Add home directory to unsafe path for consistency. Don't
9549 include the home directory in the font path.
9551 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
9553 * src/include/macropath.h: Add `config_macrp_path'.
9554 * src/libs/libgroff/fontfile.cc: Fix font path.
9555 * src/roff/troff/input.cc (process_startup_file): Use
9556 `config_macro_path'.
9557 (main): Select unsafe path if -U is given.
9559 * src/preproc/eqn/main.cc (main): Fixing search path for
9561 * src/preproc/eqn/eqn.man: Updated.
9563 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
9566 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
9567 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
9568 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9569 src/devices/grotty/grotty.man: Updated.
9571 * Makefile.in: Fix comments.
9573 2000-11-17 Werner LEMBERG <wl@gnu.org>
9575 * tmac/safer.tmac: Empty file added (again) for compatibility
9577 * tmac/Makefile.sub: Updated.
9579 2000-11-16 Werner LEMBERG <wl@gnu.org>
9581 * src/devices/grodvi/dvi.cc (main),
9582 src/devices/grohtml2/post-html.cc (main),
9583 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9584 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9585 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9586 (main), src/preproc/html2/pre-html.cc (main),
9587 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9588 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9589 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9590 (main), src/utils/hpftodit/hpftodit.cc (main),
9591 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
9592 (main), src/utils/lookbib/lookbib.cc (main),
9593 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
9594 (main): Use stdout for -v.
9595 * src/roff/groff/groff.cc (run_commands),
9596 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
9597 to make direct printing to stdout possible.
9598 * src/roff/groff/pipeline.h: Updated.
9600 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
9601 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
9602 * src/utils/afmtodit/afmtodit.man: Updated.
9604 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
9605 (version): New function.
9607 * src/utils/addftinfo/addftinfo.man: Updated.
9609 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
9610 Fixing copyright dates.
9612 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
9615 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
9618 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
9620 2000-11-15 Werner LEMBERG <wl@gnu.org>
9622 In all programs, make -v return immediately with exit status 0 to
9623 be compliant with the GNU standard.
9625 * src/devices/grodvi/dvi.cc (main),
9626 src/devices/grohtml2/post-html.cc (main),
9627 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9628 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9629 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9630 (main), src/preproc/html2/pre-html.cc (main),
9631 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9632 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9633 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9634 (main): Implement it.
9637 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
9638 and postprocessors to the -v option.
9640 * src/roff/grog/grog.pl: Implement -v.
9641 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
9642 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9644 * src/roff/nroff/nroff.sh: Implement -v.
9645 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
9646 * src/roff/nroff/nroff.man: Updated.
9648 * src/preproc/eqn/main.cc (main): Fix comment typo.
9650 * MORE.STUFF: Added info about djgpp port of grap.
9652 2000-11-14 Werner LEMBERG <wl@gnu.org>
9654 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
9655 mode (or rather, implemented non-compatibility mode).
9656 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9658 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
9659 replacing it -- we don't find gxditview otherwise.
9660 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
9662 * src/preproc/pic/depend: Removed. Unnecessary.
9664 Implemented dummy keyword `solid' in pic for compatibility with
9667 * lex.cc (lookup_keyword): Added `solid'.
9668 * pic.y: Added SOLID with dummy rule.
9669 * pic.cc, pic_tab.h: Regenerated.
9670 * doc/pic.ms: Updated.
9672 2000-11-13 Werner LEMBERG <wl@gnu.org>
9674 For security reasons, don't use the current directory but the home
9675 directory while searching and scanning troffrc and troffrc-end.
9676 Similarly, replace the current directory with the home directory
9679 * Makefile.in (fontpath, tmacpath): Remove current directory.
9681 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
9682 two parameters `add_home' and `add_current'.
9683 (search_path::~search_path, search_path::command_line_dir,
9684 search_path::open_file): Remove tests for `dirs' being zero.
9685 * src/include/searchpath.h: Adjust.
9686 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
9688 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
9690 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
9691 * src/roff/troff/input.cc: Use `mac_path', initialized with
9693 (process_startup_file): Set `mac_path' to `safer_macro_path'.
9694 * src/roff/troff/env.cc: Use `mac_path'.
9696 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
9698 * NEWS, man/roff.man, src/roff/troff/troff.man,
9699 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
9702 2000-11-12 Werner LEMBERG <wl@gnu.org>
9704 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
9706 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
9707 * configure.in: Fix typo in comment.
9708 * configure: Regenerated.
9710 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
9713 2000-11-08 Werner LEMBERG <wl@gnu.org>
9715 Add system tmac directory (/usr/local/lib/groff/site-tmac).
9717 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
9718 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
9721 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
9722 * tmac/Makefile.sub (install_data): Create
9723 $(systemtmacdir) and $(localtmacdir).
9724 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
9725 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
9726 NEWS, doc/groff.texinfo: Updated and minor fixes.
9728 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
9729 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
9730 $(systemtmacdir) since the wrapper files are platform-dependent.
9732 2000-11-01 Werner LEMBERG <wl@gnu.org>
9734 * doc/groff.texinfo: Fix typo.
9736 2000-10-26 Werner LEMBERG <wl@gnu.org>
9738 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
9739 tmac.doc.old -> doc-old.tmac
9740 tmac.an.old -> an-old.tmac
9742 * tmac/tmac.*: Moved to ...
9743 * tmac/*.tmac: this.
9744 * tmac/man.local: Fix comment.
9745 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
9746 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
9747 Added some `FILES' sections. More use of @...@ directives. Other
9749 * arch/djgpp/README, font/devutf8/NOTES: Updated.
9750 * doc/homepage.ms, doc/groff.texinfo: Updated.
9751 * man/groff.man, man/roff.man: Updated.
9752 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
9753 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9754 src/devices/grotty/grotty.man: Updated.
9755 * src/preproc/pic/pic.man: Updated.
9756 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
9757 instead of -mdoc.old.
9758 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
9759 * src/roff/nroff/nroff.man: Updated.
9762 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
9764 * tmac/mm.diff: Removed -- it has no use now since the mm package
9767 * tmac/*: Removed trailing spaces.
9769 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
9770 the tmac subdirectory also).
9772 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
9773 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
9774 stuff since it is no longer needed.
9776 * README, PROBLEMS: Updated.
9778 2000-10-25 Werner LEMBERG <wl@gnu.org>
9780 Invert current behaviour: Search first FOOBAR.tmac, then
9783 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
9784 (open_mac_file, macro_source): Implement it.
9785 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
9786 doc/groff.texinfo, NEWS: Document it.
9788 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
9789 Small documentation improvements.
9791 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
9794 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
9796 2000-10-24 Werner LEMBERG <wl@gnu.org>
9798 Add local tmac directory (groff/site-tmac).
9800 * Makefile.in: Add $(localtmacdir).
9801 (uninstall_dirs): Add $(localtmacdir).
9802 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
9803 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
9804 in $(localtmacdir). Create $(localtmacdir).
9805 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
9806 Updated and minor fixes.
9808 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
9810 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
9812 2000-10-23 Werner LEMBERG <wl@gnu.org>
9814 Move hyphen.us to tmac directory.
9816 * src/roff/troff/hyphen.us: Removed.
9817 * src/tmac/hyphen.us: Added.
9818 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
9820 Change installation structure for data files from .../groff/... to
9821 .../groff/<version><revision>/... to be conform with other GNU
9824 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
9825 doc/Makefile: Implement it.
9826 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
9827 * configure: Updated.
9828 * arch/djgpp/README, font/devutf8/NOTES: Use it.
9829 * NEWS: Document it.
9830 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
9831 @MACRODIR@ instead of hard-coded directories.
9833 2000-10-22 Werner LEMBERG <wl@gnu.org>
9835 Implement $GROFF_BIN_PATH environment variable (which defaults to
9836 $bindir) used for child programs of groff and similar wrappers.
9838 * gendefs.sh: Improve documentation.
9839 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
9840 src/preproc/eqn/Makefile.sub (neqn),
9841 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
9842 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
9844 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
9845 $GROFF_PATH__ (the latter for communication with troff).
9846 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
9848 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
9849 doc/groff.texinfo: Document it.
9851 * doc/groff.texinfo: Improve documentation of troff's -a option.
9853 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
9855 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
9856 non-intrusive eol marker.
9857 (troff_output_file::determine_line_limits): New function.
9858 (troff_output_file::draw): Use it.
9859 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
9860 output_pending_lines() instead of output_line().
9861 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
9862 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
9863 createImage): Small fixes.
9865 2000-10-14 Werner LEMBERG <wl@gnu.org>
9867 Replace tmac.safer with a real secure solution.
9869 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
9870 system_request, pipe_output): Disable requests if in safer mode.
9871 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
9872 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
9873 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
9874 doc/groff.texinfo, src/roff/groff/groff.man,
9875 src/roff/troff/troff.man, arch/djgpp/README: Updated.
9877 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
9878 (resource_manager::output_prolog): Replace setenv() with putenv().
9880 2000-10-09 Werner LEMBERG <wl@gnu.org>
9882 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
9883 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
9884 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
9885 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
9886 compilation errors with some compilers. It seems that this code
9887 is no longer necessary -- if yes, it is easy to add some #ifdef's
9888 for that particular old-fashioned compiler.
9890 * MORE.STUFF: Added info about Meta-tbl.
9892 * doc/groff.texinfo: Added more info about `.if "..."..."'.
9894 2000-10-07 Werner LEMBERG <wl@gnu.org>
9896 Adding a new escape sequence \B'...': If the string between
9897 the delimiters is a valid numeric expression, return the character
9898 `1', and `0' otherwise. This is an analogon to \A.
9900 * src/roff/troff/input.cc (do_expr_test): Implement it.
9901 (token::next): Use it.
9902 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
9904 * tmac/tmac.trace: Made independent from escape character.
9906 2000-10-06 Werner LEMBERG <wl@gnu.org>
9908 Adding a new request .dei: define indirect. The first and second
9909 parameter of .dei are taken from string registers instead directly;
9910 this very special request is needed to make tmac.trace independent
9911 from the escape character (which might even be disabled).
9913 * src/roff/troff/input.cc (do_define_macro): Implement it.
9914 (define_macro_indirect): New function.
9915 (init_input_requests): Use it.
9917 Adding two requests .ecs and .ecr: Save and restore the escape
9918 character. These two requests are needed to make tmac.trace
9919 independent from the escape character (which might even be
9922 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
9924 (init_input_requests): Use it.
9926 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9928 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
9930 Adding a new option -P and new environment variable GROPS_PROLOGUE
9931 to grops, selecting a different prologue file (minor modifications
9934 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
9935 src/devices/grops/ps.cc (main): Implement it.
9936 * src/devices/grops/grops.man, NEWS: Document it.
9938 2000-09-22 Werner LEMBERG <wl@gnu.org>
9940 * INSTALL: Add info about selecting paper format.
9942 2000-09-21 Werner LEMBERG <wl@gnu.org>
9944 * src/roff/troff/input.cc (main): Fixing compiler warning.
9945 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
9946 strings.h from the former to the latter.
9947 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
9948 stuff from the former to the latter.
9950 2000-09-11 Werner LEMBERG <wl@gnu.org>
9952 Implementing two new requests .tm1 and .tmc: The former is similar
9953 to .tm but can output leading spaces; its syntax is similar to
9954 defining a string, i.e., a `"' can be used to mark the beginning of
9955 the string to be written to stderr: `.tm1 " test'. The latter is
9956 similar to .tm1 but doesn't write out a final newline character.
9958 * src/roff/troff/input.cc (terminal1, terminal_continue,
9959 do_terminal): New functions.
9960 (init_input_requests): Use them.
9961 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9963 2000-09-09 Werner LEMBERG <wl@gnu.org>
9965 * tmac/groff_mdoc.samples.man: Small fixes.
9967 2000-09-08 Werner LEMBERG <wl@gnu.org>
9969 * tmac/groff_mdoc.man: Fixing typo.
9971 2000-09-02 Werner LEMBERG <wl@gnu.org>
9973 Implementing a .nop request which does nothing.
9975 * src/roff/troff/input.cc (nop_request): New function.
9976 (init_input_requests): Use it.
9977 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9979 2000-09-01 Werner LEMBERG <wl@gnu.org>
9981 * doc/groff.texinfo: Added some comments.
9983 2000-08-30 Werner LEMBERG <wl@gnu.org>
9985 * src/roff/troff/TODO: Updated.
9987 2000-08-25 Werner LEMBERG <wl@gnu.org>
9989 * doc/groff.texinfo: Fix comment how to compile the DVI file.
9991 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
9993 * font/devps/generate/Makefile (SHELL): Define explicitly to
9994 "/bin/sh", for non-Unix platforms.
9995 (extraclean): Use a more portable "" quoting instead of a
9996 backslash (which doesn't work on DOS/Windows).
9998 * font/devlj4/generate/Makefile (extraclean): Ditto.
10000 * font/devdvi/generate/Makefile (extraclean): Ditto.
10002 2000-08-25 Werner LEMBERG <wl@gnu.org>
10004 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
10005 src/roff/troff/troff.man: Document Eli's latest changes.
10007 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
10009 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
10010 macro file names of the form NAME.tmac as well as tmac.NAME.
10012 2000-08-25 Werner LEMBERG <wl@gnu.org>
10014 * src/include/posix.h: Remove definition of FILENAME_MAX.
10016 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
10017 `sys_fatal' and `stop' function().
10019 * test-groff: Updated.
10021 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
10023 Added the new troff command .output <arg> to suppress output (while
10024 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
10025 registers (for passing the output dimensions to the output device).
10027 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
10029 * src/roff/troff/node.h, src/roff/troff/node.cc
10030 (troff_output_file::really_print_line,
10031 ascii_output_file::really_print_line,
10032 supress_output_file::really_print_line): Use `width' parameter.
10033 (troff_output_file::really_on, troff_output_file::really_off,
10034 output_file::on, output_file::off, real_output_file::on,
10035 real_output_file::off, real_output_file::really_on,
10036 real_output_file::really_off): New functions.
10037 (real_output_file:public output_file): New variable `output_on'.
10038 (real_output_file::begin_page, real_output_file::copy_file,
10039 real_output_file::transparent_char, real_output_file::print_line):
10041 (real_output_file::print_line): Use check_output_limits.
10042 * src/roff/troff/reg.h, src/roff/troff/request.h,
10043 src/roff/troff/input.cc (assign_registers): New function to remove
10045 (do_ps_file): Use it.
10046 (check_output_limits, reset_output_registers, output_request,
10047 init_output_requests): New functions.
10048 (init_input_requests): Updated.
10050 Added new grohtml2 device and html2 preprocessor (coding
10051 not yet finished) which will eventually replace grohtml.
10053 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
10055 * src/include/htmlindicate.h, src/include/htmlindicate
10056 (html_begin_suppress, html_end_suppress): New functions.
10057 * src/preproc/tbl/main.cc: Use it.
10058 * src/roff/groff/groff.cc: Add support for html2 device (which will
10059 automatically invoke the html2 preprocessor).
10060 * src/roff/troff/input.cc (is_html2): New variable.
10061 * src/roff/troff/troff.h, src/roff/troff/env.h,
10062 src/roff/troff/env.cc (environment::add_html_tag): New function
10064 (environment::do_break): Use it.
10065 * font/devhtml2/*: New files.
10066 * src/devices/grohtml2: New device.
10067 * src/preproc/html2: New preprocessor.
10068 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
10070 2000-08-23 Werner LEMBERG <wl@gnu.org>
10072 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
10074 2000-08-22 Werner LEMBERG <wl@gnu.org>
10076 * src/include/lib.h: Provide a fix for IRIX to not include
10079 2000-08-18 Werner LEMBERG <wl@gnu.org>
10081 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
10082 since some non-GNU sed programs can't handle null regexps.
10083 * configure, src/preproc/eqn/Makefile.sub,
10084 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
10086 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
10087 bug (string.h and strings.h are both needed according to latest
10090 * MORE.STUFF: Added info about unroff and troffcvt.
10092 2000-08-08 Werner LEMBERG <wl@gnu.org>
10094 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
10097 * tmac/tmac.man.old: Remove unused number register.
10099 * tmac.doc: Minor documentation fix.
10101 2000-08-07 Paul Eggert <eggert@twinsun.com>
10103 * src/roff/groff/pipeline.c (is_system_shell):
10104 Fix typo: "monocased_shell" no longer exists.
10106 2000-08-07 Paul Eggert <eggert@twinsun.com>
10108 Remove FILENAME_MAX limits.
10110 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
10111 that the argument length is less than FILENAME_MAX.
10112 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
10113 Use struct hack to allocate and free file name.
10114 (struct xtmpfile_list): fname is now part of the structure,
10115 not a pointer to another string.
10117 2000-08-07 Tom Schmidt <tschmidt@micron.com>
10119 * src/include/posix.h: Add a default value for FILENAME_MAX.
10121 2000-08-06 Paul Eggert <eggert@twinsun.com>
10123 Add support for new BSD-style man pages (with ".Dd" instead of
10124 ".TH"), so that "groff -man" understands both styles, even
10125 when running "groff -man" on a host whose system man page
10126 macros don't support ".Dd".
10128 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
10129 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
10130 in case the system man macros don't define Dd or TH.
10132 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
10133 * tmac/tmac.an: New one-line file.
10134 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
10136 2000-08-06 Werner LEMBERG <wl@gnu.org>
10138 * src/roff/troff/troff.man: Fixing typos.
10140 Version 1.16.1 released
10141 =======================
10143 2000-07-31 Werner LEMBERG <wl@gnu.org>
10145 Preparing release 1.16.1.
10147 * REVISION: Revision number set to 1.
10148 * MORE.STUFF: Added info about port to DOS.
10149 * NEWS, win32-diffs: Updated.
10151 * src/include/nonposix.h: Remove first line -- this file is used
10154 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
10157 2000-07-30 Werner LEMBERG <wl@gnu.org>
10159 * doc/texinfo.tex: Update to latest version.
10161 2000-06-28 Paul Eggert <eggert@twinsun.com>
10163 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
10164 commands that fail. Don't assume that "export a=b" is valid shell
10165 syntax. This is needed for Solaris 2.5.1.
10167 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
10168 comment about missing Solaris headers.
10170 * PROBLEMS: Add section about problems with Sun Make and VPATH.
10172 2000-06-25 Werner LEMBERG <wl@gnu.org>
10174 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
10177 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
10179 * win32-diffs: Updated.
10180 * README.WIN32: Added CRs to make all Windows editors happy.
10182 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
10183 src/roff/groff/pipeline.c).
10185 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
10187 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
10188 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
10190 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
10192 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
10193 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
10195 (main): Support non-Posix systems with several different styles of
10196 slash characters in file names.
10198 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
10199 (main) [SET_BINARY]: Switch stdin into binary mode.
10201 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
10202 (main): Support file names with several possible slash-type
10203 characters, as given by DIR_SEPS[] in nonposix.h.
10204 (main) [__MSDOS__]: If renaming the temporary index file fails
10205 because it has more than one dot in its trunk, replace the dot
10206 with an underscore and try again.
10207 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
10209 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
10211 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
10212 (File::File): Open the input file in binary mode. Strip CR
10213 characters from each CR-LF pair.
10214 (xbasename): Support file names with several possible slash-type
10215 characters, as given by DIR_SEPS[] in nonposix.h.
10217 * src/include/Makefile.sub (HDRS): Add nonposix.h.
10219 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
10220 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
10221 [!_POSIX_VERSION]: Define for traditional Unix systems.
10222 (real_output_file::real_output_file): Remove the MSVC-specific
10223 call to popen, use instead POPEN_WT, appropriately defined on
10224 nonposix.h. #include nonposix.h.
10225 (real_output_file::~real_output_file): Remove the MSVC-specific
10226 call to pclose, a suitable macro is now defined on nonposix.h.
10227 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
10228 and WEXITSTATUS instead of assuming traditional Unix
10229 interpretation of the status returned by pclose.
10231 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
10232 call to popen, use POPEN_RT instead (appropriately defined on
10233 nonposix.h). #include nonposix.h.
10234 (ps_bbox_request): Open the PostScript file in binary mode.
10235 Close the file after processing it.
10236 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
10239 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
10240 A version of run_pipeline that doesn't use `fork'.
10241 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
10242 (system_shell_name, system_shell_dash_c)
10243 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
10244 the ugliness of testing DOS/Windows file names for equality, and
10245 support both stock shells and ports of Unix shells.
10247 * src/roff/groff/groff.cc: #include nonposix.h.
10248 (BSHELL): Definition moved to nonposix.h.
10249 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
10250 instead of a literal "-c".
10251 (xbasename): Support file names with several possible slash-type
10252 characters, as given by DIR_SEPS[] in nonposix.h.
10253 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
10254 of literal strings.
10256 * src/preproc/soelim/soelim.cc: #include nonposix.h.
10257 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
10259 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
10262 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
10264 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
10267 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
10269 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
10270 P_tmpdir is defined, use it instead of the literal "/tmp".
10271 (remove_tmp_files, add_tmp_file): New functions.
10272 (xtmpfile): Record temporary files and register an atexit function
10273 to delete them explicitly, instead of relying on the OS to do
10274 that, which doesn't work on non-Unix systems.
10276 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
10277 (search_path::search_path): Use PATH_SEP instead of a literal
10279 (search_path::command_line_dir): Ditto.
10280 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
10281 to support non-Posix systems.
10283 * src/libs/libbib/search.cc: #include nonposix.h.
10284 (search_list::add_file): Open the file in binary mode.
10286 * src/libs/libbib/linear.cc: #include nonposix.h.
10287 (file_buffer::load): Remove \r characters preceding \n from the
10290 * src/libs/libbib/index.cc: #include nonposix.h.
10291 (make_index_search_item): Open index_filename in O_BINARY mode.
10292 (index_search_item_iterator::get_tag): Ditto. Remove \r
10293 characters before \n characters.
10294 (index_search_item::check_files): Open files in binary mode.
10295 (index_search_item::munge_filename): Support DOS-style file names
10296 with backslashes and drive letters, use IS_ABSOLUTE.
10298 * src/devices/grops/ps.cc: #include nonposix.h.
10299 (main) [SET_BINARY]: Switch stdout to binary mode.
10301 * src/devices/grolj4/lj4.cc: #include nonposix.h.
10302 (main) [SET_BINARY]: Switch stdout to binary mode.
10304 * src/devices/grolbp/lbp.cc: #include nonposix.h
10305 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
10307 * src/devices/grodvi/dvi.cc: #include nonposix.h.
10308 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
10310 (main) [SET_BINARY]: Switch stdout to binary mode.
10311 [_MSC_VER]: Remove an explicit call to _setmode.
10313 * src/include/nonposix.h: New file.
10315 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
10316 operation when building with DJGPP.
10317 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
10318 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
10321 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
10323 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
10324 etc. can include a semi-colon on DOS/Windows.
10325 (depend.temp): Use depend1.temp instead of depend.temp1, to
10326 prevent files from overerwiting each other on 8+3 filesystems.
10328 * gendef.sh (t): Change definition to work with DOS/Windows.
10330 doc/groff.texinfo: Apart of some typo corrections, I also changed
10331 some index entris, to make them more non-ambiguous, and also put
10332 @ignore around some parts that are not yet written, to allow the
10333 Info output be readable.
10335 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
10337 Replaced specific checks for function declarations with a generic
10338 routine taken from GNU bfd.
10340 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
10341 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
10342 * configure.in: Use it.
10343 * src/devices/grolbp/lbp.cc, src/include/lib.h,
10344 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
10345 src/roff/groff/groff.cc: Use it.
10346 * Makefile.in, configure: Updated.
10348 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
10350 * src/devides/grolbp/lbp.h: Removed unused variables.
10352 2000-05-31 Keith Thompson <kst@sdsc.edu>
10354 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
10357 2000-05-31 Werner LEMBERG <wl@gnu.org>
10359 * aclocal.m4 (GROFF_SRAND): New function to test the return value
10360 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
10361 * configure.in: Use it.
10362 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
10363 * configure, Makefile.in: Updated.
10365 * configure.in: Add test for strncasecmp().
10366 * src/include/lib.h: Use it.
10368 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
10370 * src/preproc/grn/Makefile.sub: Add MLIB.
10372 2000-05-29 Nix <nix@esperi.demon.co.uk>
10374 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
10376 2000-05-29 Werner LEMBERG <wl@gnu.org>
10378 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
10380 * PROBLEMS: Small update.
10382 * src/devices/grolbp/lbp.cc: Various small fixes.
10384 2000-05-28 Keith Thompson <kst@sdsc.edu>
10386 * src/roff/nroff/nroff.sh: Fix main loop syntax.
10388 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
10390 2000-05-25 Werner LEMBERG <wl@gnu.org>
10392 * man/roff.man: Removed unused macro.
10394 2000-05-24 Werner LEMBERG <wl@gnu.org>
10396 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
10397 This is needed e.g. if you do
10398 `make distclean; ./configure; make dist'.
10400 Version 1.16 released
10401 =====================
10403 2000-05-23 Werner LEMBERG <wl@gnu.org>
10405 Adding font CWI (constant width italic) to devdvi.
10407 * font/devdvi/CWI: New file.
10408 * font/devdvi/generate/Makefile: Add generating rule.
10409 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
10410 tmac/tmac.dvi: Use it.
10411 * NEWS: Announce it.
10413 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
10414 * font/devlj4/generate/Makefile: Cosmetic changes only.
10416 * man/groff.man: Removed most of the redundant description of
10417 special characters (which is in groff_char.man). Added font
10418 translation CB->CR for devdvi. Other minor fixes.
10420 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
10421 (registered) symbols.
10423 2000-05-22 Werner LEMBERG <wl@gnu.org>
10425 * doc/Makefile: Added rule for creating info files.
10427 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
10429 * font/devdvi/generate/Makefile: Fixed dependencies.
10431 * font/devps/*: Regenerated. Heavy changes for Bookman and
10432 NewCentury Schoolbook!
10433 * font/devps/generate/afmname: Will now run with GNU awk.
10434 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
10435 * font/devps/generate/Makefile: Cosmetic changes only.
10437 2000-05-21 Werner LEMBERG <wl@gnu.org>
10439 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
10440 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
10441 `.SS' now produces a heading with a smaller size than `.SH'.
10442 Completely formatted.
10443 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
10445 * man/groff.man: Improved table appearance. Use of `eo' request
10446 to reduce number of doubled backslashes in macro definitions.
10447 Replacing `\e' with `\(rs'. Other minor fixes.
10449 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
10450 to have correct line number.
10452 * INSTALL: Small improvement.
10454 2000-05-20 Bernd Warken <bwarken@mayn.de>
10456 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
10459 2000-05-19 Bernd Warken <bwarken@mayn.de>
10461 * man/groff.man: Complete update (with a lot of corrections by WL).
10463 2000-05-18 Werner LEMBERG <wl@gnu.org>
10465 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
10467 * font/*/*: Implement it.
10468 * man/groff_char.man, NEWS: Document it.
10470 * src/include/unix.h: Removed. It isn't used.
10472 * doc/groff.texinfo: Slight improvements.
10474 2000-05-17 Werner LEMBERG <wl@gnu.org>
10476 * README, win32-diffs: Small fixes and improvements.
10478 2000-05-16 Werner LEMBERG <wl@gnu.org>
10480 * FDL: New file (the Free Documentation License version 1.1).
10482 * doc/groff.texinfo: Added many start-up values for gtroff.
10483 Some structural improvements of the source code.
10485 2000-05-15 Werner LEMBERG <wl@gnu.org>
10487 * src/roff/troff/input.cc: Added small comment about troffrc-end.
10488 * src/roff/troff/troff.man: Added info about troffrc-end.
10490 2000-05-14 Werner LEMBERG <wl@gnu.org>
10492 * Makefile.in (EXTRADIRS): Fix typos.
10493 (dist): Handle deletion of old .tar.gz file correctly.
10494 (DISTDIRS): Include all tty output devices.
10496 * doc/groff.texinfo: Adding more cross references; countless other
10499 2000-05-13 Werner LEMBERG <wl@gnu.org>
10501 * MORE.STUFF: Added Robert Marks's utilities.
10503 2000-05-12 Werner LEMBERG <wl@gnu.org>
10505 Added win32 port contributed by Blake McBride
10506 <blake@florida-software.com>.
10508 * README.WIN32, win32-diffs: New files.
10511 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
10512 (tmove, tmove2): Added parentheses to avoid compiler warnings.
10513 (change): Removed unused variables.
10515 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
10516 (savebounds): Changed return value from `int' to `void'.
10517 * src/preproc/grn/hdb.cc: Ditto.
10519 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
10520 final backslash in comment to avoid compiler warning.
10522 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
10524 * doc/groff.texinfo: More fixes.
10526 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
10528 * tmac/tmac.doc: Documentation fix.
10530 2000-05-11 Werner LEMBERG <wl@gnu.org>
10532 * doc/groff.texinfo: Reading the source code shows up a lot of
10533 omissions and incorrect data... More conversion to @Deffn macros.
10535 2000-05-10 Werner LEMBERG <wl@gnu.org>
10537 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
10540 * src/roff/troff/request.h: Removing unused `no_break_flag'.
10542 2000-05-09 Werner LEMBERG <wl@gnu.org>
10544 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
10547 * doc/groff.texinfo: Extended history section. More conversion to
10548 @Deffn macros. More .tr documentation.
10550 2000-05-07 Werner LEMBERG <wl@gnu.org>
10552 * doc/groff.texinfo: Completed tab section. Added info about
10555 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
10557 * PROBLEMS: Describe configure script fix for OS/390 Unix.
10559 2000-05-05 Werner LEMBERG <wl@gnu.org>
10561 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
10563 * NEWS: Document it.
10565 * man/troff.man: Minor optical improvements.
10567 2000-05-03 Werner LEMBERG <wl@gnu.org>
10569 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
10571 * font/*/*: Implement it.
10572 * man/groff_char.man, NEWS: Document it.
10574 2000-05-02 Werner LEMBERG <wl@gnu.org>
10576 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
10578 * NEWS: Document the three new man pages.
10580 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
10581 * configure: Updated.
10583 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
10585 2000-05-01 Werner LEMBERG <wl@gnu.org>
10587 Added grap support to grog.
10589 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
10590 * src/roff/grog/grog.man: Document it.
10592 * doc/groff.texinfo, NEWS: Add info about grap support.
10594 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
10595 (with slight fixes by me).
10597 * tmac/groff_tmac.man: New file documenting tmac mechanism.
10598 * tmac/Makefile.sub: Add groff_tmac.man.
10599 * man/roff.man: New file giving overview of roff system.
10600 * man/troff.man: A short reference of troff.
10601 * man/Makefile.sub: Add roff.man and troff.man.
10603 2000-04-30 Werner LEMBERG <wl@gnu.org>
10605 Added grap support to groff.
10607 * src/roff/groff/groff.cc: Implement it.
10608 * src/roff/groff/groff.man: Document it.
10610 * src/devices/grotty/grotty.man: Add cp1047 device.
10611 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
10613 * src/roff/groff/groff.man: Ditto.
10614 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
10615 * doc/groff.texinfo: Ditto.
10617 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
10620 2000-04-29 Werner LEMBERG <wl@gnu.org>
10622 * man/groff_char.man: Add `pc' glyph.
10623 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
10624 * tmac/tmac.tty: Add `pc' glyph.
10625 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
10626 we use cp1047 output device.
10628 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
10629 there are still hardcoded latin1->unicode values in utf8's font
10631 * configure: Updated.
10632 * NEWS: Minor clarification. Updated.
10634 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
10637 2000-04-28 Werner LEMBERG <wl@gnu.org>
10639 Adding EBCDIC code page 1047.
10641 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
10642 font/devcp1047/DESC.proto: New files.
10644 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
10645 either ascii/latin1 or cp1047.
10646 * Makefile.in: Use it.
10647 * configure: Updated.
10649 Replacing and/or adding `md' (mathdot) glyph with `pc'
10650 (periodcentered) in all text fonts.
10652 * font/*/*: Change it.
10654 2000-04-27 Werner LEMBERG <wl@gnu.org>
10656 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
10658 * configure.in: Add check for strings.h.
10659 * src/include/driver.h: Use HAVE_STRINGS_H.
10660 * src/devices/grolbp/lpb.cc: Remove string.h.
10662 * src/include/groff-getopt.h: New file. It will be used instead of
10663 getopt.h (to be included in lib.h) to avoid endless problems with
10664 picky C++ compilers.
10665 * src/include/lib.h: Use groff-getopt.h.
10666 * src/include/Makefile.sub: Updated.
10668 * configure: Updated.
10669 * Makefile.in: Updated.
10671 * NEWS: Mention EBCDIC support.
10673 2000-04-26 Werner LEMBERG <wl@gnu.org>
10675 * TODO: Some additions.
10677 2000-04-25 Werner LEMBERG <wl@gnu.org>
10679 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
10682 2000-04-23 Werner LEMBERG <wl@gnu.org>
10684 * src/roff/troff/troff.man: Minor fixes.
10686 2000-04-22 Werner LEMBERG <wl@gnu.org>
10688 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
10689 `.T' string register and the incompatible definition of the `.T'
10690 number register (compared to Unix troff).
10692 * man/groff_char.man: Add some missing characters.
10693 * font/devutf8/NOTES: Update.
10695 2000-04-21 Werner LEMBERG <wl@gnu.org>
10697 * src/include/htmlindicate.h, src/include/lib.h,
10698 src/include/posix.h: Fix copyright.
10700 * src/include/Makefile.sub: Update.
10702 2000-04-20 Werner LEMBERG <wl@gnu.org>
10704 * src/roff/troff/input.cc (input_char_description): Removing
10705 superfluous space char.
10707 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
10709 * doc/groff.texinfo: Document EBCDIC.
10711 2000-04-19 Werner LEMBERG <wl@gnu.org>
10713 Introducing `shc' as the glyph name for the soft hyphen character.
10715 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
10716 font/devlatin1/R.proto: Use it.
10720 2000-04-18 Werner LEMBERG <wl@gnu.org>
10722 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
10723 dependency on ASCII order.
10725 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
10727 * src/libs/libgroff/illegal.c: Added EBCDIC table.
10728 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
10730 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
10731 to increase portability.
10733 2000-04-15 Werner LEMBERG <wl@gnu.org>
10735 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
10736 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
10737 the generic `\n' if under OS/390 Unix.
10739 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
10741 * configure: Regenerated.
10743 2000-04-14 Werner LEMBERG <wl@gnu.org>
10745 * doc/groff.texinfo: More conversions to @Deffn.
10747 2000-04-12 Werner LEMBERG <wl@gnu.org>
10749 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
10752 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
10754 2000-04-10 Werner LEMBERG <wl@gnu.org>
10756 * doc/groff.texinfo: More conversions to @Deffn.
10758 2000-04-08 Werner LEMBERG <wl@gnu.org>
10760 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
10761 Updated to latest version (glibc 2.1.3).
10763 2000-04-07 Werner LEMBERG <wl@gnu.org>
10765 * doc/Makefile (clean): Include more index files.
10766 Add rule texinfo->dvi.
10768 2000-04-05 Werner LEMBERG <wl@gnu.org>
10770 * doc/groff.texinfo: Added new index `op' for operators. More
10771 info on end of sentence characters. More use of @Deffn.
10773 2000-03-30 Werner LEMBERG <wl@gnu.org>
10775 * */*.man: Adding a note that a whitespace can be inserted between
10776 a command line option and its parameter -- we are using GNU getopt.
10778 * src/roff/groff/groff.man: Add example of `-m mandoc'.
10780 2000-03-28 Werner LEMBERG <wl@gnu.org>
10782 Correct anachronism of calling the man macro file with `-man'
10783 instead of `-m man' etc.
10785 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
10786 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
10787 load tmac.<package>.
10789 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
10793 * doc/groff.texinfo: Updated.
10795 * tmac/groff_man.man: Copyright added.
10797 2000-03-27 Werner LEMBERG <wl@gnu.org>
10799 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
10800 typeset the request resp. escape name with a tt font -- due to a
10801 bug in texinfo.tex it is necessary to use the `-e' switch with
10804 Improving info about usage of groff units.
10808 2000-03-20 Werner LEMBERG <wl@gnu.org>
10810 * doc/groff.texinfo: Added section about man macro package
10811 (I've basically taken groff_man.man). Introducing new indices `ma'
10812 for macros/strings and `gl' for glyph names. Other minor fixes.
10814 * tmac/groff_man.man: Fixed some typos.
10816 2000-03-19 Werner LEMBERG <wl@gnu.org>
10818 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
10821 * doc/texinfo.tex: New file.
10823 2000-03-18 Werner LEMBERG <wl@gnu.org>
10825 * doc/groff.texinfo: Improved section on number registers. Other
10828 2000-03-16 Werner LEMBERG <wl@gnu.org>
10830 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
10833 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
10834 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
10835 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
10836 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
10838 * src/preproc/grn/grn.man: Better synopsis; added copyright.
10840 * src/roff/grog/grog.man: Updated copyright date.
10842 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
10844 * configure.in: Added test for strdup.
10846 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
10849 Replaced dynamic allocation of arrays `[...]' with `new' operator.
10853 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
10855 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
10857 2000-03-11 Werner LEMBERG <wl@gnu.org>
10859 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
10861 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
10862 * src/include/lib.h: Remove some spaces.
10864 2000-03-10 Werner LEMBERG <wl@gnu.org>
10866 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
10867 initializers from arguments (some compilers don't like this).
10869 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
10871 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
10872 used by pic and eqn to tell grohtml where the graphic regions start
10874 * src/libs/libgroff/Makefile.sub: Use it.
10875 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
10876 graphic_start() and graphic_end() from htmlindicate.cc.
10878 2000-03-09 Werner LEMBERG <wl@gnu.org>
10880 * tmac/tmac.safer: Will now work correctly in compatibility mode.
10881 * tmac/groff_man.man: More fixes.
10883 2000-03-08 Werner LEMBERG <wl@gnu.org>
10885 * doc/Makefile: Added texput.log to the `clean' target.
10886 * doc/groff.texinfo: Added info about delimiters for escapes.
10888 2000-03-08 Bernd Warken <bwarken@mayn.de>
10890 * src/preproc/pic/pic.man: Add info on conversion of pic images to
10891 other graphic formats.
10893 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
10895 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
10896 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
10897 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
10900 2000-03-07 Werner LEMBERG <wl@gnu.org>
10902 * doc/groff.texinfo: Spelling fixes.
10904 2000-03-06 Werner LEMBERG <wl@gnu.org>
10906 * tmac/groff_man.man: Completely revised to cover everything in
10909 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
10910 Other minor fixings.
10911 * src/roff/troff/env.cc (environment_copy): Improve error message and
10913 * src/roff/troff/TODO: Updated.
10915 * doc/Makefile: Bug fixes -- this is still provisional, though...
10917 * tmac/eqnrc: Small fixes.
10919 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
10921 Adding a request `evc' to copy environments.
10923 * src/roff/troff/env.cc (environment::copy, environment_copy):
10925 * src/roff/troff/env.h: Add prototype.
10927 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
10929 Adding strsep() -- Solaris 8 doesn't have it.
10931 * configure.in: Test it.
10932 * src/devices/grolbp/lbp.cc: Add code.
10934 2000-03-05 Werner LEMBERG <wl@gnu.org>
10936 * src/roff/troff/div.cc (macro_diversion::output,
10937 top_level_diversion::output): Fixing an incompatibility with
10938 original troff: \x'0' updates the .a register also. Thanks to
10939 <Andries.Brouwer@cwi.nl> for pointing this out.
10940 * doc/groff.texinfo: Document it.
10942 * Makefile.in: Create Makefile.dep if necessary before calling the
10943 submake process to avoid warning about nonexistent file.
10945 * NEWS, PROJECTS: Updated.
10947 2000-03-04 Werner LEMBERG <wl@gnu.org>
10949 * tmac/troffrc: Add tmac.lbp.
10951 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
10953 * tmac/tmac.lbp: New file.
10954 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
10957 2000-03-03 Werner LEMBERG <wl@gnu.org>
10959 * Makefile.in: Fixing $(subdir).
10961 * README, NEWS: Small fixes.
10963 * test-groff: Adding path to grolbp.
10965 * configure.in: The (new) file src/xditview/Imakefile.in will be
10966 also configured -- it is now possible to build gxditview in a
10967 directory different from $srcdir.
10969 2000-03-02 Blake McBride <blake@florida-software.com>
10971 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
10973 * MORE.STUFF: Added website of bell labs and info about plot2dev.
10975 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
10977 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
10980 2000-02-29 Werner LEMBERG <wl@gnu.org>
10982 Adding GNU getopt to the groff distribution.
10984 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
10986 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
10987 * aclocal.a4: Remove GROFF_GETOPT function.
10988 * configure.in, Makefile.in, PROBLEMS: Update.
10989 * src/include/lib.h: Replace getopt tests with getopt.h.
10990 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
10992 * doc/groff.texinfo: Further checking/updating. Adding more index
10995 * man/groff_out.man: Fix nroff mode activation (for emacs).
10996 * man/groff_font.man: Add missing ligature.
10998 2000-02-28 Werner LEMBERG <wl@gnu.org>
11000 * doc/groff.texinfo: Further checking/updating. Adding more index
11003 * src/devices/grolbp/grolbp.man: Added a comment line at the
11004 beginning of the file (similar to shell scripts) which indicates
11005 that `tbl' should be used as a preprocessor.
11007 2000-02-27 Blake McBride <blake@florida-software.com>
11009 Adapting groff to MS Visual C++ 6.0 compiler (tested with
11010 Windows NT 4.0). Uses _MSC_VER define where necessary.
11012 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
11013 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
11014 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
11015 src/include/lib.h, src/libs/libgroff/errarg.cc,
11016 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
11017 src/preproc/refer/label.y, src/preproc/refer/label.cc,
11018 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
11019 src/roff/troff/div.cc, src/roff/troff/env.cc,
11020 src/roff/troff/input.cc, src/roff/troff/node.cc,
11021 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
11022 if_to_a() to avoid name clashes.
11023 * src/include/posix.h: Don't use unistd.h.
11024 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
11025 clause for integrating non-Unix xtmpfile() code.
11026 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
11027 structure; use "rt" for popen() in pipe_source(); add getpid()
11029 * src/roff/troff/node.cc: Use special versions of popen() in
11030 real_output_file() and pclose() in ~real_output_file().
11032 2000-02-27 Werner LEMBERG <wl@gnu.org>
11034 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
11035 LBP-8 series laser printers). This code has been contributed by
11036 Francisco Andrés Verdú <pandres@dragonet.es>.
11038 * src/devices/grolbp/*: The grolbp output device.
11039 * font/devlpb/*: The font description files.
11040 * Makefile.in: Add grolpb and devlbp subdirectories.
11042 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
11043 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
11046 * doc/groff.texinfo: Further checking/updating. Adding more index
11051 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
11053 * man/groff_font.man: Adding info about obsolete DESC keywords.
11054 * src/devices/grolj4/grolj4.man: Documenting additional DESC
11057 2000-02-26 Werner LEMBERG <wl@gnu.org>
11059 * src/preproc/grn/grn.man: Added info about the gremlin file format
11060 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
11062 2000-02-25 Werner LEMBERG <wl@gnu.org>
11064 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
11065 friends to be non-integer.
11067 * src/preproc/grn/grn.man: Document it.
11069 * doc/groff.texinfo: Further checking/updating. Adding more index
11072 2000-02-24 Werner LEMBERG <wl@gnu.org>
11074 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
11075 line thicknesses to be integer multiples of this value.
11077 * src/preproc/grn/grn.man: Commenting out the -s option -- the
11078 corresponding code doesn't work (yet).
11080 * doc/groff.texinfo: Further checking/updating. Adding more index
11083 2000-02-23 Werner LEMBERG <wl@gnu.org>
11085 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
11086 specify line thickness instead of base units. The new default
11087 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
11088 thick lines respectively.
11090 Removed unused variable `prevval'.
11092 * src/preproc/grn/grn.man: Updated.
11094 2000-02-22 Werner LEMBERG <wl@gnu.org>
11096 * src/preproc/grn/main.cc: Slight formatting.
11098 * src/roff/groff/groff.man: Formatting fix.
11099 * src/preproc/grn/grn.man: Ditto.
11101 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
11103 * doc/groff.texinfo: Further checking/updating.
11105 2000-02-21 Werner LEMBERG <wl@gnu.org>
11107 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
11109 * test-groff: Added grn subdir to path.
11111 * doc/groff.texinfo: Some restructing and other small improvements.
11113 * src/roff/groff/groff.cc (help): Fixed info string.
11115 2000-02-20 Werner LEMBERG <wl@gnu.org>
11117 * doc/meref.me: Fix description of .GS request.
11119 * src/roff/troff/troff.man: Fixing typo.
11121 Adding the `grn' preprocessor for gremlin graphic files.
11123 * src/preproc/grn/*: This is the Berkeley distribution written by
11124 David Slattengren and Barry Roitblat, adapted to groff by Daniel
11125 Senderowicz and Werner Lemberg.
11127 * doc/grnexampl.{me,g}: A sample for grn.
11129 * Makefile.in: Added subdirectory entry for grn.
11131 * src/roff/groff/groff.cc: Added support for grn. It can be now
11132 called with the switch `-g'.
11134 * src/roff/groff/groff.man: Updated.
11136 * src/roff/grog/grog.{man,pl,sh}: Updated.
11140 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
11142 * src/include/lib.h: Added xtmptemplate and made xtmpfile
11143 parametrically polymorphic.
11145 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
11146 and the alterations to xtmpfile.
11147 xtmpfile can be requested to return the filename created
11148 and asked not to unlink the temp file. The default behaviour
11149 if parameters are absent is exactly the same as before.
11151 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
11153 A new request `length' is available which returns the length of a
11154 string in a number register:
11156 * src/roff/troff/input.cc (length_macro): Implement it.
11157 * src/roff/troff/input.cc (init_input_requests): Register it.
11159 2000-02-11 Werner LEMBERG <wl@gnu.org>
11161 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
11162 of the `substring' request.
11164 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
11167 * src/roff/troff/TODO, NEWS: Updated.
11169 2000-02-09 Werner LEMBERG <wl@gnu.org>
11171 * src/roff/groff/groff.man: Added an example.
11173 2000-02-06 Werner LEMBERG <wl@gnu.org>
11175 I've considerably modified the directory structure of the
11176 distribution to get a more vertical layout. For example, the number
11177 of top level directories has been reduced from 42 to 6.
11179 As a consequence, many changes, especially to the makefiles, were
11182 * The makefile variables `top_builddir' and `top_srcdir' have been
11183 introduced. Virtually all relative paths have been replaced with
11184 absolute ones using these two variables.
11186 * Dependencies (in the files `Makefile.dep') are no longer part of
11187 the distribution. Instead, they are created during a `make install'
11188 in the build directory.
11190 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
11191 make `top_srcdir' and `top_builddir' absolute.
11193 Some other changes:
11195 * Man pages now depend on the files `VERSION' and `REVISION'.
11197 * The added shell script `mkinstalldirs' will replace `mkdir' in
11200 * VERSION: Version number increased to 1.16.
11202 2000-02-04 Werner LEMBERG <wl@gnu.org>
11204 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
11206 * Makefile.in: Removed $(tmac_m) since it is no longer needed
11207 (after an update of the mm stuff).
11209 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
11211 2000-02-03 Werner LEMBERG <wl@gnu.org>
11213 The .psbb request will now also accept Mac PS images (i.e. using LF
11214 as the EOL character).
11216 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
11217 (with slight modifications).
11218 * troff/input.cc (do_ps_file): Use it.
11220 * test-groff: Add grohtml and grolj4 output devices to PATH.
11222 2000-01-30 Werner LEMBERG <wl@gnu.org>
11224 * NEWS, MORE.STUFF: Updated.
11226 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
11228 Add the `srand' command to pic.
11230 * pic/lex.cc, pic/pic.y: Implement it.
11231 * pic/pic.man: Document it.
11232 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
11234 2000-01-30 Werner LEMBERG <wl@gnu.org>
11236 Add a new request `.psbb'. This does exactly what the external
11237 program psbb did. It scans a PostScript image file for a
11238 %%BoundingBox comment and extracts the bounding box values (in
11239 PostScript units) which are then stored in the four new (read-only)
11240 number registers `llx', `lly', `urx', and `ury'.
11242 This will allow the usage of the .PSPIC macro without worrying
11243 about unsafe behaviour of groff, i.e., it will work without the
11244 `-U' switch of groff.
11246 * troff/input.cc: Implement it.
11247 * tmac/tmac.pspic: Use it.
11248 * troff/troff.man, grops/grops.man, NEWS: Document it.
11249 * psbb/*, Makefile.in: Remove it since it is no longer needed.
11251 This is bloody C code simply adapted from psbb.c! Any improvements
11254 2000-01-29 Werner LEMBERG <wl@gnu.org>
11256 * man/groff_font.man: Minor clarifications.
11260 2000-01-28 Werner LEMBERG <wl@gnu.org>
11262 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
11264 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
11266 * man/groff_font.man: Brought up to date regarding tcommand
11268 * libgroff/font.cc: Handle everything after `--' as a comment
11270 * devps/*: Added comment delimiter inside devps font files.
11272 2000-01-28 Werner LEMBERG <wl@gnu.org>
11274 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
11275 \fC...\fP (which now works as expected).
11277 * troff/troff.man: Fix typo.
11279 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
11281 Completed the pass_filenames implementation in troff.
11283 * libdriver/input.cc: Will read the new `F' tcommand.
11284 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
11285 * troff/input.cc: Use it.
11287 2000-01-26 Werner LEMBERG <wl@gnu.org>
11289 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
11290 font will now be updated even if an invalid font is selected.
11292 2000-01-24 Werner LEMBERG <wl@gnu.org>
11294 * doc/homepage.ms: Updated for new tmac.arkup.
11296 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
11298 * tmac/tmac.arkup: Cleanup.
11300 Added `\&' to .HTML macro to `leave vertical mode', so to say.
11302 Removed obsolete .LINK macro completely.
11304 The macros .URL, .FTP, and .MAILTO now accept a third argument which
11305 will be immediately appended to the second argument (to be used with
11306 punctuation, for example).
11308 Disabled .CDFTP macro temporarily for security reasons.
11310 * tmac/groff_markup.man: Complete revision for latest changes in
11311 tmac.arkup -- note that it does not yet format correctly with
11314 2000-01-23 Bruno Haible <haible@clisp.cons.org>
11316 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
11317 * devutf8/R.proto: Add mappings for wp, lh, rh.
11318 * devutf8/NOTES: Updated.
11320 2000-01-23 Werner LEMBERG <wl@gnu.org>
11322 * doc/groff.texinfo: Updated version/copyright info.
11324 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
11326 Added support for two new directives in device descriptions:
11327 `pass_filenames' (to pass the input file name to the output device)
11328 and `use_charnames_in_special' (to support e.g. accented characters
11329 in the `X' request).
11331 * include/font.h, troff/charinfo.h: Declare it.
11333 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
11335 * devhtml/DESC: Use it.
11337 * troff/input.cc: New function encoded_char.
11339 * troff/token.h: Add test for `specialness'.
11341 2000-01-21 Werner LEMBERG <wl@gnu.org>
11343 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
11344 mistake from the list of files to be installed.
11346 2000-01-18 Werner LEMBERG <wl@gnu.org>
11348 * README: Added info how to apply patches.
11350 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
11352 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
11354 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
11356 * troff/input.cc: Add support for troffrc-end.
11358 * tbl/main.cc: Altered to issue table-start and table-end special
11359 characters if using the html device.
11361 * devhtml/*: Modified font files to incorporate html encoding of
11364 * tmac/groff_markup.man: New file documenting tmac.arkup.
11366 * tmac/troffrc-end: New file. This is invoked after all user
11367 specified macros. Currently used by the html device to include
11368 tmac.html. Thus no need for users to specify -mhtml anymore.
11370 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
11371 (MAN7): Add groff_markup.man.
11373 * tmac/tmac.an, tmac/tmac.html: Small html updates.
11375 * tmac/troffrc: tmac.arkup will now be called for the html device.
11377 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
11378 extra device specific information about fonts.
11380 * doc/homepage.ms: New file. It is an example how an HTML home page
11381 could look like with grohtml.
11383 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
11385 2000-01-12 Bruno Haible <haible@clisp.cons.org>
11387 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
11390 * devutf8/NOTES: Updated.
11392 2000-01-08 Bruno Haible <haible@clisp.cons.org>
11394 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
11395 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
11396 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11397 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
11398 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
11399 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
11400 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
11401 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
11404 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
11406 2000-01-12 Fabrizio Polacco <fab@prosa.it>
11408 grolj4: Paper size will be searched case-insensitively.
11410 * include/lib.h: Add check for strcasecmp().
11411 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
11412 * configure.in: Check for strcasecmp().
11414 2000-01-11 Werner LEMBERG <wl@gnu.org>
11416 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
11419 2000-01-10 Werner LEMBERG <wl@gnu.org>
11421 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
11424 Add a new read-only register, `.Y', which contains the groff
11427 * troff/input.cc (init_input_requests): Define it.
11428 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
11429 * doc/groff.texinfo, troff/troff.man: Document it.
11431 * libgroff/Makefile.sub (version.cc): Add definition of
11432 `Version_string[]', consisting of `<major>.<minor>.<revision>'
11433 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
11434 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
11435 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
11436 troff/input.cc, pfbtops/pfbtops.c: Use it.
11438 2000-01-10 Fabrizio Polacco <fab@prosa.it>
11440 Add a revision scheme to the groff package.
11442 * REVISION: New file.
11443 * libgroff/Makefile.sub (version.cc): Use it to define
11444 `revision_string[]'.
11445 * grops/psrm.cc: Use revision_string (converted to an unsigned
11446 integer) in constructor of resource_manager.
11448 2000-01-10 Bruno Haible <haible@clisp.cons.org>
11450 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
11452 * Makefile.in (DEVDIRS): Add devutf8.
11453 * grotty/tty.cc: Include device.h.
11454 (glyph): Change type of `code' to `unsigned int'.
11455 (tty_printer): New field is_utf8. Constructor takes device argument.
11456 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
11457 (tty_printer::add_char): Change type of first arg to `unsigned int'.
11458 (tty_printer::put_char): New function.
11459 (tty_printer::end_page): Use put_char() instead of ::putchar().
11460 (make_printer): Pass device to tty_printer constructor.
11461 * nroff.sh: Determine default device by calling 'locale'. As a
11462 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
11463 Recognize UTF-8 locales.
11464 * tmac/eqnrc: Recognize utf8 like latin1.
11465 * tmac/troffrc: Device utf8 needs tmac.tty.
11467 2000-01-07 Werner LEMBERG <wl@gnu.org>
11469 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
11471 2000-01-07 Paul Eggert <eggert@twinsun.com>
11473 Add a new predefined writeable number register, `year',
11474 which contains the current year.
11476 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
11477 * tmac/tmac.s: Use it.
11478 * troff/input.cc (init_registers): Initialize it.
11480 2000-01-06 Werner LEMBERG <wl@gnu.org>
11482 * PROBLEMS: Fixed typo.
11484 2000-01-04 Paul Eggert <eggert@twinsun.com>
11486 * PROBLEMS: Add Y2k advice for the yr number register.
11488 2000-01-03 Paul Eggert <eggert@twinsun.com>
11490 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
11492 2000-01-02 Werner LEMBERG <wl@gnu.org>
11494 * tmac/tmac.arkup: Slight modification of macros to provide better
11495 appearance for non-HTML formats.
11497 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
11499 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
11500 does not automatically translate to malloc(n) on all OSes
11501 (e.g., SunOS) so do it explicitly. Also, check the returned
11504 2000-01-01 Werner LEMBERG <wl@gnu.org>
11506 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
11508 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
11509 expects this variable
11511 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
11513 * doc/Makefile: Added instructions to create HTML and text
11514 versions of some files.
11516 1999-12-31 Werner LEMBERG <wl@gnu.org>
11518 * Updated INSTALL.gen.
11520 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
11521 better resp. correctly with non-HTML devices.
11523 Version 1.15 released
11524 =====================
11526 1999-12-28 Werner LEMBERG <wl@gnu.org>
11528 * NEWS, VERSION: Changed to 1.15
11530 1999-12-27 Paul Eggert <eggert@twinsun.com>
11532 * nroff/nroff.man: -S is safer, not safe.
11534 * groff/groff.cc (main): Use `safer', not `safe', in variable
11535 names. This does not change the behavior.
11537 * troff/input.cc (main): Likewise.
11539 * nroff/nroff.sh: Likewise.
11541 * troff/input.cc (prepend_string): New function.
11542 (main): Prepend -msafer, so that we check macro libraries for
11545 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
11547 Version 1.14 released
11548 =====================
11550 1999-12-26 Werner LEMBERG <wl@gnu.org>
11552 * NEWS, VERSION: Changed to 1.14.
11554 1999-12-24 Werner LEMBERG <wl@gnu.org>
11556 * refer/refer.cc: Fixing the last fix.
11558 Version 1.13 released
11559 =====================
11561 1999-12-23 Werner LEMBERG <wl@gnu.org>
11563 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
11568 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
11570 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
11571 document conventions, the version number must be a real.
11573 Version 1.12.1 released
11574 =======================
11576 1999-12-22 Werner LEMBERG <wl@gnu.org>
11578 * VERSION: Changed to 1.12.1.
11580 1999-12-22 Alan Rooks <arooks@istar.ca>
11582 * refer/refer.cc (do_file): Slight modification to satisfy the
11583 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
11586 1999-12-20 Werner LEMBERG <wl@gnu.org>
11588 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
11591 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
11592 list of unsafe requests.
11594 * pic/pic.man: Fixed a typo.
11596 * man/groff_out.man: Fixed a typo.
11598 1999-12-18 Werner LEMBERG <wl@gnu.org>
11600 * Makefile.in: Doc fixes.
11602 1999-12-17 Fabrizio Polacco <fab@prosa.it>
11604 * groff/groff.cc: Missing `U' option added to getopt().
11606 * troff/troff.man: Missing `U' option added to synopsis.
11608 Version 1.12 released
11609 =====================
11611 1999-12-14 Werner LEMBERG <wl@gnu.org>
11613 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
11616 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
11617 with the more appropriate terms `safer' and `unsafe'.
11619 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
11620 sys_nerr and sys_errlist[].
11622 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
11624 * pic/pic.y, pic/pic.cc: Added check for fmod().
11626 1999-12-13 Werner LEMBERG <wl@gnu.org>
11628 * VERSION: Changed to 1.12.
11630 Here some patches from various sources; most of them taken from
11631 the Debian distribution.
11633 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
11634 tmac/Makefile.sub: New files copied directly from the NetBSD
11635 distribution. Probably, some additional adaptation later on is
11638 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
11639 of unsafe requests.
11641 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
11642 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
11643 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
11644 (`-S') is now the default.
11646 * README, NEWS: Updated.
11648 1999-12-09 Werner LEMBERG <wl@gnu.org>
11650 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
11652 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
11654 1999-12-06 Werner LEMBERG <wl@gnu.org>
11656 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
11657 grief than relief today. Additionally, it is against the GNU
11660 * configure: Recreated.
11662 1999-12-05 Werner LEMBERG <wl@gnu.org>
11664 * configure.in: Added GROFF_LIBM.
11666 * configure: Recreated.
11668 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
11671 * Makefile.in: Added definition of $(LIBM).
11673 * Makefile.comm (LIBM): Removed.
11675 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
11677 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
11679 * doc/Makefile: Added rule for generation pic.html.
11681 (clean): Files produced by grohtml will be removed also.
11683 * doc/pic.ms: Small fix.
11685 * tmac/tmac.html: Fixed suppression of headers.
11687 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
11689 * tmac/tmac.html: Fixing horizontal arrows.
11691 Turning off hyphenation.
11693 * tmac/tmac.an: Improved support for grohtml; better indentation,
11694 no footers/headers.
11696 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
11698 * tmac/tmac.arkup: Added CDFTP macro
11700 * tmac/tmac.html: All headers are turned off for ms, me, and mm
11703 * tmac/troffrc: Some additions for HTML stuff.
11705 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
11707 * tmac/tmac.html: Small changes.
11709 1999-09-26 Werner LEMBERG <wl@gnu.org>
11711 * doc/groff.texinfo: Minor fixes.
11713 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
11715 * devhtml/TR: Changed spacewidth to 3.
11717 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
11719 * tmac/tmac.html: Moved markup macros to tmap.arkup.
11721 * tmac/tmac.arkup: New file.
11723 * grohtml/ChangeLog: New file.
11725 1999-09-16 Werner LEMBERG <wl@gnu.org>
11727 * doc/groff.texinfo (Common Features): Added Copying chapter.
11728 Changed format to @smallbook.
11730 1999-09-15 Werner LEMBERG <wl@gnu.org>
11732 * NEWS: Added info about groff.texinfo.
11734 * doc/groff.texinfo: Will now compile (using texi2dvi) without
11737 1999-09-14 Werner LEMBERG <wl@gnu.org>
11739 * groff/groff.man: More updates.
11741 1999-09-13 Werner LEMBERG <wl@gnu.org>
11743 * doc/groff.texinfo: New file. This manual is still very
11744 rudimentary. It has been originally contributed by Trent
11745 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
11748 * INSTALL: Added information about the `doc' subdir
11750 * troff/troff.man: Minor fixes.
11752 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
11755 * troff/input.cc (usage): Added missing `-ffam' to usage message.
11757 * Makefile.in (dist): groff-$(version).tar.gz must be removed
11758 also, otherwise it is included itself in another call of `make
11761 * groff/groff.cc (synopsis): Removed superfluous space.
11763 * PROJECTS, PROBLEMS, NEWS: Updated.
11765 * VERSION: Updated to 1.12beta.
11767 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
11769 * README: Updated: Included documentation about CVS repository,
11770 mailing lists, and daily snapshots.
11772 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
11774 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
11776 * tmac/tmac.an: If the tag didn't fit into the space that the
11777 macro `TP' specifies, the rest of the tag went into the space for
11780 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
11782 * grolj4/lj4.cc: Added duplex printing (option `-d').
11784 * grolj4/grolj4.man: Document duplex printing.
11786 1999-09-12 Werner LEMBERG <wl@gnu.org>
11788 * doc/Makefile (pic.ps): Fixed rule which caused problems with
11789 non-GNUish sed programs.
11791 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
11794 * configure.in (LIBS): Added `-lc'
11796 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
11798 * pic/tex.cc (solid_arc): Casting M_PI to double.
11800 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
11802 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
11803 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
11804 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
11806 * groff/groff_man.man: New file. This manual page was originally
11807 written for the Debian GNU/Linux system by Susan G. Kleinmann
11810 * eqn/list.cc (list_box::compute_metrics,
11811 list_box::compute_sublist_width): Removed variable declaration to
11812 avoid shadowing warnings.
11814 * grops/psrm.cc (resource_manager::process_file): Ditto.
11816 * tfmtodit/tfmtodit.cc (main): Ditto.
11818 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
11819 to avoid shadowing warnings.
11821 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
11822 shadowing loop variable.
11824 * groff/groff.man, troff/troff.man: Added doc about grohtml.
11826 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
11828 New grohtml frontend to convert groff input to html.
11830 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
11832 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
11834 * tmac/eqnrc: Added html device.
11836 * tmac/tmac.html: New file.
11838 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
11839 (troff_output::start_picture, troff_output::finish_picture),
11840 tbl/main.cc (process_input_file):
11841 Surrounded output with `graphics_start' and `graphics_end' so that
11842 the html driver can identify non-text portions.
11844 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
11845 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
11846 grotty/tty.ps (tty_printer::set_char): Additional parameter
11849 * include/printer.h: Class printer: New function
11850 set_char_and_width; new variables (is_char_named, is_named_set,
11851 named_command, named_char_s, named_char_n) to hold information
11852 about named characters -- needed by the html driver.
11854 * libdriver/printer.cc (printer::set_ascii_char,
11855 printer::set_special_char): Use set_char_and_width.
11857 * devhtml/*: New device files for html driver.
11859 * grohtml/*: New driver grohtml.
11861 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
11863 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
11866 1999-09-11 Luke Mewburn <lukem@netbsd.org>
11868 * libgroff/string.cc (search): Small fix to test against NULL
11871 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
11873 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
11874 \b'abc') were stacked in reverse order when processed in a
11877 * troff/node.h: Added `*last' to struct `node' to make the above
11880 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
11881 The default scale for the 'f' and 't' graphics functions were 'm'
11882 rather than 'u' (i.e., no scaling).
11884 1999-09-11 Peter Miller <peterm@jna.com.au>
11886 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
11887 do_file), soelim/soelim.man: Added `-I file' option to soelim,
11888 defining include paths.
11890 * soelim/soelim.cc (include_path_append): New function.
11892 1999-09-11 Larry Jones <larry.jones@sdrc.com>
11894 * tbl/main.cc (process_options): Unix (at least Documenter's
11895 Workbench) tbl allows arbitrary non-alpha characters between
11898 1999-09-11 Paul Eggert <eggert@twinsun.com>
11900 Y2k fixes. Don't assume that the current year precedes 2000.
11902 * doc/meref.me: Add \n(y2, \n(y4.
11904 * tmac/doc-common (Yr): New number register.
11905 (Dd): Don't assume current year precedes 2000.
11907 * tmac/tmac.e (td): Likewise.
11908 (y2, y4): New number registers.
11910 * pic/pic.man: Update reference for pic paper to May, 1991
11913 1999-09-11 Werner LEMBERG <wl@gnu.org>
11915 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
11916 Removed quotation marks which prevented correct expansion of
11919 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
11921 1999-09-10 Werner LEMBERG <wl@gnu.org>
11923 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
11926 * Removed configure.old.
11928 1999-08-31 Werner LEMBERG <wl@gnu.org>
11930 * VERSION: Updated to 1.11.1
11932 1999-05-27 Werner LEMBERG <wl@gnu.org>
11934 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
11936 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
11937 added quotations around $(tmac_wrap) to avoid syntax error if
11940 * configure: Newly generated using autoconf 2.13.
11942 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
11944 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
11946 * README, PROJECTS, NEWS, INSTALL, VERSION,
11947 doc/Makefile. doc/pic.ms, groff/groff.man:
11948 Prepare for 1.11 release. No code changes.
11949 Documentation for pic added (doc/pic.ms).
11951 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
11953 * Version 1.10 released.
11955 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
11957 * afmtodit/afmtodit.pl: Avoid comment on first line.
11959 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
11961 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
11962 * configure.in: Call it.
11964 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
11965 (distfiles): Doesn't depend on config.log or config.cache.
11967 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
11969 * grog/grog.sh: Use print "" rather than print in END rule.
11971 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
11973 * tbl/main.cc (process_data): Don't give error for excess data
11974 entries that are comments.
11976 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
11978 * tbl/main.cc (process_data): Fix case where new for-scope rules
11979 silently change meaning of code.
11981 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
11983 * troff/env.cc (hyphenate): Loop over all consecutive sequences
11984 of non-zero hyphenation codes.
11986 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
11988 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
11990 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
11992 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
11994 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
11996 * tmac/tmac.andoc: Make it work in compatibility mode.
11998 * refer/token.h (token_info::is_range_sep): New function.
11999 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
12000 * refer/ref.cc (reference::output): More sophisticated check for
12003 * devps/prologue.ps (MANUAL): New procedure.
12004 * grops/ps.cc (main): New -m option.
12005 (usage): Include -m.
12006 (ps_printer::~ps_printer): Implement -m.
12008 * aclocal.m4 (GROFF_G): New macro.
12009 * configure.in: Call it.
12010 * Makefile.in (g): Provided by configure.
12012 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
12014 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
12017 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
12018 (tmac_m, tmac_s): Deleted.
12019 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
12020 tmac_s_prefix): New variables.
12021 (MDEFINES): Change accordingly.
12022 * Makefile.comm (.man.n): Use new TMAC_* variables.
12023 * configure.in (GROFF_TMAC): Call.
12024 * aclocal.m4 (GROFF_TMAC): Define.
12025 * tmac/Makefile.sub (stamp_wrap): New target.
12026 (install_data, uninstall_sub): Handle macro wrapping.
12028 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
12030 * tbl/main.cc (main): Ignore -T option.
12032 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
12034 * devlj4/generate/special.map: Add definition of \(nb.
12036 * tmac/tmac.dvi: Add definition of \(nb.
12038 * troff/dictionary.c (dictionary::dictionary): association::v gets
12039 initialized by association::association.
12041 * tmac/Makefile.sub: Avoid using temporary files when installing.
12043 * troff/env.cc (environment::set_font): Make bad font number a
12046 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
12048 * Makefile.in (datadir): Use share rather than lib.
12050 * groff/groff.cc (basename): Rename to xbasename.
12052 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
12054 * Makefile (CCLIBS): Don't use.
12055 * Makefile.ccpg: Likewise.
12057 * acgroff.m4: Rename to...
12058 * aclocal.m4: Modify extensively for autoconf 2.
12059 * configure.in: Likewise.
12060 * Makefile.in: Likewise.
12062 * groff/pipeline.c (const): Declare as empty if __STDC__ not
12064 (xstrsignal): Check for definition of NSIG. Conditionalize
12065 on SYS_SIGLIST_DECLARED. Make return type const.
12067 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
12069 * troff/input.cc (interpolate_macro): Rephrase missing space
12072 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
12074 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
12075 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
12076 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
12077 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12078 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
12079 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
12080 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
12081 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
12082 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
12083 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
12084 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
12087 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
12089 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
12091 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
12093 (macro_iterator::macro_iterator): Add additional argument.
12095 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
12097 * troff/div.cc (vertical_size::vertical_size): In place of integer
12098 specifying line spacing use cunits specifying post vertical
12100 (macro_diversion::output, top_level_diversion::output): Likewise.
12101 * troff/div.h: Change declarations accordingly.
12102 * troff/env.cc (pending_output_line): Replace ls field by post_vs
12104 (pending_output_line::pending_output_line,
12105 pending_output_line::output, environment::output,
12106 environment::output_line, environment::output_title,
12107 environment::hyphenate_line): In place of
12108 integer specifying line spacing use cunits specifying post vertical
12110 (environment::environment): Add post_vertical_spacing and
12111 prev_post_vertical_spacing arguments.
12112 (environment::get_post_vertical_spacing): New function.
12113 (environment::total_post_vertical_spacing): New function.
12114 (environment::post_vertical_spacing): New function.
12115 (init_env_requests): Initialize pvs request and .pvs register.
12116 * troff/env.h: Change declarations.
12118 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
12120 * tmac/tmac.pspic: Immediately remove the temporary file.
12122 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
12124 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
12125 height is specified.
12127 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
12129 * tbl/table.c (struct vertical rule, class table_entry): Use int
12130 not short for start_row and end_row.
12132 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
12134 * troff/input.cc (trapping_blank_line, blank_line_macro): New
12136 (diverted_space_node::reread, process_input_stack): Call
12137 trapping_blank_line() rather than blank_line().
12138 (init_input_requests): Bind "blm" to blank_line_macro().
12140 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
12142 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
12144 * troff/env.cc (environment::possibly_break_line): Require that
12145 width total excluding width of final space node be greater than
12146 the target text length.
12148 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
12150 * troff/node.cc (kern_pair_node::vertical_extent): New function.
12152 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
12154 * troff/node.cc (charinfo_node): New class.
12155 (glyph_node, composite_node): Derive from charinfo_node. Change
12156 member functions accordingly.
12158 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
12160 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
12162 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
12164 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
12166 * devps/generate/textmap (notsubset): Add.
12168 * tmac/tmac.a4: New file.
12170 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
12172 * pic/main.cc (had_parse_error): New variable.
12173 (do_picture, do_whole_file): Set had_parse_error if yyparse()
12175 (main): Return 1 if had_parse_error is true.
12177 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
12179 * grolj4/lj4.cc (main): Avoid use of strtoul.
12181 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
12183 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
12184 iso_8859_1 or $LESSCHARSET is latin1.
12186 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
12188 * hpftodit: New directory.
12189 * Makefile.in (CCPROGDIRS): Add hpftodit.
12190 * devlj4/generate: New directory.
12192 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
12194 * configure.in: Don't use AC_VFORK.
12195 * groff/pipeline.c (run_pipeline): Use fork() always.
12197 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
12199 * grops/ps.cc (main): Use %1 not %s in error message for -w.
12201 * Makefile.in (CCPROGDIRS): Add grolj4.
12202 (DEVDIRS): Add devlj4.
12203 * grolj4, devlj4: New directories.
12204 * tmac/troffrc: Handle lj4.
12205 * tmac/tmac.lj4: New file.
12207 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
12209 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
12211 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
12213 * troff/input.cc (do_if_request): At end of second string, switch
12214 environments before getting next token.
12216 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
12218 * devps/psstrip.sed: Split rule that strips whitespace on either
12219 side of delimiters.
12221 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
12223 * troff/node.h (font_family::make_definition): Add return value to
12224 declaration. * troff/symbol.h (symbol::operator==,
12225 symbol::operator!=): Likewise.
12227 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
12229 * groff/groff.cc (main, help, synopsis): Handle -S.
12230 (possible_command::insert_arg): New function.
12232 * tmac/tmac.safer: New file.
12233 * tmac/msafer.man: New file.
12234 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
12236 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
12238 * pic/pic.h, pic/main.cc (safer_flag): New variable.
12239 * pic/pic.y (placeless_element): Avoid unsafe operations if
12240 `safer_flag' is set.
12241 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
12243 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
12245 * eqn/lex.cc (get_token): Put call to add_context() in block to
12246 work around Sun C++ 4.0 bug.
12248 * include/stringclass.h (operator +): Use ?: instead of `if' to
12249 work around Sun C++ 4.0 bug.
12251 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
12253 * tbl/main.cc (process_format): Accept - as a synonym for the _
12256 * libbib/index.cc (minus_one): Don't declare as const.
12258 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
12260 * troff/input.cc (get_char_for_escape_name): Push back a newline.
12262 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
12264 * troff/input.cc (write_macro_request): New function.
12265 (init_input_requests): Bind write_macro_request to writem.
12267 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
12269 * tmac/tmac.s (@EN): Turn filling back on even if there was no
12272 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
12274 * tmac/tmac.s (@TS): Renamed from TS.
12275 (TS): Call LP then TS again.
12276 (cov*ab-init): Alias @TS to TS.
12278 * tmac/tmac.s: Allow QP or RS to initialize.
12280 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
12281 Move initializations of PS and LL here.
12282 (par@init): Don't initialize HY. Avoid changing environment 0.
12283 (par*env-init): Don't all par@reset.
12285 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
12287 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
12289 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
12291 * Makefile.in (MDEFINES): Add LDFLAGS.
12292 (LDFLAGS): Add definition line.
12294 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
12296 * troff/input.cc (get_optional_char): Split off error check into...
12297 (check_missing_character): New function.
12298 * troff/token.h: Declare it.
12299 * troff/env.cc (margin_character): Don't call get_optional_char.
12300 Only call tok.next() after making the node.
12302 * include/lib.h (getopt): Make 2nd argument char *const *.
12304 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
12306 * nroff/conftest.sh: Deleted.
12308 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
12310 * pic/make-dos-dist: Deleted.
12312 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
12314 * devps/psstrip.sed: Strip comments before stripping trailing
12317 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
12319 * Version 1.09 released.
12321 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
12323 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
12325 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
12327 * libgroff/font.cc (font::load_desc): Fix typo in error message.
12329 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
12331 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
12332 about returning without a value.
12334 * troff/charinfo.h (charinfo::get_special_translation): Cast
12335 TRANSLATE_NONE to int.
12337 * refer/token.cc (lookup_token, store_token): Remove bogus loop
12338 test. Fix test so that it works with n unsigned.
12340 * pic/pic.y (defaults_table): Fully bracket initializer.
12341 * pic/lex.cc (lookup_keyword): Likewise.
12342 * eqn/lex.cc (token_table, def_table): Likewise.
12343 * eqn/box.cc (param_table): Likewise.
12344 * troff/input.cc (warning_table): Likewise.
12345 * libgroff/font.cc (table): Likewise.
12346 * grops/ps.cc (ps_printer::special): Likewise.
12347 * grops/psrm.cc (resource_manager::process_file): Likewise.
12348 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
12349 * refer/command.cc (command_table): Likewise.
12350 * addftinfo/addftinfo.cc (param_table): Likewise.
12352 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
12353 about temp's being unused.
12354 (unused): New function.
12356 * groff/pipeline.cc: Declare c_fatal.
12358 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
12361 * libbib/index.cc (index_search_item::load): Prevent compiler
12362 warnings about fd_closer's being unused.
12363 (unused): New function.
12365 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
12367 * troff/input.cc (copy_mode_error): Make `prefix' static.
12370 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
12372 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
12373 HAVE_CC_OSFCN_H and modify accordingly.
12375 * troff/input.cc (init_charset_table): radicalex overlaps
12378 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
12379 udodo!hans@relay.NL.net).
12380 * groff/configure.in: Call it.
12382 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
12383 * groff/configure.in: Call it.
12384 * include/lib.h: Conditionalize declaration of pclose.
12386 * troff/div.cc (last_page_number): New global variable.
12387 (top_level_diversion::begin_page): Exit if we just printed the
12389 * troff/div.h (last_page_number): Declare it.
12390 * troff/input.cc (parse_output_page_list): Set last_page_number.
12392 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
12393 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
12394 tmac/tmac.X: Likewise.
12395 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
12396 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
12398 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
12400 * tmac/doc-ditroff (hK): Remove groff specific code which
12401 prevented page-breaks between separate manual entries. If this is
12402 the first page, don't set the page number to 1.
12404 * acgroff.m4 (GROFF_POSIX): New macro.
12405 * configure.in: Use it.
12407 * troff/node.cc (class real_output_file,
12408 real_output_file::real_output_file,
12409 real_output_file::~real_output_file): Conditionalize use of
12410 popen/pclose on POPEN_MISSING.
12411 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
12412 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
12413 (pipe_source): Similarily.
12415 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
12417 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
12418 presence of declarations by trying to compile example with
12419 conflicting declarations. (gcc only gives a warning for missing
12422 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
12424 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
12425 (from Ulrich Lauther).
12427 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
12429 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
12431 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
12433 * indxbib/indxbib.cc (write_hash_table): Add code for case where
12434 pointers and ints have different sizes.
12436 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
12438 * tmac/tmac.s (par*env-init): Call par@reset.
12440 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
12442 * tmac/tmac.s (@IP): Switch to a new environment when diverting
12444 (par*push-tag-env, par*pop-tag-env): New macros.
12446 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
12448 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
12449 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
12451 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
12452 comment. Include <time.h>.
12454 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
12456 * grops/ps.cc (is_small_h, is_small_v): Deleted.
12457 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
12460 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
12462 * troff/input.cc (read_request): Only print a prompt if reading
12463 from the terminal. Also clearerr on EOF if reading from the
12464 terminal. Declare isatty.
12466 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
12468 * refer/label.y: Rename map_t to map_func and extractor_t to
12471 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
12473 * include/assert.h: Don't use volatile.
12474 * libgroff/assert.cc: Likewise.
12476 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
12478 * troff/input.cc (abort_request): Look at character in tok before
12479 calling get_copy().
12481 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
12483 * troff/troff.h (NO_RETURN): Deleted.
12484 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
12485 * troff/input.cc (exit_troff): Likewise
12487 * Makefile.in: Remove `Making ...' messages since GNU make now
12490 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
12492 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
12494 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
12495 to constant 1 inch.
12497 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
12499 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
12501 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
12503 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
12504 MARK_REG if there was no left delimiter.
12506 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
12508 * pic/troff.cc (troff_output::text): Set line thickness to
12509 relative before outputting text.
12511 * tmac/tmac.e (@k): Don't zero ?T.
12514 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
12516 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
12518 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
12520 * troff/input.cc (decode_args): Warn about unquoted tabs (from
12523 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
12525 * troff/input.cc (ignoring): New variable.
12526 (ignore): Set ignoring during call to do_define_macro.
12527 (do_define_macro): Clear ignoring before interpolating terminating
12529 (copy_mode_error): New function.
12530 (get_char_for_escape_name, read_long_escape_name,
12531 interpolate_arg): Use copy_mode_error.
12532 (warning_table): Add WARN_IG.
12533 * troff/troff.h (WARN_IG): Declare.
12534 (WARN_TOTAL): Change accordingly.
12536 * groff/pipeline.c (strsignal): Rename to xstrsignal.
12537 * groff/groff.cc (strsignal): Delete declaration.
12539 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
12541 * troff/div.cc (page_offset): Use 'm' as default scaling.
12543 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
12545 * nroff/nroff.sh: Ignore -u.
12547 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
12549 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
12551 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
12553 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
12555 (B2): With -Tascii, leave additional vertical space before
12556 and after. Ensure that the left and right indent is restored to
12557 what it was even if the point size changes. Don't call
12558 par@finish. Change the indent, line length and title length
12559 directly. With -Tascii, make the width of the box 1n less.
12560 (B1): Remember 1n at the current point size. Don't call
12561 par@reset. Change the indent, line length and title length
12562 directly. Ensure that the temporary indent is preserved.
12563 (par*box-mark-top): Turn off no spacing mode.
12565 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
12567 * Makefile.in (dist): Use .gz suffix.
12569 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
12571 * troff/input.cc (main): Add return 0.
12572 * pic/main.cc (main): Use return instead of exit.
12573 * tbl/main.cc (main): Likewise.
12574 * eqn/main.cc (main): Likewise.
12575 * grops/ps.cc (main): Likewise.
12576 * grotty/tty.cc (main): Likewise.
12577 * groff/groff.cc (main): Likewise.
12578 * grodvi/dvi.cc (main): Likewise.
12579 * refer/refer.cc (main): Likewise.
12580 * indxbib/indxbib.cc (main): Likewise.
12581 * lkbib/lkbib.cc (main): Likewise.
12582 * soelim/soelim.cc (main): Likewise.
12583 * addftinfo/addftinfo.cc (main): Likewise.
12584 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
12585 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
12587 * troff/token.h (process_input_stack): Don't declare as static.
12588 * troff/input.cc: Likewise.
12590 * troff/node.c (invalidate_fontno): Make it a static member of
12591 class font_family. Change callers.
12592 * troff/node.c: Change declaration.
12594 * tbl/main.cc (struct input_entry_format): Add explicit public
12596 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
12597 struct double_hline_stuff): Likewise.
12598 * tbl/table.h (struct entry_format): Likewise.
12599 * pic/object.h (struct saved_state): Likewise.
12601 * include/stringclass.h: Add forward declarations of friend
12602 functions that are later declared as inline. Don't include inline
12603 specifier in friend declaration.
12605 * libgroff/lib.h: Declare popen and pclose.
12606 * acgroff.m4 (GROFF_POPEN): New macro.
12607 * configure.in: Call it.
12609 * include/lib.h (PI): New constant. Undef first if necessary.
12610 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
12611 * grops/ps.cc (degrees, radians): Likewise.
12612 * libgroff/font.cc (font::get_skew): Likewise.
12614 * grops/ps.cc (is_ascii): New function.
12615 (ps_output::put_string): Use is_ascii. Use csprint rather than
12617 (ps_printer::define_encoding): Use csspace.
12618 * libgroff/strtol.c (ISASCII): New macro.
12619 (strtol): Cast arguments to is*() and tolower() to unsigned char.
12620 Use ISASCII rather than isascii.
12621 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
12622 * libgroff/cset.cc: Likewise.
12623 * libdriver/input.cc: Include cset.h.
12624 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
12627 * refer/refer.cc (main): Use %ld rather than %d for longs.
12629 * libbib/index.cc (index_search_item_iterator::get_tag): Use
12632 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
12634 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
12636 * troff/input.cc (hyphenation_code): Skip white space between
12639 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
12641 * tbl/table.h (table::entry_list_tailp): New member.
12642 (table::table): Initialize it.
12643 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
12646 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
12648 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
12649 with negative horizontal positions. Remove casts of glyph::hpos to
12651 (USHRT_MAX): Delete definition.
12652 (SHRT_MAX, SHRT_MIN): New definitions.
12653 (glyph::hpos): Change type to short.
12654 (tty_printer::end_page): Output multiple backspaces if necessary.
12655 Remove casts of glyph::hpos to int.
12657 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
12659 * tmac/tmac.s (@RT): New definition.
12661 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
12663 * refer/refer.cc (do_file): Make sure current_filename is set when
12666 * pic/common.cc (common_output::dot_line): Handle zero length
12669 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
12671 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
12672 (par@init): Initialize \n[HY].
12674 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
12676 * troff/dictionary.cc (dictionary::remove): Continue when
12679 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
12681 * Makefile.com (.y.cc): Avoid ending up with two versions of
12684 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
12686 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
12687 (\(,C): Likewise. Also fix typo.
12689 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
12691 * lib.h: Delete extraneous semi-colon.
12693 * Add pso request: `so' from a pipe.
12694 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
12695 (file_iterator::close): New function.
12696 (file_iterator::~file_iterator, file_iterator::next_file): Use
12697 file_iterator::close.
12698 (file_iterator::backtrace): Say `process' rather than `file' when
12699 the stream is popened.
12700 (pipe_source): New function.
12701 (init_input_requests): Bind ".pso" to pipe_source.
12703 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
12705 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
12707 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
12708 digits in lower case.
12710 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
12712 * Version 1.08 released.
12714 * Makefile.in (dist): Insert || true after ln -s commands that
12717 * mm: Update to mm 1.16.
12719 * acgroff.m4 (GROFF_CSH_HACK): New macro.
12720 * configure.in: Call GROFF_CSH_HACK. Substitute for
12722 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
12724 * nroff/Makefile.sub (nroff): New target.
12725 (install_data): Install nroff.
12726 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
12727 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
12729 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
12731 * eqn/Makefile.sub (neqn): Add chmod +x.
12733 * grog/Makefile.sub (grog): Remove spurious semi-colon.
12735 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
12737 * troff/input.cc (string_iterator::string_iterator()): Initialize
12740 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
12742 * troff/div.cc (macro_diversion::space,
12743 top_level_diversion::space): Don't set high_water_mark.
12744 (macro_diversion::output, top_level_diversion::output): Don't
12745 include post line space in high water mark.
12747 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
12749 * eqn/eqn.y: Don't define YYDEBUG.
12750 * pic/pic.y: Likewise.
12752 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
12754 * tmac/tmac.e ([3): Add space after comma following editors.
12755 Change double spaces to single spaces.
12756 ([4): Change double spaces to single spaces.
12758 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
12759 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
12760 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
12761 after %!PS-Adobe- (for Newsprint).
12763 * troff/div.cc (top_level_diversion::begin_page): When
12764 before_first_page is 1, set page_number to 1.
12766 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
12768 * eqn/box.cc (box::top_level): Protect equation with \&.
12770 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
12772 * groff/groff.cc (possible_command::set_name): Delete old name.
12774 * groff/groff.cc (possible_command::~possible_command): Use
12777 * troff/node.cc (troff_output_file::begun_page): New member.
12778 (troff_output_file::troff_output_file): Initialize it.
12779 (troff_output_file::really_begin_page): Only output V command if a
12780 page has been begun.
12782 * pic/pic.y (placeless_element): Delete argument to PRINT after
12785 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
12787 * Make wrapman work.
12788 * troff/div.h (class top_level_diversion): Replace
12789 first_page_begun by before_first_page (with opposite sense).
12790 * Change first_page_begun to before_first_page inverting sense.
12791 * troff/div.cc (class nl_reg): New class.
12792 (init_div_requests): Use class nl_reg for \n(nl.
12793 (top_level_diversion::begin_page): Don't call
12794 output_file::begin_page if before_first_page is 2;
12795 reset before_first_page afterwards. If have_next_page_number is
12796 false, then always increment page_number.
12797 * tmac/tmac.an: Set traps within TH rather than at the top-level.
12798 Restore compatibility mode after loading, and then disable
12799 compatibility mode in TH.
12801 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
12803 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
12805 * troff/node.h (output_file::trailer): Declare.
12806 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
12807 * troff/node.cc (output_file::trailer): New function.
12808 (troff_output_file::~troff_output_file): Move most code into...
12809 (troff_output_file::trailer): New function.
12810 (class troff_output_file): Delete page_length member. Declare
12812 (troff_output_file::really_begin_page): Use current page length
12813 for final V command.
12815 * tbl/main.cc (struct options): New decimal_point_char member.
12816 (options::options): Initialize this.
12817 (process_options): Implement decimalpoint option.
12818 (process_data): Pass decimal_point_char option to table::table.
12819 * tbl/table.h (class table): New decimal_point_char member.
12820 (table::table): Add additional argument.
12821 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
12822 second argument specifying decimal point character. Use this
12824 (table::table): Initialize decimal_point_char.
12825 (table::add_entry): Change call to find_dot.
12827 * troff/input.cc (get_copy, token::next): Implement \V.
12828 (interpolate_environment_variable): New function.
12830 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
12832 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
12833 * pic/pic.y: Likewise.
12835 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
12837 * refer/ref.cc (reference::insert_field, reference::delete_field):
12839 * troff/number.cc (parse_term): Likewise.
12841 * acgroff.m4 (GROFF_PROG_YACC): New macro.
12842 * configure.in: Use GROFF_PROG_YACC.
12844 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
12846 * Makefile.in (OPTIMIZE): New define.
12847 (DEBUG): Empty by default.
12848 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
12850 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
12851 (GROFF_ARRAY_DELETE): Likewise.
12852 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
12854 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
12856 * devps/psstrip.sed: Use different delimiter on last line (so that
12857 it works with BSD 4.4 sed.)
12859 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
12861 * devps/psstrip.sed: Delete comments.
12863 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
12864 optind, opterr, optarg.
12865 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
12868 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
12870 * Makefile.in (check): Dummy target.
12872 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
12874 * Version 1.07 released.
12876 * Integrate mm 1.11.
12878 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
12879 where start_col was meant.
12881 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
12883 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
12885 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
12887 * troff/input.cc (token::next): Make \z\o'...' and similar things
12890 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
12892 (environment): Add margin_character_flags member.
12893 * env.cc (environment::environment(symbol),
12894 environment::environment(const environment *): Initialize
12895 margin_character_flags.
12896 (margin_character): Rewrite.
12897 (environment::output_line): Add a margin character if
12898 margin_character_flags is non-zero. Turn off the
12899 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
12900 zero, use margin_character_node without copying and then set
12901 margin_character_node to 0.
12903 * devps/DESC.in: Change minimum size to 1000.
12905 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
12907 * troff/symbol.h (symbol::hash): Change return type to unsigned
12909 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
12912 * test-groff: Use -r rather than -x.
12914 * grops/psfig.diff: Include in distribution again.
12916 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
12918 * Makefile.in (dist): Use gzip.
12920 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
12922 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
12923 unistd.h as well as in stdlib.h.
12924 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
12925 defined; otherwise include <sys/types.h> and <unistd.h> if
12926 UNISTD_H_DECLARES_GETOPT is defined.
12928 * configure.in: use builtin(include, ... rather than include(...
12929 * configure: Regenerate with autoconf 1.3.
12931 * libdriver/print.cc (printer::adjust_arc_center): Use new
12932 algorithm suggested by Andy Fyfe.
12934 * libdriver/printer.cc (printer::adjust_arc_center): New function.
12935 * include/printer.h: Declare this.
12936 * grops/ps.cc (ps_printer::draw): Use it.
12937 * grodvi/dvi.cc (dvi_printer::draw): Use it.
12939 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
12941 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
12943 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
12945 * eqn/main.cc (main): Handle "eqn -".
12947 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
12949 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
12951 * mm: Integrate version 1.08.
12953 * pic/troff.cc (troff_output::finish_picture): Set
12954 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
12955 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
12956 if it's not defined. Check whether the register is non-zero rather
12957 than whether it's not defined.
12958 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
12960 * indxbib/indxbib.cc: Move all signal handling into...
12961 * indxbib/signal.c: New file.
12962 * configure.in: Call AC_RETSIGTYPE.
12964 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
12965 * configure.in: Call GROFF_STRUCT_EXCEPTION.
12966 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
12968 * troff/input.cc (token::token, token::operator=): Work round SGI
12970 * pic/object.cc (position::position): Likewise.
12972 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
12974 * pic/pic.h: Move declaration of hypot().
12976 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
12978 * pic/pic.h: Declare hypot().
12980 * pic/pic.h: Define M_PI if necessary.
12982 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
12984 * tmac/tmac.e (re): Add alternative version that doesn't use groff
12987 * devps/prologue.ps (RE): Handle the possibility that the old font
12988 doesn't have a FontName entry.
12990 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
12992 * tmac/tmac.e (fam): Redefine to set family in environment 2.
12993 (@C): Use @fam not fam.
12995 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
12997 * lookbib/lookbib.cc (main): Change type of start to const char *.
12998 * lkbib/lkbib.cc (main): Likewise.
13000 * eqn/lex.cc (definition::definition): Don't use member
13001 initializer syntax for members of anonymous unions.
13003 * troff/input.cc (input_stack::backtrace): Change type of to const
13006 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
13008 * include/stringclass.h (class string): Declare inline friend
13009 functions as inline in class declaration.
13010 * troff/hvunits.h (class hunits, class vunits): Likewise.
13011 * include/refid.h (class reference_id): Likewise
13012 * troff/troff.h (points_to_units(units), scale(units, double)):
13013 Delete declarations.
13014 * libdriver/input.cc (get_char): Delete declaration.
13015 * include/lib.h: Change 2nd argument of getopt from const char **
13017 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
13018 char **' before assigning to a `const char **'.
13019 * tbl/table.cc: Delete extra declarations of prints().
13021 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
13023 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
13024 char **' before assigning to a `const char **'.
13026 * libgroff/errarg.cc (errarg::errarg): Don't use member
13027 initializer syntax for members of anonymous unions.
13029 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
13031 * mm: Integrate version 1.07.
13033 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
13035 * troff/input.c (translate2): Rename to
13036 (translate_no_transparent).
13037 (init_input_requests): Rename tr2 to trnt.
13039 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
13041 * troff/charinfo.h (class charinfo): Add transparent_translate field.
13042 (charinfo::set_translation, charinfo::set_special_translation):
13043 Add second argument that specifies value for
13044 transparent_translate.
13045 (charinfo::get_translation, charinfo::get_special_translation):
13046 Add optional second argument that specifies whether translation is
13047 being used for transparent throughput.
13048 * troff/input.cc (charinfo::set_translation,
13049 charinfo::set_special_translation): Handle second argument.
13050 (charinfo::charinfo): Initialize transparent_translate.
13051 (translate): Split main part off into
13052 (do_translate): New function. Pass argument saying whether
13053 translation applies to transparent throughput.
13054 (translate2): New request.
13055 (init_input_requests): Bind translate2 to `tr2'.
13057 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
13059 * tbl/table.h (class table): Add `nokeep' flag.
13060 * tbl/main.cc (process_options): Handle `nokeep' option.
13061 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
13062 table::do_bottom): Don't output keep/release macro definitions or
13063 calls when `nokeep' option has been specified.
13065 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
13067 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
13069 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
13071 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
13072 block_entry::divert, alphabetic_block_entry::divert): Add extra
13073 argument giving column separation.
13074 (table::compute_widths): Pass column separation to
13075 table_entry::divert().
13076 (block_entry::do_divert): If an entry spans multiple columns and a
13077 minimumum width has been specified for each column, then set the
13078 line length to the sum of the widths (plus possibly the column
13081 * troff/input.cc (set_escape_char): Don't set the escape_char
13082 until after calling has_arg().
13084 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
13086 * tbl/table.cc (table::do_top): Add missing \s0 for double box
13089 * tbl/table.cc (table::print_double_hline): Avoid extra new line
13090 in case where r > nrows - 1.
13092 * tbl/table.cc (BODY_HEIGHT): Deleted.
13093 (LINE_SEP): New definition.
13094 (table::print_single_hline, table::print_double_hline,
13095 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
13096 table::do_row, table::do_top): Use LINE_SEP space before a line
13097 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
13099 * tbl/table.cc (text_entry::print_contents): New function.
13100 (text_string_name, right_text_string_name): Deleted.
13101 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
13102 (simple_text_entry::do_width, numeric_text_entry::do_width,
13103 alphabetic_text_entry::do_width): Don't store the contents of the
13105 (left_text_entry::simple_print, right_text_entry::simple_print,
13106 center_text_entry::simple_print,
13107 alphabetic_text_entry::simple_print,
13108 numeric_text_entry::simple_print): Print the entry directly
13109 instead of using the stored string.
13111 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
13113 * devps/Makefile: Strip PostScript files.
13114 * devps/prologue: Rename to...
13115 * devps/prologue.ps.
13116 * devps/psstrip.sed: New file.
13117 * devps/download: Use .pfa rather than .ps for installed versions
13120 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
13122 * troff/env.cc (input_trap): Give a warning if the argument is out
13125 * troff/env.cc (adjust): Treat negative argument as missing. Round
13126 argument > 5 down to 5.
13128 * troff/env.cc (center, right_justify): Make negative argument zero.
13130 * troff/div.cc (page_offset, vertical_position_traps): Treat
13131 invalid argument as missing.
13132 * troff/env.cc (line_spacing, line_length, title_length, indent,
13133 underline, hyphen_line_max_request, control_char,
13134 no_break_control_char, widow_control_request, adjust, input_trap,
13135 point_size): Likewise.
13136 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
13137 constant_space): Likewise.
13138 * troff/input.cc (compatible, shift, warn_request,
13139 set_escape_char): Likewise.
13141 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
13142 * tbl/table.cc (table::table): Likewise.
13144 * Makefile.dev (install_dev): depends on $(DEVFILES).
13146 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
13148 * devX75, devX75-12, devX100, devX100-12: New directories.
13149 * Makefile.in: Add these to DEVDIRS.
13151 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
13152 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
13153 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
13154 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
13156 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
13157 (uninstall): New target.
13158 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
13159 uninstall_prog, uninstall_dev): New targets.
13161 * troff/div.cc (return_request): Treat an invalid argument as
13164 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
13166 * tmac/tmac.e ((f): Set up the environment even when there's a
13167 current diversion. Transperently throughput a call to @N.
13170 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
13172 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
13173 up to vertical resolution.
13175 * tbl/table.cc (table::do_row): Change row number after printing
13178 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
13180 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
13182 * Rename CHANGES to NEWS.
13184 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
13186 * libgroff/new.cc (operator new): Avoid calling malloc(0).
13188 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
13190 * man.ultrix: Removed.
13192 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
13194 * Makefile.comm (extraclean): Delete files whose names begin with
13197 * pic/troff.cc (troff_output::text): Fix typo in implementation of
13200 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
13202 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
13203 * troff/div.cc (page_length, need_space, space_request): Treat
13204 invalid optional argument as missing.
13205 * troff/env.cc (number_lines): If the first argument is present
13206 but not a number, turn on line numbering, don't change the next
13207 line number and parse the remaining arguments.
13209 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
13211 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
13213 * eqn/box.h: Change declaration accordingly.
13214 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
13215 the specified size was bad but don't give an error. Check for
13217 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
13218 * eqn/lex (do_size): Likewise.
13220 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
13222 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
13223 compatible headers.
13225 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
13227 * tbl/table.cc (table::init_output): Improve error message when
13228 table won't fit on one page.
13230 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
13232 * pic/troff.cc (troff_output::start_picture): Generate line
13233 containing a horizontal motion equal to the width of the picture.
13235 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
13236 using GROFF_COMMAND_PREFIX environment variable.
13238 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
13240 * mdate.sh: Use $NF rather than $(NF).
13242 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
13244 * pic/main.cc (main): Use %1 not %c in argument to warning.
13246 * eqn/main.cc (main): Output code to check that geqn was given the
13249 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
13251 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
13252 `ln -s ../Makefile .; make; rm -f Makefile'.
13254 * troff/hyphen: Rename to...
13256 * troff/input.cc (main): Delete -H option. Don't call
13257 read_hyphen_file().
13258 * troff/env.cc: Include searchpath.h and macropath.h.
13259 (exception_dictionary): Deleted.
13261 (read_hyphen_file): Deleted.
13262 (hyphenation_language): New struct.
13263 (class trie, class hyphen_trie): Move declarations up.
13264 (trie_node::~trie_node): Deleted.
13265 (trie::delete_trie_node): New function.
13266 (trie::do_delete): New pure virtual function.
13267 (hyphen_trie::do_delete): New function.
13268 (trie::~trie): New function.
13269 (hyphen_trie::~hyphen_trie): New function.
13270 (trie::clear): No need to chcek that tp is not 0.
13271 (current_language, language_dictionary): New variables.
13272 (hyphen_word): Give an error if no current language. Use
13273 exceptions dictionary in current language.
13274 (hyphen_trie::read_patterns_file): Find file using macro_path.
13275 Allow comments (starting with %) in patterns file. Don't make it
13276 a fatal error if the file can't be found.
13277 (hyphenate): Return if no current language. Get the exceptions
13278 dictionary and the hyphenation patterns from the current language.
13279 (set_hyphenation_language): New variable.
13280 (hyphenation_patterns_file): New function.
13281 (hyphenation_language_reg): New class.
13282 (hyphenation_language_reg::get_string): New function.
13283 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
13284 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
13286 * groff/groff.cc (main, help, synopsis): Delete -H option.
13287 * include/Makefile.sub: Don't define HYPHENFILE.
13288 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
13289 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
13290 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
13291 hyphenation patterns.
13293 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
13295 * eqn/neqn.sh: New file.
13296 * eqn/Makefile.sub: Handle neqn.sh.
13298 * eqn/eqn.h: Declare `nroff' variable.
13299 * eqn/box.cc (param_table): Add `nroff' param.
13300 (nroff): Define it.
13301 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
13303 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
13305 * troff/troff.h (WARN_FONT): New warning.
13306 (WARN_TOTAL): Change accordingly.
13307 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
13308 (warning_table): Add WARN_FONT.
13309 * troff/node.cc (mount_font_no_translate): Pass argument to
13310 font::load_font. If this is non-zero, give a warning.
13311 Don't give an error message when accessing a font that has already
13312 been found to be invalid.
13313 * include/font.h (font::load, font::load_font): Add additional
13314 optional argument which suppresses error message if the font is
13316 * libgroff/font.cc (font::load_font): Handle additional argument.
13317 (font::load): Add additional argument. If this is non-null, set it
13318 to 1 and don't give error message.
13320 * include/printer.h (printer::end_page): Add argument giving
13322 * libdriver/input.cc (do_file): Pass this.
13323 * grops/ps.cc (ps_printer::end_page): Add argument.
13324 * grodvi/dvi.cc (dvi_printer::end_page,
13325 draw_dvi_printer::end_page): Add argument.
13326 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
13327 columns_per_page members. New member nlines.
13328 (DEFAULT_LINES_PER_PAGE): Deleted.
13329 (tty_printer::tty_printer): Don't compute lines_per_page from
13330 font::paperlength. Don't compute columns_per_page from
13332 (tty_printer::add_char): Don't check horizontal position against
13333 columns_per_page. Grow glyphs vector if neccessary.
13334 (tty_printer::end_page): Add argument giving page_length in units.
13335 Discard lines past end of page.
13337 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
13339 * tmac/tmac.tty-char: Fix definition of \(/l.
13341 * tmac/tmac.X: Define \(en.
13343 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
13345 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
13346 lpq, then use lp rather than lpr.
13348 * tmac/tmac.s (par@reset): Don't call `ad'.
13349 (par*env-init): Call `ad'.
13351 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
13353 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
13356 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
13357 * indxbib/indxbib.cc: Likewise.
13359 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
13361 * libgroff/putenv.c: New file.
13362 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
13363 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
13364 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
13365 stdlib.h with AC_HAVE_HEADERS.
13367 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
13369 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
13372 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
13374 * eqn/box.cc (gsize): Make it an int.
13375 (set_gsize): Parse argument handling increment or decrement.
13376 (box::top_level): Convert gsize to a string.
13378 * troff/input.cc (exit_troff): Make buf unsigned char [].
13379 Call to make_temp_iterator casts buf to char*.
13381 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
13383 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
13384 * Makefile.cpg (depend.temp): Likewise.
13386 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
13388 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
13390 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
13392 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
13394 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
13396 * Version 1.06 released.
13398 * Integrate mm 1.04.
13400 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
13402 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
13404 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
13406 * afmtodit/afmtodit.pl: Add -n option that disables generation of
13408 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
13409 afmtodit. Regenerate.
13411 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
13412 @f back past the current position.
13414 * tmac/tmac.e: Change calls to @R so that comments are not part of
13417 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
13419 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
13421 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
13422 check that we can link a call to a function declared in <stdio.h>.
13423 (GROFF_UNISTD_H): New macro.
13424 * configure.in: Call it.
13425 * Makefile.in: Document it.
13426 * include/posix.h: New file.
13427 * troff/troff.h: Don't include <osfcn.h>
13428 * troff/input.cc: Include posix.h.
13429 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
13431 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
13432 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
13434 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
13435 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
13436 * libbib/search.cc (O_RDONLY): Delete definition.
13437 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
13438 Don't include <osfcn.h>.
13440 * acgroff.m4 (GROFF_TIME_T): New macro.
13441 * configure.in: Call it.
13442 * Makefile.in: Document it.
13444 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
13445 * configure.in: Call it.
13446 * Makefile.in: Document -DTRADITIONAL_CPP.
13447 * include/ptable.h: Don't include generic.h.
13448 (name2): Define it.
13450 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
13451 Afterwards remove [T1 and [T2.
13452 (ref*spec!0, ref*spec!2): Use T1 rather than T.
13453 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
13454 (ref*add-T2): Renamed from ref*add-T.
13455 (ref*add-T1): New macro.
13457 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
13459 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
13461 * libbib/index.cc: Include <fcntl.h>.
13462 (O_RDONLY): Define if necessary.
13463 (make_index_search_item, index_search_item_iterator::get_tag,
13464 index_search_item::check_files): Use O_RDONLY.
13465 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
13466 (O_RDONLY): Define if necessary.
13467 (search_list::add_file): Use O_RDONLY.
13468 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
13470 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
13473 * libbib/index.cc (S_ISREG): Define it if necessary.
13474 (index_search_item::load): Use S_ISREG.
13476 * include/driver.h: Include <errno.h>.
13478 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
13480 * eqn/box.cc (body_height): Increase default value to 85.
13481 (body_depth): Increase default value to 35.
13483 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
13485 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
13486 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
13487 protected from expansion with \E.
13489 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
13491 * Makefile (Makefile): New target.
13493 * Makefile.sub (configure, distfiles): New targets.
13495 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
13498 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
13500 * eqn/box.cc (param_table): Add body_height and body_depth.
13502 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
13504 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
13506 * psbb/Makefile.sub: Don't link with libgroff.a.
13508 * acgroff.m4 (GROFF_PUTENV): New macro.
13509 * configure.in: Call GROFF_PUTENV.
13510 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
13511 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
13514 * troff/env.cc (distribute_space): Rename force_forward argument
13515 to force_reverse. Reverse the list if force_reverse is true.
13517 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
13519 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
13521 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
13522 height or depth to be negative. Guard against SUP_RAISE quantity
13525 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
13527 * devps/generate/textmap: Add `an' (arrowhorizex).
13528 * tmac/tmac.ps: \(an overlaps horizontally.
13529 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
13531 * devps/symbolchars: Add arrowverttp, arrowvertbt.
13532 * devps/textmap: Add arrowvertex.
13533 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
13534 updownarrow delimiters.
13535 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
13537 * tbl/table.cc (simple_entry::position_vertically,
13538 block_entry::position_vertically): For a centered entry, perform
13539 the motion in two stages.
13541 * refer/refer.cc (split_punct): Don't call lookup_token if there
13544 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
13546 * troff/input.cc (token::next): Delete token_node after copying
13549 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
13552 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
13554 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
13556 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
13558 * grops/ps.cc (usage): -b option takes an argument.
13560 * devps/prologue (PLG): New procedure.
13561 * grops/ps.cc (main, usage): New -g option.
13562 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
13565 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
13567 * include/cset.h: Include <limits.h> if we have it.
13569 * libgroff/illegal.cc: New file.
13570 * include/lib.h (illegal_input_char): Use table.
13571 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
13572 * pic/lex.cc (ARG1): Renumber to 14.
13573 * eqn/lex.cc (ARG1): Likewise.
13575 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
13576 (eg 1.05.90) correctly.
13578 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
13580 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
13581 Rename $r and $R registers to $v and $V.
13582 ($r, $R): Initialize to 0.
13583 (@v, @V): New macros.
13587 * troff/input.cc (main, usage): Add -R option that says not to
13589 * eqn/main.cc (main, usage): Rename -n to -R.
13591 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
13593 * devps/DESC.in: Leave font positions 5-9 blank.
13594 * devdvi/DESC.in: Likewise.
13596 * grog/grog.pl: Handle `.PS <file' correctly.
13598 * troff/input.cc (input_stack::push): Improve error message when
13599 input stack limit exceeded.
13601 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
13603 * refer/refer.cc (main): Fix typo in handling of `a' option.
13605 * refer/refer.cc (do_bib): In state START after a newline remain
13608 * groff/groff.sh: Deleted.
13609 * groff/Makefile.sub: Delete handling of groff.sh.
13611 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
13612 to determine whether to use \X'ps:...'.
13613 * tmac/troffrc: Set 0p register to 0.
13614 * tmac/tmac.ps: Set 0p register to 1.
13616 * groff/groff.cc: Support -X option. Give warning for -TXps and
13617 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
13618 * tmac/troffrc: Support -r.X=1.
13620 * pic/troff.cc (troff_output::dot): Don't test
13621 zero_length_line_flag.
13623 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
13625 * include/lib.h: Declare getopt() and friends unless
13626 STDLIB_H_DECLARES_GETOPT is defined.
13628 * doc/chars.tr: Delete.
13629 * man/groff_char.man: New file.
13631 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
13633 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
13634 user has changed register format.
13636 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
13638 * groff/groff.cc: Get rid of device_table. Get postprocessor from
13639 `postpro' command in DESC file. Get spooler command from `print'
13640 command in DESC file. Execute spooler command with /bin/sh.
13642 * groff/groff.cc: Split Unix-specific parts into...
13643 * groff/pipeline.c: New file.
13646 * COPYING: New file.
13647 * all files: Update copyright notices.
13649 * Rearrange files. Redo Makefiles. Use autoconf.
13651 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
13653 * troff/input.c (charinfo_to_node_list): Interpret character
13654 definition with escape_char of `\'.
13656 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
13658 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
13659 Define INT_DIGITS as big enough for 64-bit integer.
13660 * lib/strtol.c: Don't include lib.h.
13661 * lib/lib.h: Delete ifdef __cplusplus stuff.
13663 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
13665 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
13666 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
13667 get DESC from current directory.
13669 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
13671 * tbl/main.c (main): Always reset the line number when reading
13674 * tbl/table.c (table::print_single_hline, table::print_double_hline,
13675 table::define_bottom_macro, table::do_row, table::do_top): Round
13676 vertical spacing up to vertical resolution.
13678 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
13680 * ps/ps.h (enum resource_type): Avoid comma at end of
13682 * dvi/dvi.c (class dvi_printer): Likewise.
13683 * dvi/tfmtodit.c (gf::load): Likewise.
13684 * refer/label.y (struct expression): Likewise.
13685 * refer/refer.c (class label_processing_state): Likewise.
13686 * refer/indxbib.c (do_file): Likewise.
13687 * troff/troff.c (enum warning_type): Likewise.
13688 * tbl/main.c (process_data): Likewise.
13689 * troff/charinfo.h (class charinfo):
13691 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
13693 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
13695 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
13697 * groff.c: Move to new groff subdirectory.
13698 * groff/Makefile: New file.
13699 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
13701 * man/mdate.sh: Use ls -L if supported.
13703 * Consolidate all header files produced by gendef into lib/defs.h.
13704 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
13705 Don't include path.h.
13706 * lib/Makefile (path.h): Don't generate.
13707 * troff/input.c: Include defs.h. Don't include config.h.
13708 * troff/Makefile (config.h): Don't generate.
13709 * refer/index.h: Don't include suffix.h.
13710 * refer/index.c: Include defs.h.
13711 * refer/indxbib.c: Include defs.h.
13712 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
13714 * refer/Makefile (suffix.h, path.h): Don't generate.
13715 * groff.c: Don't include config.h. Include defs.h.
13716 * Makefile (config.h): Don't generate.
13717 (lib/defs.h): Generate.
13718 (topclean): Remove lib/defs.h.
13720 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
13722 * lib/malloc.c, lib/getpagesize.h: Deleted.
13723 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
13725 * lib/Makefile: Delete malloc-related stuff.
13726 * lib/new.c: Workaround COOKIE_BUG if necessary.
13728 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
13729 needed header files directly.
13730 * refer/refer.h: Omit definition of DEFAULT_INDEX.
13731 * Makefile: Include definition of DEFAULT_INDEX in path.h.
13733 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
13735 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
13737 * lib/font (font::load_desc, font::load): Don't split argument of
13739 (font::handle_unknown_font_command): Change type.
13740 * ps/ps.c (ps_font::handle_unknown_font_command,
13741 handle_unknown_desc_command): Change type.
13742 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
13744 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
13746 * lib/font.h (font::handle_unknown_font_command): Add file and
13748 * lib/font.c (font::handle_unknown_font_command):
13749 * ps/ps.c (ps_font::handle_unknown_font_command):
13750 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
13751 lineno arguments. Use _with_file_and_line functions for error
13754 * lib/fontfile.c (font::unknown_desc_command_handler): New static
13756 * lib/font.c (font::set_unknown_desc_command_handler): New
13758 (font::load_desc): For unknown commands, call
13759 unknown_desc_command_handler if not null.
13760 * lib/font.h (class font): Declare them.
13761 (FONT_COMMAND_HANDLER): New typedef.
13762 * ps/ps.c (handle_unknown_desc_command): New function.
13763 (main): Set bflag if we had a -b option. Call
13764 font::set_unknown_desc_command_handler.
13765 (broken.h): Don't include.
13766 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
13768 * ps/devps/Makefile: Add `broken' command to DESC file using
13769 BROKEN_SPOOLER_FLAGS.
13771 * macros/tmac.e ([, ]): Add as synonyms for { and }.
13773 * macros/tmac.e ($p): Only exdent if \$3 > 0.
13775 * macros/tmac.e (@R, @S): New macros.
13776 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
13777 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
13778 Declare $H, $[0-9], .. macros with @S.
13779 Declare |0, |1, |2, |3 strings with @S.
13781 * macros/tmac.e (@S): Rename to @U.
13783 * macros/tmac.e (@z): Define @b and bp as empty instead of
13786 * macros/tmac.e (@m): Deleted.
13787 (@h): Don't call @m.
13788 (@z): Don't set @m trap.
13790 * macros/tmac.e ($h, $f): Define |z as empty string.
13792 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
13795 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
13797 ()f): Likewise for * register.
13799 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
13800 argument is missing, don't change $R. Call sr with three
13801 arguments when initializing.
13803 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
13805 * macros/tmac.e (sr): New macro.
13806 Initialize $r and $R using sr.
13808 * macros/tmac.e (,): Delete \*(#[.
13810 * troff/env.c (set_tabs): Read the tab type even if the position
13811 is bad. Allow the position of the first tab stop to be negative.
13813 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
13815 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
13817 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
13818 rather than -DPATHCONF_MISSING.
13819 * Makefile: Get rid of PATHCONF_MISSING.
13821 * refer/map.c: New file.
13822 * refer/index.c: Interface to mmap through map.c. Rename map_size
13824 * refer/Makefile: Handle map.c.
13825 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
13827 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
13829 * Makefile: RANLIB should be `true' if there is no ranlib.
13830 * lib/Makefile (libgroff.a): Simplify.
13831 * driver/Makefile (libdriver.a): Simplify.
13833 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
13834 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
13837 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
13839 * troff/env.c (compare_ranges): Declare as extern "C".
13841 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
13843 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
13845 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
13847 * pic/troff.c (troff_output::text): Merge in grops_output::text,
13848 but conditionalize use of \X based on \*(.T.
13849 (grops_output::*): Deleted.
13850 * pic/output.h: Delete declaration of make_grops_output.
13851 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
13852 by default. -n sets it to 0.
13853 (usage): Corresponding changes.
13854 * groff.c (main): Don't pass -x or -p to pic.
13855 * groff.sh: Likewise.
13857 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
13860 * ps/devps/afmtodit: Change calculation of asc_boundary and
13861 desc_boundary. Make these bounds inclusive.
13862 * ps/devps: Regenerate font files.
13864 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
13866 * macros/tmac.latin1: New file.
13867 * macros/tmac.tty-char: Use tmac.latin1.
13868 (tmac.tty-tr): Deleted.
13869 * macros/Makefile: Install tmac.latin1.
13870 * macros/tmac.dvi: Use tmac.latin1.
13871 * macros/troffrc: Translate \[char160] onto no-break space here.
13872 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
13874 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
13876 * macros/tmac.Xps: Use `do' request.
13878 * macros/tmac.ps: Use `do' request.
13880 * macros/tmac.e (@C): Use `do' request.
13882 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
13883 * macros/Makefile: Install tmac.X*.
13885 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
13886 * tty/Makefile: Don't install tmac.tty*.
13887 * macros/Makefile: Install tmac.tty*.
13889 * dvi/tmac.dvi: Move to macros.
13890 * dvi/Makefile: Don't install tmac.dvi.
13891 * macros/Makefile: Install tmac.dvi.
13893 * ps/tmac.ps*: Move to macros.
13894 * ps/Makefile: Don't install tmac.ps*.
13895 * macros/Makefile: Install tmac.ps*.
13897 * eqn/box.c: Provide draw_lines parameter corresponding to -D
13899 * macros/eqnrc: Set draw_lines parameter based on device.
13900 * groff.c: Don't pass -D flag to eqn.
13901 * groff.sh: Likewise.
13902 * eqn/main.c: Warn about use of -D.
13904 * troff/input.c (process_startup_file): New function.
13905 (main): Call process_startup_file().
13906 * macros/troffrc: New file.
13907 * macros/Makefile: Install troffrc.
13908 * groff.c (main): Don't pass extra -m option to troff. For a
13909 pseudo device pass the name of the pseudo device to troff using
13911 * groff.sh: Likewise.
13912 * groff.c (possible_command::prepend_arg): Deleted.
13914 * troff/input.c (do_request): New function.
13915 (init_input_requests): Bind "do" to do_request.
13917 * eqn/main.c (main): Instead of loading eqnchar from device directory,
13918 load eqnrc from macro directory.
13919 * macros/eqnrc: New file.
13920 * macros/Makefile: Install eqnrc.
13921 * ps/devps/eqnchar: Deleted.
13922 * ps/devps/Makefile: Don't install eqnchar.
13923 * dvi/devdvi/eqnchar: Deleted.
13924 * dvi/devdvi/Makefile: Don't install eqnchar.
13925 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
13928 * lib/device.[ch]: New files.
13929 * lib/font.h (font::set_device_name, font::get_device_name):
13931 * lib/fontfile.c: Use device.h.
13932 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
13933 * troff/input.c: Delete definition of `device'.
13934 (main): Don't initialize device.
13935 * troff/troff.h: Include device.h rather than declaring device.
13936 * troff/Makefile: No need to handle DEVICE.
13937 * driver/input.c: Include device.h. Don't use
13938 font::{set,get}_device_name.
13939 * groff.c, Makefile: Rename device.h to config.h.
13940 * groff.c: Use library device variable.
13941 * eqn/main.c: Use library device variable.
13942 * eqn/Makefile: No need to handle DEVICE.
13944 * lib/searchpath.[ch]: New files.
13945 * lib/Makefile: Handle searchpath.[ch].
13946 * troff/input.c (open_file, init_dirs): Deleted.
13947 (macro_dirs): Deleted.
13948 (open_mac_file, macro_source): Use class search_path.
13949 (add_string, struct string_list): Move definition.
13950 (main): Change -M option to use macro_path. Delete call to
13952 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
13953 Rewrite to use class search_path.
13954 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
13955 * lib/Makefile: fontfile.c depends on searchpath.h.
13956 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
13958 * lib/macropath.[ch]: New files.
13959 * troff/Makefile: No need to handle MACROPATH.
13961 * troff/input.c: Delete DUMP code.
13962 * lib/fontfile.c, lib/font.h: Delete
13963 font::forget_command_line_font_dirs.
13965 * troff/input.c (push_token): New function.
13966 (handle_first_page_transition): Use push_token().
13967 (process_input_stack): Change handling of a space at the beginning
13970 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
13972 * troff/input.c (font_dirs): Delete unused variable.
13974 * eqn/lex.c (do_set): Correct error messages.
13976 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
13978 * troff/input.c (do_define_string): Allow the string name to be
13979 followed immediately by a tab.
13980 (define_character): Likewise.
13982 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
13984 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
13987 * troff/input.c (input_iterator::is_file): New virtual function.
13988 (file_iterator::is_file): New function.
13989 (input_stack::end_file): New function.
13990 (input_stack::next_file): Handle the situation where there is no
13991 file on the input stack correctly. Avoid making two passes over
13993 (next_file): Make the filename optional; in this case call
13994 input_stack::end_file().
13996 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
13998 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
13999 produce a real _ charater when the current font is CW and _
14002 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
14003 expression to work around gcc 2.2 bug.
14005 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
14007 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
14009 * troff/env.c (environment::add_padding): New function.
14010 (environment::add_char): Use add_padding().
14011 (environment::space): Likewise.
14012 (environment::wrap_up_field): Add some padding if there is none
14013 and there's no current tab.
14014 * troff/env.h: Declare environment::add_padding.
14016 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
14018 * pic/pic.y: undef fmod and rand before declaring them.
14020 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
14022 * troff/input.c (main): If the DESC file specifies a font name of
14023 0, then leave the corresponding font position empty.
14025 * nroff.sh: New file.
14026 * Makefile (install.nobin): Install nroff.sh.
14028 * tty/devlatin1/R.proto: Add ao as synonym for de.
14029 * tty/tmac.tty-char: Define ao as o.
14031 * tty/dev{ascii,latin1}/R.proto: Add aq.
14032 * tty/tmac.tty-char: Delete definition of aq.
14034 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
14036 * troff/input.c (init_charset_table): Don't translate 0240.
14037 * ps/tmac.ps: Translate char160 to space.
14038 * dvi/tmac.dvi: Likewise.
14039 * tty/tmac.tty: Likewise.
14041 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
14043 * dvi/tmac.dvi: Add support for all Latin-1 characters.
14045 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
14046 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
14049 * tty/tmac.tty-char: Add \(ah.
14051 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
14052 No need to define \(FM and \(!/. Conditionalize all character
14055 * ps/devps/lgreekmap: Add +h, +f, +p.
14057 * ps/tmac.psnew: New file.
14058 * ps/Makefile: Install tmac.psnew.
14060 * troff/input.c (charinfo_to_node_list): Don't ever interpret
14061 character definitions in compatible mode.
14063 * troff/input.c (remove_character): New function.
14064 (init_input_requests): Bind remove_character to "rchar".
14066 * ps/tmac.psold: New file.
14067 * ps/Makefile: Install tmac.psold.
14068 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
14069 characters into tmac.psold. Make these definitions unconditional.
14071 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
14073 * ps/tmac.ps: Don't define \('c and \('C.
14075 * ps/devps/textmap: Move Greek characters to...
14076 * ps/devps/symbolchars:
14078 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
14080 * ps/devps/text.enc: Add quotesingle.
14081 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
14082 * tty/tmac.tty-char: Likewise.
14083 * dvi/devdvi/texmi.map: Add +h, +f, +p.
14084 * dvi/devdvi/texi.map: Add Fn.
14085 * dvi/devdvi/msam.map: Add lz.
14086 * dvi/tmac.dvi: Handle Bq, bq, aq.
14088 * pic/lex.c (get_token): Recognize 'th.
14089 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
14091 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
14093 * ps/devps/textmap: Move di, mu, +- to...
14094 * ps/devps/symbolchars:
14096 * macros/tmac.s (@XS): Don't call par@reset or fi.
14097 (XA): Call LP. Turn off adjustment. Reduce line length.
14099 * macros/tmac.s: Initially alias XS to LP.
14100 (XS): Rename to @XS.
14101 (cov*ab-init): Alias XS to @XS.
14103 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
14105 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
14106 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
14107 (token::is_size, token::changes_env): Deleted.
14108 * troff/number.c (parse_term): No need to process \s explicitly.
14109 Call tok.next() only after scale indicator has been processed.
14110 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
14112 (token::next): Handle \s, \f, \S, \H immediately rather than
14113 returning them as tokens.
14114 (token::operator==, token::description, token::add_to_node_list,
14115 token::process): Remove handling of deleted tokens.
14117 * troff/env.c (environment::add_char): When adding padding
14118 indicator character, call start_line() if necessary.
14120 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
14122 * ps/devps/afmtodit: Don't output 0 kerns.
14124 * ps/devps/afmtodit: Remove directory from name of encoding in
14125 font description file.
14127 * ps/devps/afmtodit: Improve error messages.
14129 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
14131 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
14132 * ps/devps/FontMakefile: Deleted.
14133 * ps/devps/afmname: New file.
14135 * ps/devps/symbol.sed: New file.
14136 * ps/devps/symbol.diff: Deleted.
14137 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
14138 Generate zapfdr.afm from zapfd.afm.
14140 * tty/tmac.tty (tty-char): Prefix definition with ".
14142 * macros/tmac.an (TP): Don't start a diversion if one has already
14145 * tty/tmac.tty-char: Add Latin-1 characters.
14147 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
14149 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
14151 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
14152 Move declaration of struct horizontal_span.
14154 * tbl/table.c (table::table): Initialize span_list.
14155 (table::~table): Delete span_list.
14157 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
14159 * ps/devps/Makefile: Avoid dependency on GNU make.
14161 * ps/tmac.ps: Check that character does not already exist before
14164 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
14165 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
14166 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
14169 * tty/tmac.tty-char: New file.
14170 * tty/Makefile: Install tmac.tty-char.
14171 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
14174 * tty/tmac.tty: Fix definition of \(34.
14176 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
14177 bracket-drawing characters onto |. Add *o.
14179 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
14180 only if current_field.
14182 * troff/dictionary.c (dictionary::lookup): Free old_table after
14185 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
14187 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
14188 whose glyphs are identical to glyphs of some Roman character.
14190 * tty/devlatin1/R.proto (bu): Deleted.
14191 * tty/devascii/R.proto (bu): Deleted.
14192 * tty/tmac.tty: Add definition of \(bu.
14194 * eqn/main.c (do_file): Pass FILE as argument.
14195 (main): Automatically load eqnchar. New options -F and -n.
14196 Pass do_file an opened FILE.
14197 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
14198 No need to include font.h.
14199 * groff.sh: Likewise. Don't need to use - for standard input.
14200 Prefix files with -- if first file starts with -.
14202 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
14204 * troff/env.c (environment::possibly_break_line): Don't set line
14205 to 0 across call to output_line(). Don't call output_line() until
14206 after discarding nodes after break.
14208 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
14210 * request.h (macro::empty): Declare it.
14211 * input.c (macro::empty): New method.
14212 (interpolate_macro): Don't give a WARN_SPACE if the two-character
14215 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
14217 * troff/env.c (environment::start_field): Decrement space_total
14218 when a space is frozen.
14220 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
14222 * macros/tmac.an (R): Delete macro.
14224 * troff/input.c (get_copy, token::next): Support \# (like \" but
14225 newline is ignored).
14227 * troff/input.c (token::next): Fix error message in 'Y' case.
14229 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
14231 * eqn/delim.c (define_extensible_string): Recognize any prefix of
14234 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
14236 * c++test.c: Include <osfcn.h>.
14238 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
14241 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
14243 * tbl/table.c (table::divide_span): Don't count column separation
14244 if expand was specified.
14246 * tbl/main.c (process_format): Don't ignore width specs in
14247 continued format. Give warning for changing equal widths or
14248 column separation in continued format.
14249 (process_data): Set column separation, minimum width, equal
14250 columns at end of table.
14252 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
14254 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
14255 node::add_discretionary_hyphen): Use soft_hyphen_char.
14256 (set_soft_hyphen_char): New function.
14257 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
14259 * Makefile (c++tested): Give more helpful message if test fails.
14261 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
14263 * troff/input.c (init_charset_table): Translate 0240 to
14264 an unbreakable space.
14266 * troff/token.h (token::hyphen_indicator): New function.
14267 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
14269 * troff/input.c (translate): Allow translation to \%.
14270 * troff/node.c (node::add_char): Handle
14271 TRANSLATE_HYPHEN_INDICATOR.
14272 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
14274 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
14277 * tty/devlatin1/R.proto: \(hy and - should print as 055.
14279 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
14281 * groff.c (run_commands): If the last command gets a SIGPIPE send
14282 a SIGPIPE to all children than haven't yet terminated. When
14283 command terminates, set pid field to -1.
14285 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
14287 * groff.c (main): Pass an appropriate -filename option to gxditview.
14289 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
14291 * Makefile.bd (install): Remove existing program before copying.
14293 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
14294 programs which have Unix counterparts to be installed with
14295 user-specified prefix.
14297 * troff/input.c (exit_troff): Don't check if exit_started.
14298 (exit_request): Don't call exit_troff if exit_started.
14300 * Makefile.bd (install.mm): Rename to install.dwbmm.
14302 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
14304 * driver/input.c (do_file): Add missing break for '#' case.
14306 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
14308 * troff/input.c (input_stack::clear): Clear past any boundaries and
14309 then add the boundaries back.
14311 * troff/input.c (exit_troff): Return immediately if already
14314 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
14316 (pg*end-page): If the text has ended and there are no more
14317 footnotes or keeps, exit.
14319 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
14321 * troff/input.c (init_charset_table): Make \(rq transparent by
14324 * macros/tmac.an: Define lq and rq strings.
14326 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
14328 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
14330 * troff/env.c (environment::final_break): New function.
14331 (environment::newline): Set prev_line_interrupted to 2 if
14333 * troff/env.h: Declare environment::final_break.
14334 * troff/input.c (exit_troff): Call environment::final_break()
14335 instead of environment::do_break().
14337 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
14338 doesn't already exist.
14339 * macros/man.local: New file.
14340 * macros/tmac.an: Load man.local.
14341 * macros/man.ultrix: New file.
14343 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
14345 * troff/input.c (exit_groff): Rename to...
14346 (exit_troff): New function.
14348 * troff/div.c (exit_started, done_end_macro,
14349 seen_last_page_ejector): New global variables.
14350 (began_page_in_end_macro): New static variable.
14351 (exit_flag): Deleted.
14352 (top_level_diversion::top_level_diversion): Initialize
14354 (top_level_diversion): More elaborate test for whether
14355 cleanup_and_exit() should be called.
14356 Set began_page_in_end_macro if the end macro isn't yet finished.
14357 * troff/div.h (top_level_diversion::last_page_count): New data
14359 (top_level_diversion::set_last_page): New function.
14360 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
14361 * troff/env.c (do_break): Zero prev_line_interrupted.
14362 * troff/input.c (exit_flag): Delete declaration.
14363 (LAST_PAGE_EJECTOR): New magic cookie.
14364 (token::next): Handle LAST_PAGE_EJECTOR.
14365 (exit_groff): Set exit_started and done_end_macro instead of
14366 exit_flag. Call top_level_diversion::set_last_page. Push a
14367 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
14368 another ejection after setting seen_last_page_ejector.
14370 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
14372 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
14374 * macros/tmac.e (TH): Make sure there's room for the initial
14377 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
14378 Set FVS in points rather than units.
14380 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
14382 * troff/div.c (top_level_diversion::add_trap): Don't consider the
14383 position of empty slots.
14385 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
14387 * ps/devps/S: Fix height and depth of parenrightex.
14388 * ps/devps/symbol.diff: Regenerate.
14390 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
14392 * tmac.e (u): Do underlining as in -mgs.
14394 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
14396 * tty/tty.c (tty_printer::end_page): If overstriking is
14397 suppressed, still turn overstruck horizontal and vertical lines
14400 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
14403 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
14405 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
14407 * Version 1.05 released.
14409 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
14411 * tty/tty.c: Instead of keeping an array of glyphs and then
14412 sorting it, keep a ordered linked list of glyphs for each line.
14414 * driver/driver.h: Include stddef.h.
14416 * tty/tty.c (compare_glyph):
14417 * refer/refer.c (rcompare):
14418 * troff/env.c (compare_ranges): Arguments of qsort comparison
14419 function should be const void *.
14421 * troff/number.c (parse_term):
14422 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
14425 * refer/label.y (consider_authors): Don't access variables
14426 constructed under a condition outside that condition: put braces
14427 round for statement containing declaration; redeclare use of same
14430 * pic/pic.y (text_expr): Delete production that allows
14431 parenthesised text_expr.
14432 (expr): Allow a conditional_expr to appear in parentheses.
14433 (conditional_expr): Rename to any_expr.
14435 * mm: Install new version 1.01 from jh.
14437 * lib/font.c (font::get_width): Cache scaled widths.
14438 (font::font): Initialize widths_cache.
14439 (font::~font): Destroy widths_cache.
14440 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
14442 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
14444 * c++test.c, c++test.ref: New files.
14445 * Makefile: Check that the C++ compiler works.
14447 * ps/tmac.pspic (PSPIC): Do a break.
14449 * ps/tmac.ps: Move definition of PSPIC into...
14450 * ps/tmac.pspic: New file.
14451 (PSPIC): Draw box around picture, but make it invisible to grops.
14452 * ps/tmac.ps: Load tmac.pspic.
14453 * ps/Makefile: Install tmac.pspic.
14455 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
14457 * lib/font.c (scale_round): If n is negative,
14458 subtract .5 before truncating floating point result.
14460 * lib/fontfile.c: Include <errno.h>.
14462 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
14464 * driver/input.c (get_char): Inline. Don't update current_lineno.
14465 Change callers to up date current_lineno if necessary.
14466 Use get_char() instead of getc(current_file).
14468 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
14470 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
14472 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
14474 * tty/tty.c (tmac.tty): Define \(rg as (R).
14476 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
14478 * lib/lib.h: New define a_delete.
14479 * Use a_delete instead of delete when deleting an array of objects
14480 without destructors.
14482 * lib/lib.h: Rename adelete to ad_delete.
14483 * Change uses of adelete.
14485 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
14487 * eqn/eqn.y: Include lib.h.
14489 * troff/node.c (grow_font_table): Delete old_font_table.
14491 * mm: Install new version from jh.
14493 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
14495 * tbl/table.h (format_type): Make global instead of local to class
14496 entry_format. Prefix enumerators with FORMAT_.
14497 * tbl/table.c, tbl/main.c: Corresponding changes.
14498 * refer/token.h (token_type): Make global. Prefix enumerators
14500 * refer/token.[ch]: Corresponding changes.
14501 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
14503 * troff/div.c (node::set_vertical_size): Don't name argument.
14505 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
14507 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
14508 * lib/lib.h: Define adelete accordingly.
14509 * pic/object.c (graphic_object::graphic_object):
14510 * tbl/main.c (format::~format):
14511 * tbl/table.c (table::~table):
14512 * refer/ref.c (reference::~reference, reference::merge,
14513 reference::insert_field, reference::delete_field): Use adelete.
14515 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
14517 * tbl/table.h: Corresponding changes.
14519 * common.c (common_output::dashed_arc, common_output::dotted_arc):
14520 Ensure total_angle is positive.
14522 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
14524 * refer/ref.c (reference::merge, reference::insert_field,
14525 reference::delete_field): Avoid delete[0].
14527 * refer/token.c (init_special_chars): Move calls to cmupper
14528 outside calls to init_two_char_letter to work around bug in gcc
14531 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
14533 * lib/new.c (operator new): Use __builtin_new for g++.
14535 * pic/object.c (graphic_object::~graphic_object): Don't use
14538 * pic/object.c (output::compute_scale): Initialize max_width and
14541 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
14543 * troff/input.c (write_request): Call fflush.
14545 * troff/node.h (class composite_node): Move declaration to node.c
14546 * troff/input.c (charinfo_to_node): Rename to ...
14547 (charinfo_to_node_list): Return node list rather than composite
14549 * troff/node.c (make_composite_node): New function.
14550 (make_node, add_char): Call make_composite_node instead of
14552 (class composite_node): Add a tfont * member. Delete font_size
14554 (composite_node::composite_node, composite_node::copy,
14555 composite_node::size): Corresponding changes.
14556 (composite_node::tprint): Provide constant spacing, emboldening
14557 and track kerning as specified in tfont.
14558 (composite_node::width): Change width calculation accordingly.
14559 * troff/env.h (environment::composite): New member.
14560 (environment::is_composite, environment::set_composite): New
14562 * troff/env.c (environment::environment): Initialize composite.
14563 * troff/input.c (charinfo_to_node): Call
14564 environment::set_composite.
14565 * troff/node.c (make_composite_node, make_glyph_node): Use the
14566 plain version of the tfont if the environment is composite.
14568 * troff/node.c (font_info::get_space_width): Additional argument
14569 giving space_size. Handle constant space correctly. Scale by
14570 space_size unless constant spaced.
14571 (env_sentence_space_width): New function.
14572 * troff/node.h: Declare it.
14573 * troff/env.h (environment::get_space_size,
14574 environment::get_sentence_space_size,
14575 environment::get_narrow_space_width,
14576 environment::get_half_narrow_space_width): Make inline.
14577 (environment::get_space_width): Make inline. Just call
14579 * troff/env.c: Delete definitions for funtions made inline.
14580 (environment::space_newline, environment::space): Use
14581 env_sentence_space_width(). Don't scale by space_size.
14582 * troff/node.h: Move declarations of env*space_width() functions
14585 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
14587 * macros/tmac.s (PS): Don't try to set negative indent.
14589 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
14591 * pic/pic.y: Fix min function.
14593 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
14595 * man/mdate.sh: Clear LANGUAGE.
14597 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
14599 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
14600 * pic/lex.c: New COMMAND keyword.
14601 * pic/pic.y (print_args, print_arg): New rules.
14602 (placeless_element): Use print_args for PRINT.
14603 New COMMAND element.
14605 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
14607 * troff/input.c (terminal): Handle missing argument correctly.
14609 * pic/pic.y (text_expr): New rule.
14611 * pic/pic.y: Implement := operator.
14613 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
14615 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
14618 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
14620 * ps/devps/dingbatsrmap: Include this in the distribution.
14622 * macros/tmac.doc: Replace with new version from 2nd Networking
14623 Release. Fix loading of doc-* files.
14624 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
14625 * macros/tmac.doc.old: New file. Apply fixes that had been
14626 applied to old tmac.doc.
14627 * macros/tmac.andoc: Check that we're running under groff.
14628 * macros/Makefile: Rework.
14630 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
14632 * tbl/table.h (format_type):
14633 * refer/token.h (token_type): If NESTED_TYPES is defined, use
14634 typedef to make these types visible at file scope.
14635 * Makefile: Add NESTED_TYPES configuration option.
14637 * troff/div.c (mark): At the top level use the value of
14638 nl_reg_contents rather than the current vertical position.
14640 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
14642 * tty/tty.c: Implement \D for horizontal or vertical lines.
14643 (tty_printer::set_char): Use vec_used+2 as serial number.
14644 Don't allow size of vector to exceed USHRT_MAX-2.
14645 Split off part into...
14646 (tty_printer::add_char): New function.
14647 (tty_printer::draw): New function.
14648 (compare_glyph): Handle equal serial numbers.
14649 (tty_printer::end_page): Handle overstruck characters from \D.
14650 (main, usage): Implement -d option.
14652 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
14654 * tbl/main.c (process_format):
14655 * eqn/text.c (split_text):
14656 * troff/input.c (token::next): Use inner block for declarations
14657 with initializers in switch statement.
14659 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
14661 * pic/common.c (common_output::dash_line): Cope with zero-length
14664 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
14666 * Version 1.04 released.
14668 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
14670 * macros/tmac.an (TH): Define a macro an-init to define variables
14671 based on command line arguments.
14672 (an-header): Call it.
14674 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
14676 * Makefile (install.mm): Rename to install.dwbmm.
14678 * Makefile: Integrate mm.
14679 * mm: New directory.
14681 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
14683 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
14686 * pic/troff.c (troff_output::simple_spline,
14687 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
14688 shadowing parameter.
14690 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
14692 * lib/ptable.h: Add explicit casts when converting from unsigned
14695 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
14696 * dvi/devdvi/Makefile: Install SA, SB.
14698 * refer/indxbib.c: Add declaration of mktemp.
14700 * refer/lookbib.c: Add declaration of isatty.
14702 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
14704 * pic/lex.c (interpolate_macro_with_args): While collecting
14705 arguments, keep track of whether we're in a string.
14707 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
14709 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
14710 down with \v, so as to avoid problems with top of page trap
14711 setting no space mode.
14713 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
14715 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
14717 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
14719 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
14720 Improve error message.
14722 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
14724 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
14727 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
14729 * groff.c (possible_command::execp): Always use _exit() after a
14732 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
14733 NO_SYS_WAIT_H configuration options.
14734 * groff.c: Use these options. Use POSIX-style macros to extract
14735 fields from the status returned by wait().
14737 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
14739 * tbl/table.c (table::compute_separation_factor): Allow the
14740 separation factor to drop to 0.
14742 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
14744 * refer/search.c: Include <errno.h>.
14746 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
14748 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
14750 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
14753 * pic/lex.c (input_stack::bol): Move definition out of class body.
14755 * pic/main.c: On MSDOS munge argv[0].
14757 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
14759 * lib/ptable.c (hash_string): Use unsigned long rather than
14761 (next_ptable_size): Use unsigned rather than int. Give an error
14762 message if we've hit the largest table size.
14763 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
14766 * pic/object.h (object_spec): Make flags unsigned long. Declare
14767 flags as const unisgned long rather than as enums.
14769 * pic/output.c: Deleted.
14771 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
14773 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
14774 Add additional argument.
14775 (line_entry::note_double_vrule_on_{left,right}): Set value of
14776 douvle_vrule_on_{right,left} flag according to argument.
14777 (simple_line_entry::simple_print,
14778 simple_line_entry::double_line_print): If adjacent to double vrule
14779 on a corner extend rather than shorten the rule by half the double
14782 * troff/number.c (parse_term): In checking for overflow, handle the
14783 case where the current horizontal position is negative.
14785 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
14787 * pic/object.c (draw_arrow): Check for object having zero length.
14789 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
14791 * eqn/main.c (do_file): Split off inline equation handling into...
14792 (inline_equation): New function. Search for starting delimiter
14794 (delim_search): New function. Don't recognize a delimiter that
14795 occurs in the name of an escape sequence, number register, string
14798 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
14800 * eqn/delim.c (delim_box::compute_metrics): Don't call
14801 define_extensible_string if left is 0.
14802 (delim_box::output): Don't print the left delimiter if left is 0.
14803 (delim_box::debug_print): Check for left == 0 before calling printf.
14805 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
14807 * troff/Makefile (majorminor.c): Include only digits in
14810 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
14812 * refer/dirnamemax.c: new file.
14813 * refer/genlimits.c: Deleted.
14814 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
14815 Don't check path length.
14816 * refer/Makefile: Add dir_name_max.o; delete genlimits.
14817 * Makefile: Add PATHCONF_MISSING option.
14819 * refer/indxbib.c (get_cwd): New function.
14820 (main): Use get_cwd().
14821 * lib/getcwd.c: New file.
14822 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
14823 GETCWD in SUBFLAGS.
14824 * lib/Makefile: Compile getcwd.o.
14826 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
14829 * refer/indxbib.c (main): Check success of mktemp.
14831 * lib/tmpfile.c: New file.
14832 * lib/Makefile: Add tmpfile.c.
14833 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
14834 * ps/ps.h: Delete declaration of mktemp().
14835 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
14836 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
14837 * driver/driver.h: No need now to include errno.h.
14839 * everywhere: Set errno to 0 before calling fopen().
14841 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
14842 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
14843 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
14845 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
14847 * troff/env.h (translate_space_to_dummy): Declare it.
14848 * troff/env.c (environment::space_newline, environment::space):
14849 If translate_space_to_dummy is set then make the width of spaces 0.
14850 * troff/input.c (translate): If the second character of a
14851 translation is a space, translate to unbreakable space. If the
14852 first character is a space, set or clear translate_space_to_dummy
14853 according to whether the second character is \&. Weird!
14855 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
14857 * groff.c (run_commands): Don't use non-zero exit code because a
14858 command gets SIGPIPE.
14860 * groff.c, groff.sh: Use -mXps with -TXps.
14862 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
14863 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
14864 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
14865 (ps_printer::special): New specials invis and endinvis.
14866 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
14867 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
14868 (ps_printer::end_page): Check that invis_count == 0.
14869 (ps_printer::invis_count): New member.
14870 (ps_printer::ps_printer): Initialize invis_count to 0.
14872 * troff/env.c (environment::hyphenate_line): Hyphenation
14873 indicator at beginning of word inhibits splitting after -, \(em
14876 * pic/pic.y (element): Allow another element to follow } without
14877 any intervening separator.
14879 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
14881 * pic/lex.c (get_delimited): Allow tabs before delimiter.
14883 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
14885 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
14886 declaration of wait() in header files.
14887 * Makefile: Get rid of -DHAVE_UNION_WAIT.
14889 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
14891 * lib/lib.h: Declare return type of strerror as char *.
14893 * man/Makefile: Add g flag to sed substitutions.
14894 * Makefile (shgroff, bindist): Likewise.
14896 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
14898 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
14899 * ps/devps/prologue (PBEGIN): Define showpage after pushing
14902 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
14904 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
14907 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
14909 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
14912 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
14914 * troff/input.c (define_number_reg): If currently undefined,
14915 don't define it if the argument is an invalid expression.
14917 * Makefile: Ignore return value of `if' commands without `else'
14920 * Makefile: Split up CPPDEFINES into a series of separate
14921 configuration options.
14923 * troff/input.c (init_registers): Use time_t instead of long
14924 unless LONG_FOR_TIME_T is defined. Use returned result rather
14925 than passing pointer.
14926 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
14928 * lib/Makefile (fontpath.h): Use gendef.
14930 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
14932 * troff/input.c (input_iterator::shift): Delete argument name.
14933 * troff/node.c (suppress_output_file::really_begin_page,
14934 suppress_output_file::really_transparent_char, node::ascii_print,
14935 node::tprint): Delete names of unused arguments.
14937 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
14939 * refer/label.y (string): Pass $4 to command_error.
14941 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
14943 * Version 1.03 released.
14945 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
14947 * Makefile: Pass definition of SHELL in SUBFLAGS.
14949 * gendef: New file.
14950 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
14951 ps/Makefile: Use gendef to construct header files that are
14952 constructed from the Makefile.
14954 * macros/Makefile: make all should build stripped version of tmac.e.
14956 * refer/Makefile (clean): Remove y.output.
14958 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
14960 * ps/pfbtops.c (main): Add -v option which prints out a version
14962 * ps/Makefile (pfbtops): Link with libgroff.a.
14964 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
14966 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
14967 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
14969 * refer/lkbib.c (main): Always terminate reference with blank
14971 * refer/lookbib.c (main): Likewise.
14973 * refer/linear.c (file_buffer::load): Check that the file is not a
14976 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
14977 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
14978 Delete second inclusion of <sys/param.h>.
14980 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
14982 * troff/token.h (token::special): Deleted.
14984 * tbl/main.c (process_format): Rework so that opt->tab_char is
14985 recognized only when appropriate.
14987 * ps/Makefile (clean): Remove pfbtops.
14989 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
14991 * lib/font.c (text_file::next): Don't return if we have got a
14994 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
14996 * refer/refer.c (store_reference): Get hash code from old_table[i]
14997 when rehashing the table.
14999 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
15001 * eqn/box.c (box::top_level): Save size and prev size using \R and
15002 restore it afterwards. Set the size to the size at the beginning
15004 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
15005 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
15007 * refer/Makefile (limits.h): Use ./genlimits.
15009 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
15011 * refer/index.c: Delete declarations of stat() and fstat().
15013 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
15015 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
15017 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
15019 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
15021 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
15023 * troff/input.c (token::get_char): Handle \e.
15025 * refer/linear.c: Delete declarations of fstat() and stat().
15027 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
15029 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
15030 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
15032 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
15034 * troff/input.c (do_define_macro): Improve error handling for end
15035 of file while defining macro.
15037 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
15039 * eqn/box.h: Fix declaration of set_gsize.
15040 * eqn/box.c (set_gsize): Make argument const char *.
15041 (gsize): Declare as char *.
15042 * eqn/main.c (main): Don't convert gsize to int.
15043 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
15045 * Version 1.02 released.
15047 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
15049 * macros/tmac.andoc: New file.
15050 * macros/Makefile: Install tmac.andoc.
15052 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
15053 operator new and delete on OP_DELETE_BROKEN not being defined.
15054 * Makefile: Mention OP_DELETE_BROKEN.
15056 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
15058 * Makefile (bindist): Pass SUBFLAGS.
15060 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
15062 * Makefile, groff.c: Pass definitions to groff.c via device.h.
15064 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
15067 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
15069 * ps/ps.h, ps/psrm.c: Make comment_table and
15070 header_comment_table local to resource_manager::process_file.
15072 * groff.sh: With -TXps pass -printCommand option to gxditview.
15074 * groff.c (possible_command::print): Implement using
15075 append_arg_to_string.
15077 * xditview: Merge in new implementation with own ChangeLog.
15079 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
15081 * groff.c (main): Implement PRINT_OPTION.
15082 (append_arg_to_string): New command.
15083 (device_table): Set PRINT_OPTION flag for Xps.
15085 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
15087 * troff/groff.h: Rename to troff.h.
15089 * pic/lex.c (lookup_keyword, docmp): New functions.
15090 (get_token): Use new lookup_keyword.
15091 Don't include key.h.
15092 * pic/key.[ch], pic/pic.gperf: Deleted.
15093 * pic/Makefile: Remove gperf stuff.
15095 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
15097 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
15099 * troff/Makefile, troff/node.c: Move definition of
15100 STORE_WIDTH into node.c.
15102 * etc/grog.pl, etc/grog.sh: Support -mdoc.
15104 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
15106 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
15107 dvi/devdvi/texb.map: Add lq and rq.
15108 dvi/devdvi: Regenerate fonts.
15109 * ps/devps/textmap: Add lq and rq.
15110 * ps/devps: Regenerate fonts.
15111 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
15112 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
15114 * pic/object.c (position_rectangle): When checking radius
15115 cope with possiblity that width or height is negative.
15116 (box_object::box_object): Have separate xrad and yrad with
15117 signs matching signs of dim components.
15118 (box_object::{north,south}_{east,west}): Use xrad and yrad.
15119 (box_object::print): With rounded boxes use absolute values
15120 for dim and rad arguments.
15122 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
15125 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
15127 * various files: Add explicit destructors to keep Saber CC +d
15130 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
15132 * eqn/box.c (box::top_level): Restore fonts correctly after
15133 font changes in line containing inline equation. Also
15134 restore previous font as well as current font.
15135 * eqn/pbox.h: Define necessary string and register names.
15137 * troff/input.c (token::next): Case 'R' calls do_register.
15138 (do_register): New function.
15140 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
15142 * groff.c, groff.sh: Support Xps device. Allow each device
15143 to have a pseudo_name and a real_name.
15145 * groff.c (run_commands): Don't print `Broken pipe' messages.
15147 * ps/pfbtops.c: New file.
15148 * ps/Makefile: Add pfbtops.
15150 * troff/number.c (parse_term): Improved error message.
15152 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
15154 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
15156 * Makefile: Integrate refer.
15157 * refer: New directory.
15158 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
15159 man/lkbib.man: New files.
15160 * man/Makefile: Support refer man pages.
15162 * lib/lib.h: Declare is_prime.
15163 * lib/prime.c: New file.
15165 * troff/input.c (macro_source): New function.
15166 (init_input_requests): Bind "mso" to macro_source.
15168 * troff/env.c (environment::possibly_break_line): Maintain
15169 pointer to pointer to node to be split in ndp so as to avoid
15170 using address of freed node.
15172 * troff/env.c (environment::hyphenate_line): Maintain pointer to
15173 pointer to first node to be hyphenated in startp so as to
15174 avoid using address of freed node.
15176 * troff/env.c (class trie, class hyphen_trie): Make the
15177 elements of the trie be of type char not unsigned char.
15178 Declare arguments to be const char* instead of unsigned char *.
15180 * troff/env.c (hyphenate): Initialize hbuf[0].
15182 * troff/input.c (set_string): Declare p to be char * and cast
15183 *p to unsigned char when necessary.
15185 * troff/input.c (do_define_macro): Declare s to be const
15186 char*. Cast element to unisgned char when necessary, Declare
15187 d to be an int. Handle EOF better.
15189 * troff/Makefile, troff/input.c: Different scheme for passing
15190 definitions of MACROPATH, HYPHENFILE and DEVICE.
15192 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
15194 * tty/devascii/R.proto: Delete entry for em.
15195 * tty/devlatin1/R.proto: Likewise.
15197 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
15199 * troff/input.c (translate): Stop when we get a space. Treat eof
15202 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
15204 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
15206 * tbl/main.c (process_format): A font name following a `f'
15207 modifier that starts with a digit can be only one character long.
15208 Also deal with EOF on the second character of the font name.
15210 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
15212 * troff/input.c (token::next): Turn \~ into an
15213 unbreakable_space_node.
15214 * troff/node.c (unbreakable_space_node): New class.
15215 * troff/node.h: Declare it.
15217 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
15219 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
15220 it's >= 0, before outputting it as a single byte.
15222 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
15224 * lib/font.c: Make font_char_metric::code an int.
15225 (font::get_code): Change return type to int.
15226 (font::load): Allow code to be arbitrary integer.
15227 * lib/font.h (font::get_code): Change return type to int.
15228 (font::number_to_index): Change argument type to int.
15229 * troff/input.c (token::next): In case 'N', allow any value.
15230 Store value in token::val.
15231 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
15232 (token::get_char, token::add_to_node_list, token::process): Get
15234 (charinfo::set_number): Change argument to int.
15235 (charinfo::get_number): Require that NUMBERED flag be set.
15236 (get_charinfo_by_number): Store numbered characters not between 0
15237 and 255 in a dictionary.
15238 * troff/charinfo.h (get_charinfo_by_number): Change argument type
15240 (charinfo::number): Change type to int.
15241 (charinfo::set_number): Change type of set_number to int.
15242 * troff/node.c (troff_output_file::put_char_width,
15243 troff_output_file::put_char): Test whether character is numbered
15244 using charinfo::numbered().
15245 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
15247 * lib/nametoindex.c: New implementation to cope with arbitrary
15250 * troff/input.c (token::operator==): Test val for
15251 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
15254 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
15255 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
15257 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
15259 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
15262 * all Makefiles: rm targets of cp and >.
15264 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
15267 * eqn/lex.c (def_table): Add dollar.
15269 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
15271 * troff/input.c (do_width): Push back newline before closing delim
15274 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
15276 * groff.c (possible_command::prepend_arg): New function.
15277 (main): Prepend device -m option.
15278 * groff.sh: Put device -m options before command-line options.
15280 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
15282 * macros/tmac.an (IP): Quote argument to TP.
15284 * ps/ps.c (main): New option -b, which sets...
15285 (broken_flags): New variable.
15286 (ps_printer::~ps_printer): Incorporate the setup section in the
15287 prolog if (broken_flags & NO_SETUP_SECTION).
15288 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
15289 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
15290 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
15291 ps_printer::print_needed_font_comment,
15292 ps_printer::print_supplied_font_comment,
15293 ps_printer::print_include_font_comments,
15294 ps_printer::lookup_doc_font, ps_printer::download_fonts,
15295 ps_printer::read_download_file, read_document_fonts, add_font,
15296 skip_line, parse_fonts_arg, document_font::document_font,
15297 document_font::~document_font, document_font::download,
15298 ps_output::include_file): Deleted.
15299 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
15300 rather than %!PS-Adobe-2.0. Make calls to
15301 resource_manager::need_font for each font that we used. Replace
15302 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
15303 print_supplied_font_comment, print_needed_font_comment by call to
15304 resource_manager::print_header_comments. Output %%Orientation
15305 comment. Output %%Requirements: numcopies comment if ncopies > 1.
15306 Don't output the prolog directly. Instead call
15307 resource_manager::output_prolog. Only define #copies when ncopies
15308 > 1. Delete calls to print_include_font_comments and
15309 download_fonts. Add call to resource_manager::document_setup.
15310 (ps_printer::do_file): Call resource_manager::import_file instead
15311 of including it ourselves.
15312 (ps_printer::do_import): Likewise. Also don't call
15313 merge_import_fonts. Push userdict on the dictionary stack before
15314 and pop it afterwards.
15315 Move declaration of ps_output into ps.h.
15316 * ps/psrm.c: New file implementing resource_manager class.
15317 * ps/ps.h: New file declaring ps_output and resource_manager
15319 * ps/devps/zapfdr.ps:
15320 * ps/devps/symbolsl.ps:
15321 * ps/devps/prologue: Use 3.0 conventions.
15322 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
15323 Add default definition of BROKEN_SPOOLER_FLAGS.
15324 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
15325 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
15327 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
15329 * etc/grog.pl: New file.
15330 * Makefile (GROG): New variable.
15331 Add GROG to SUBFLAGS.
15332 * etc/Makefile (GROG): New variable.
15333 (install.nobin): Install $(GROG) rather than grog.sh.
15335 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
15337 * eqn/special.c (special_box::compute_metrics): Make the input and
15338 output strings the same. Get the new height and depth from the
15339 predefined height and depth registers. Also make subscript kern
15340 and skew available.
15341 (special_box::compute_subscript_kern, special_box::compute_skew):
15344 * eqn/box.c (pointer_box::compute_skew,
15345 simple_box::compute_metrics, box::top_level)
15346 * eqn/text.c (prime_box::compute_metrics,
15347 prime_box::comput_subscript_kern)
15348 * eqn/limit.c (limit_box::compute_metrics):
15349 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
15350 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
15351 negative numbers in `nr' requests with a leading 0.
15353 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
15355 * eqn/special.c: New file.
15356 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
15357 Add new rule for simple.
15358 * eqn/lex.c (token_table): Add SPECIAL.
15359 * eqn/box.h: Declare make_special_box.
15360 * eqn/Makefile: Add special.[co].
15362 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
15364 * ps/devps/prologue: Possibly set packing to true while defining.
15365 Create grops dictionary here. Initialize local variables before
15366 defining procedures.
15367 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
15368 the dictionary stack. Set strokeadjust and overprint to false if
15369 the relevant operators are defined.
15370 (PEND): New procedure.
15371 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
15372 prologue. Do everything else in the setup section.
15373 (ps_printer::do_import): Just call PBEGIN and PEND around the
15374 picture. Also push userdict before, and pop it afterwards.
15376 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
15378 * troff/node.c (bracket_node::tprint): Brackets were being printed
15381 * macros/tmac.an (SH, SS): Set fill mode.
15383 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
15385 * troff/div.c (top_level_diversion::begin_page): Set
15386 high_water_mark to 0.
15388 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
15390 * man/mdate.sh: New file.
15391 * man/mdate.c: Deleted.
15392 * man/Makefile: Use mdate.sh instead of mdate.
15395 * eqn/lex.c (do_gsize): Supply missing argument to error message.
15397 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
15399 * man/mdate.c: New file.
15400 * man/*.man: Replace modification date by @MDATE@.
15401 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
15402 (mdate): New target.
15404 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
15405 Remove illegal input characters.
15407 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
15409 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
15411 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
15413 * troff/div.c (begin_page): Change behaviour when
15414 !first_page_begun and !break_flag.
15416 * troff/input.c (do_name_test): Return 0 if argument is empty.
15418 * troff/input.c (read_long_escape_name): Require closing ] to be
15419 at same input level as opening [.
15421 * troff/input.c (read_increment_and_escape_name): New function.
15422 (get_copy, process_input_stack): Use this for \n.
15424 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
15426 * troff/div.c (top_level_diversion::begin_page): Ignore the
15427 current value of page_number if !first_page_begun.
15429 * groff.c (main): Fix declaration of buf.
15431 * troff/input.c (do_name_test): New function.
15432 (token::next): Implement \A.
15433 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
15434 (token::description, token::add_to_node_list, token::process):
15435 Handle TOKEN_ESCAPE.
15436 * troff/token.h: New token TOKEN_ESCAPE.
15438 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
15440 * pic/main.c (do_picture): Allow space before and after filename
15441 following `<'. Check that the filename is not empty.
15443 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
15445 * Version 1.01 released.
15447 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
15449 * dvi/tmac.dvi: ftr HR to H.
15451 * macros/tmac.e: Round up computation of $r.
15453 * xditview/tmac.X: Don't give up completely in compatibility mode.
15454 Use \n(.s instead of \n[.s].
15456 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
15457 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
15458 Add u to factors inside \s[...]. Rename frac to dvi-frac.
15459 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
15460 short names in the char definitions.
15462 * ps/tmac.ps: Don't give up completely in compatibility mode.
15463 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
15464 quote in front of \n(.s. Add u to factors inside \s[...].
15466 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
15468 * tty/tmac.tty: Call the nroff request.
15470 * macros/tmac.e ((x, )x): Better definitions that work properly
15472 (@0, @1): Helper macros for (x.
15474 * macros/tmac.e ($s, hl): Use \l rather than \D.
15476 * tty/tmac.tty: Make it work better in compatibility mode.
15477 (pchar): Rename to tty-char.
15479 * macros/tmac.e (@E): New macro.
15480 (r, i, b, rb, bi): Use @E.
15482 * macros/tmac.e (@F): Don't use (;...) syntax.
15484 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
15485 it was modified for groff.
15487 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
15489 * macros/tmac.e (<., .>): Removed.
15490 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
15492 * macros/tmac.e: Remove check that groff is being used.
15494 * macros/tmac.e (@C): Change families only if using groff; turn
15495 compatibility mode off while changing familes. Save compatibility
15496 mode before changing families and restore it afterwards.
15498 * macros/tmac.e (@h): Remove test for offset + line length.
15500 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
15501 (lo, th, ac): Define to call @S instead of using als.
15503 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
15504 the ratio of the vertical spacing to the point size in units
15505 expressed as a percentage. Use these instead of $10r and $10R,
15506 Delete $10r and $10R.
15508 * lib/font.c (font::load): In default computation of space_width,
15509 divide by sizescale. Use scale_round.
15511 * macros/tmac.an (TP): Don't call `nf'.
15512 (an-do-tag): Don't call `fi'.
15514 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
15516 * troff/input.c (process_input_stack): Handle the case where
15517 spaces at the beginning of an input line are followed by a
15520 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
15522 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
15523 * groff.sh: Use pic -x with the dvi device.
15525 * dvi/devdvi/FontMakefile (H): Don't use -s.
15527 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
15528 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
15529 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
15532 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
15534 * ps/psfig.diff: New file.
15535 * ps/tmac.psfig: New file.
15537 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
15539 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
15540 (]-): Don't call ref*do-tl.
15542 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
15544 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
15545 (fn@do-FS): Rename to fn*do-FS.
15547 * troff/input.c (transparent_translate): New function.
15548 (process_input_stack): Apply transparent_translate before calling
15549 diversion::transparent_output(unsigned char).
15551 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
15553 * troff/input.c (do_define_macro): Define the macro before calling
15556 * xditview/Makefile: Add DEVICES variable. Change install target
15559 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
15561 * groff.c (run_commands): Handle the possibility that there are
15562 child processes other than those forked by us.
15564 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
15566 * lib/string.c (string::append): New function.
15567 * lib/stringclass.h: Declare it.
15569 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
15571 * eqn/main.c (main): New option -N which sets
15572 no_newline_in_delim_flag.
15573 (do_file): If no_newline_in_delim_flag is set don't allow newlines
15575 * groff.c (main): Pass -N on to eqn.
15576 (help, synopsis): Mention -N.
15577 * groff.sh: Implement -N.
15579 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
15581 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
15582 (]-): Call ref*do-tl if ref*need-tl is non-zero.
15583 (XP): Allow as initializer.
15585 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
15587 * troff/env.c (environment::wrap_up_field): If field_spaces are
15588 non-zero and we have a current_tab, subtract padding from
15589 tab_distance. If this makes tab_distance <= 0, use the next tab
15590 stop instead. If there isn't any next tab or it's a left tab,
15591 wrap up the current tab.
15592 (environment::start_field): Initialize tab_precedes_field.
15593 (environment::wrap_up_tab): If there's a current field, update
15594 pre_field_width, field_distance and tab_precedes_field.
15595 * troff/env.h (environment::tab_precedes_field): New member.
15597 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
15599 * ps/ps.c (ps_printer::do_file): New function.
15600 (ps_printer::special): Bind to `file' special.
15601 (ps_printer::do_exec): Set ndefined_styles to 0.
15603 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
15605 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
15606 Avoid stripping first character from the start of unrecognized
15607 escapes. Use lex_error instead of error to report errors.
15608 * eqn/lex.c (get_token): Rework handling of escapes.
15609 (lex_error): Move declaration into...
15612 * xditview/xditview.c (main): Make -page option work.
15614 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
15616 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
15618 * macros/tmac.s (B2): Correct size of box.
15620 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
15622 * macros/tmac.s (B2): Postpone drawing the box until in the
15623 top-level diversion.
15625 * tty/tmac.tty: Add font translations for C, CR, CW.
15627 * groff.c (synopsis, help): Document -i.
15628 * groff.sh: Implement -i.
15630 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
15631 Simplify the construction of SN.
15633 * troff/number.c (parse_term): Give `|' a higher precedence.
15634 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
15637 * macros/tmac.s (B2): Use par@finish instead of par@reset.
15639 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
15641 * lib/string.c (string::move): New function.
15642 * lib/stringclass.h: Declare it.
15644 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
15646 * troff/env.c (distribute_space): Add optional argument
15648 (environment::wrap_up_field): Call distribute_space with
15649 `force_forward' argument of 1.
15651 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
15653 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
15654 Inline it. Move reallocation into...
15655 (string::grow1): New function.
15656 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
15657 dependencies to include library header files.
15658 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
15660 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
15662 * macros/tmac.s (@NH): Use the same number registers than -ms does
15663 for the heading level counters. Use the same string that -ms does
15664 for the number for this heading.
15666 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
15668 * lib/new.c (operator new): Cast result of malloc to char *.
15670 * troff/input.c (spring_trap, lookup_request): Add assert that nm
15673 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
15675 * groff.c (main): Support -i.
15677 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
15679 * pic/pic.h: Include <osfcn.h>.
15681 * ps/ps.c: Add declaration of mktemp.
15683 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
15684 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
15685 argument as union wait *.
15686 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
15687 argument to union wait *.
15689 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
15691 * tty/tmac.tty: Add definition of \(co.
15693 * pic/object.c (make_arc): Only increase radius when radius
15694 strictly less than d.
15695 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
15698 * troff/env.c (environment::environment(symbol),
15699 environment::environment(const environment *)): Initialize
15702 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
15704 * tbl/main.c (main): Add exit(0).
15706 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
15708 * pic/main.c (main):
15709 * eqn/main.c (main):
15710 * tbl/main.c (main):
15711 * etc/soelim.c (main):
15712 * driver/printer.c (printer::~printer):
15713 * troff/node.c (real_output_file::~real_output_file,
15714 real_output_file::flush): Check for errors on stdout.
15716 * most files: Add 1991 to copyright notice.
15718 * macros/tmac.s: Don't test \n(.x and \n(.y.
15720 * troff/input.c (token::next): Rename `escape_char' label to
15721 `handle_escape_char' and `normal_char' label to
15722 `handle_normal_char'.
15724 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
15726 * groff.c (main, synopsis, help): Support -a option.
15727 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
15728 to trflags while parsing options.
15730 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
15732 * troff/number.c (parse_term): With `m', `M' and `n' scale
15733 indicators, convert scale factor to hunits before scaling.
15735 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
15737 * lib/font.c (scale_round): Better test for overflow when n is
15740 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
15742 * tbl/main.c (process_format): Add second argument of type
15743 options*. Change callers. Allow opt->tab_char as well as '\t'
15744 between format items.
15746 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
15748 * macros/tmac.an (PD): With no arguments, make sure register PD is
15750 (TH): Call PD with no argument, instead of setting register PD
15753 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
15755 * Version 1.00 released.
15757 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
15759 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
15761 * dvi/devdvi/DESC: Mount CW instead of CR.
15763 * dvi/tmac.dvi: Add definition of \(tm.
15765 * dvi/devdvi/texsy.map: Add lh, and rh.
15766 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
15767 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
15769 * dvi/devdvi/FontMakefile: Generate H from cmss10.
15770 * dvi/devdvi/Makefile: Install H.
15771 * dvi/devdvi/H: New file.
15773 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
15775 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
15778 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
15780 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
15782 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
15784 * macros/tmac.s (@EN): Handle the case where the equation is empty
15785 but the label is not.
15787 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
15789 * troff/groff.h: New warning category WARN_SPACE.
15790 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
15791 WARN_SPACE to warning_table.
15792 (interpolate_macro): Give a warning of type WARN_SPACE if the name
15793 is longer than two characters and is not defined, but the first
15794 two characters do make a defined name.
15796 * PROBLEMS: New file.
15798 * CHANGES: New file.
15799 * README-0.6, README-1.00: Deleted.
15801 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
15802 * xditview/devX75/Makefile: Make devX75-12.
15803 * xditview/devX100/Makefile: Make devX100-12.
15805 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
15806 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
15808 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
15810 * README-0.7: Rename to README-1.00.
15812 * macros/tmac.pic: New file.
15813 * macros/Makefile (install.nobin): Install tmac.pic.
15815 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
15817 * troff/env.c (hyphen_word): Correct the test for whether the
15818 token is a hyphen. Reset npos to 0.
15820 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
15822 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
15824 * macros/tmac.s (ds*common-end): Call par*reset.
15826 (par@reset-indent): Deleted.
15828 * macros/tmac.s (@IP): Divert the label.
15830 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
15832 * xditview/draw.c (setGC): Use a line width of .1m rather than
15833 .04m by default; round rather than truncate value.
15835 * tbl/table.c (class empty_entry): New class.
15836 (empty_entry::empty_entry, empty_entry::line_type): New functions.
15837 (table::add_entry): Represent empty entries by objects of type
15839 (table_entry::line_type): Return -1.
15840 (table::determine_row_type): Ignore entries with line_type 0.
15841 Treat type -1 as non-lines.
15843 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
15845 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
15846 macros/tmac.s: Rename \(-d to \(Sd.
15848 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
15850 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
15851 * xditview/libXdvi/DviChar.c: Likewise.
15852 * dvi/devdvi/texsy.map: Add `<<', `>>'.
15854 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
15856 * troff/div.c (top_level_diversion::begin_page): Call
15857 init_output() if the_output is 0.
15859 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
15861 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
15863 (get_copy): Turn \E into ESCAPE_E.
15864 (token::process, asciify): Handle ESCAPE_E.
15866 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
15868 (DS): Implement `.DS R'.
15870 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
15872 * macros/tmac.s (FS): New macro.
15874 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
15876 * macros/tmac.s (cov*tl-init): Remove after first execution
15877 instead of aliasing to @nop. Call top of page macro explicitly
15878 instead of setting trap; call @init first. Set pg@top as top of
15880 (cov*auto-init): Deleted. Set cov*tl-init instead of
15881 cov*auto-init as top of page trap.
15882 (TL, LP): Do a break instead of calling cov*tl-init.
15883 (cov*print): With RP format but no TL, alias FS and FE to @FS and
15884 @FE; in this case also give a warning and always start another
15885 page. No need to set pg@top here.
15886 (cov*tl-init): Rename to cov*first-page-init.
15888 * macros/tmac.s (RP): Do `.pn 0'.
15889 (cov*tl-init): With RP format don't do `.pn 0'.
15891 * macros/tmac.s (pg@cs-top): Set no space mode.
15893 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
15894 (cov*ab-init): Alias TL, AU and AI to these.
15896 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
15898 * macros/tmac.s (@EQ): Move the space before the equation into @EN
15899 (@EN): Do nothing unless \n[dl] is > 0.
15901 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
15903 * pic/object.c (ellipse_object::radius): New function.
15905 * VERSION: Change version to 0.7.
15907 * tbl/table.c (block_entry::do_divert): Declare return type as
15909 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
15911 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
15913 * troff/column.c: New file.
15914 * troff/Makefile: Corresponding changes.
15916 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
15919 * troff/div.c (top_level_diversion::space): If the space causes
15920 the first-page transition and springs a trap, truncate the space
15923 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
15925 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
15928 * pic/troff.c (troff_output::line_thickness,
15929 troff_output::set_fill): Do a horizontal motion to compensate for
15930 the width of the \D escape sequence.
15932 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
15934 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
15937 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
15940 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
15941 Supply empty definition.
15942 (text_entry::simple_print, simple_text_entry::simple_print):
15943 Delete declarations.
15944 (table::add_entry): Represent empty entries by objects of type
15947 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
15949 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
15951 * tbl/table.c (left_text_entry::add_tab): New function.
15953 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
15954 initialize like LP.
15956 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
15958 * troff/env.c (environment::start_field): Give an error message if
15959 there is no next tab.
15961 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
15963 * troff/env.c (hyphenate): Skip initial elements with zero
15966 * macros/tmac.s (par@init): Keep VS in points rather than units.
15968 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
15970 * pic/main.c (main): Implement `-c' option.
15971 * pic/output.h: Declare make_tpic_output().
15972 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
15974 (tpic_output): New class.
15975 (tpic_output::tpic_output, tpic_output::set_pen_size,
15976 tpic_output::command, make_tpic_output): New functions.
15978 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
15980 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
15981 if they're not already defined.
15982 * tbl/table.c (init_output): Don't test \n(.g.
15984 * troff/input.c (do_if_request): Delete `g' condition. Recognize
15985 `d', `r' and `c' conditions even in compatibility mode.
15987 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
15989 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
15992 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
15994 * troff/env.h (environment::prev_line_interrupted): New member.
15995 (environment::get_prev_line_interrupted): New function.
15996 * troff/env.c (environment::newline): Set prev_line_interrupted.
15997 (environment::environment(const environment *),
15998 environment::environment(symbol)): Initialize
15999 prev_line_interrupted.
16000 * troff/input.c (process_input_stack): Don't give special
16001 treatment to space and newline at the beginning of the line if the
16002 previous line was interrupted.
16004 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
16006 * eqn/eqn.y: Disallow PRIME by itself.
16007 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
16009 (def_table): Remove definition of '. Define prime to be `.
16011 * eqn/eqn.y: Split off part of rule `script' into a new rule
16014 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
16016 * macros/tmac.s ({, }): New string aliases.
16018 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
16020 * README-0.7: New file.
16022 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
16024 * macros/tmac.s: New file.
16025 * man/groff_ms.man: New file.
16026 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
16027 * Makefile.bd: Similarily.
16028 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
16029 definition of TMAC_S.
16030 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
16031 * macros/TODO: New file.
16033 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
16035 * troff/env.c (right_justify): New function.
16036 (init_env_requests): Bind this to request "rj".
16037 (center_lines): Set right_justify_lines to 0. If we get a bad
16038 integer, center 1 line.
16039 (environment::environment(symbol), environment::environment(const
16040 environment *)): Initialize right_justify_lines.
16041 (environment::get_right_justify_lines): New function.
16042 (init_env_requests): Bind this to number_register ".rj".
16044 * troff/env.c (environment::choose_breakpoint): Implement
16045 hyphenation_margin and hyphenation_space.
16046 (environment::get_hyphenation_space,
16047 environment::get_hyphenation_margin): New functions.
16048 (init_env_requests): Bind these to .hys and .hym.
16049 (hyphenation_space_request, hyphenation_margin_request): New
16051 (init_env_requests): Bind these to hys and hym.
16052 (environment::environment(symbol), environment::environment(const
16053 environment *)): Initialize hyphenation_margin and
16055 * troff/env.h: Corresponding changes to class environment.
16057 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
16059 * troff/div.c (blank_line): Always do a break.
16061 * eqn/box.c (do_text): Turn off escapes while appending text to
16064 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
16066 * troff/input.c (while_break_request, while_continue_request): New
16068 (init_input_requests): Bind these to "break" and "continue".
16069 (while_depth, while_break_flag): New variables.
16070 (while_request): Update while_depth. Break out of loop if
16071 while_break_flag is set.
16073 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
16075 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
16078 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
16080 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
16082 * stringify: New file.
16083 * Makefile (groff.o): Use stringify.
16085 * xditview/tmac.X: Remove definition of \(rn.
16086 * xditview/libXdvi/DviChar.c: Remove radicalex from
16089 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
16091 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
16092 (alphabetic_block_entry::alphabetic_block_entry,
16093 alphabetic_block_entry::divert, alphabetic_block_entry::print):
16095 (block_entry::divert): Split off body into ...
16096 (block_entry::do_divert): If the block is alphabetic, subtract 2n
16097 from the line length; also update the span width to dl+2n, and the
16098 alphabetic span width to dl.
16100 * driver/input.c (do_file): While reading argument to D command,
16101 when expanding buffer, multiply szp by sizeof(int) rather than 2
16102 in the argument to memcpy.
16104 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
16105 width of alphabetic columns.
16107 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
16109 * troff/node.c (lookup_family): Supply second argument to lookup.
16111 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
16112 search, return immediately if v is 0.
16114 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
16115 (troff_output::start_picture): Set this reg.
16116 (troff_output::end_picture): Remove this reg
16117 * eqn/box.c (box::extra_space): Don't produce `\x's if
16118 EQN_NO_EXTRA_SPACE_REG is defined.
16120 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
16121 * eqn/text.c (split_text): Map ' to \(fm when it's the first
16124 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
16126 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
16129 * troff/div.c (top_level_diversion::top_level_diversion):
16130 Initialize page_number to 0.
16132 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
16134 * groff/troff (environment::environment(const environment *)):
16135 Initialize name to e->name, rather than "anonymous".
16137 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
16139 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
16140 requested_page. Split middle part into ...
16141 (FindPage): New function.
16142 (SetValues): If we don't yet know the last page, and the requested
16143 page is greater than the current page, call FindPage.
16144 Update the font_map_string before doing this.
16146 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
16147 Translate \(lh and \(rh into left and right double arrows.
16149 * troff/node.c (class hyphen_inhibitor_node): New class.
16150 (hyphen_inhibitor_node::hyphen_inhibitor_node,
16151 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
16152 hyphen_inhibitor_node::type,
16153 hyphen_inhibitor_node::get_hyphenation_type): New functions.
16154 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
16155 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
16158 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
16160 * troff/node.h (dummy_node::get_hyphenation_type,
16161 transparent_dummy_node::get_hyphenation_type): Declare them.
16162 * troff/node.c: (dummy_node::get_hyphenation_type,
16163 transparent_dummy_node::get_hyphenation_type): New functions.
16165 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
16167 * xditview/libXdvi/draw.c: If M_PI not defined after including
16168 math.h, then define it.
16170 * xditview/Makefile: Add definition of AR. Pass it to the submake
16172 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
16174 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
16176 * troff/dictionary.h (object_dictionary::alias): Declare return
16178 * troff/dictionary.c (object_dictionary::alias): Return non-zero
16179 if the old name was defined.
16180 * troff/input.c (alias_macro): Give a warning if the old name was
16182 * troff/reg.c (alias_reg): Likewise.
16184 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
16186 * troff/input.c (token::next): Delete implementation of \R.
16188 * macros/Makefile: Strip comments from tmac.e while installing it.
16190 * troff/input.c: New variable `nroff_mode'.
16191 (troff_request, nroff_request): New functions.
16192 (init_input_requests): Bind `troff' and `nroff' to troff_request
16194 (do_if_request): Compute results of t and n conditions from
16197 * text/text.c (split_text): Fix typo in >=.
16199 * eqn/lex.c: Add definition of `==' to def_table.
16201 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
16203 * pic/tex.c (tex_output::start_picture): Change the definitions of
16204 \graph and \graphtemp so that they work properly with Plain TeX.
16206 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
16207 argument to `ar' is not less than the first.
16209 * pic/pic.y: Allow a comma between elements of the variable list
16210 in the argument to `reset'.
16212 * pic/object.c (arc_object::arc_object): Fix computation of
16215 * eqn/main.c (main): Add exit(0).
16217 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
16219 * troff/div.c (begin_page): Test no_space_mode after doing the
16220 break, but still push the page ejector cookie before doing the
16221 break. Also set the next page number after doing the break.
16223 * xditview/xditview.c (NewFile): Don't set the title and icon name
16224 if this is the first file and its name is `-'.
16225 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
16226 the X75 and X100 devices.
16227 (main): If a device has the XT_OPTION flag set and there's exactly
16228 one file argument, pass the driver -xrm and -title options to set
16229 the icon name and window title to the name of the file.
16231 * troff/env.c (environment_switch): If there was an argument but
16232 it wasn't a valid number or name, then pop an environment but
16233 don't give an error message on underflow.
16235 * troff/number.c (start_number): Correct spelling in error message.
16237 * troff/input.c (token::delimiter): Don't print an error message
16240 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
16241 ParseDrawFunction if dw->display_enable is true.
16243 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
16245 * pic/pic.y: Parse text positioning like normal attributes, so as
16246 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
16247 positioning attribute.
16249 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
16251 * tbl/main.c (process_data): When in state START while reading a
16252 text block, don't change to state MIDDLE if c is a newline.
16254 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
16256 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
16257 so as to avoid shadowing parameter.
16259 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
16261 * tbl/table.c (trim_space): Deleted.
16262 (table::add_entry): Don't call trim_space.
16264 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
16266 * VERSION: Change version to 0.6.
16268 * troff/number.c (parse_expr): Make == work.
16270 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
16272 * man/grog.man: New file.
16273 * man/Makefile: Add grog.n to MAN1PAGES.
16274 * etc/grog.sh: New file.
16275 * etc/Makefile: Install grog.sh as grog.
16277 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
16279 * troff/input.c (token::next): Implement \E.
16281 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
16283 * xditview/tmac.X: Change font translations to match tmac.ps.
16285 * troff/input.c (non_empty_name_warning): Don't give a warning if
16286 `\{' terminates the name.
16288 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
16290 * ps/devps/symbol.diff: New file.
16291 * ps/devps/FontMakefile: Mention symbol.diff.
16293 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
16295 * troff/node.c (font_position): Use get_long_name to read the
16298 * troff/env.c (environment_switch): If we get a number that's < 0
16299 or >= NENVIRONMENTS, treat it like a name.
16300 Change NENVIRONMENTS to 10.
16302 * troff/groff.h: Remove definition of FONTS_MAX.
16303 * troff/node.h (class font_family): Make map a pointer instead of
16304 an array. Add a map_size member. Make it a class. Make nm const
16305 and public. Make invalidate_fontno a friend.
16306 * troff/node.c: Define font_table_size. Make font_info a pointer
16307 rather than an array.
16308 (class troff_output_file): Allocate font_position dynamically. Add
16309 nfont_positions member.
16310 (troff_output_file::set_font): Grow font_position if necessary.
16311 (troff_output_file::~troff_output_file): Delete font_position.
16312 (troff_output_file::troff_output_file): Allocate font_position.
16313 (grow_font_table): New function.
16314 (troff_output_file::really_begin_page,
16315 troff_output_file:really_copy_page): Use nfont_positions rather
16317 (mount_font_no_translate, mount_style): Call grow_font_table if
16319 (font_family::font_family): Allocate map.
16320 (font_family::make_definite): Grow map if necessary. Use
16321 font_table_size instead of FONTS_MAX.
16322 (font_family::~font_family): New function.
16323 (invalidate_fontno): Use font_family::map_size.
16324 (get_fontno, env_space_width, env_half_narrow_space_width,
16325 env_narrow_space_width, symbol_fotno, is_good_fontno,
16326 get_bold_fontno, make_glyph_node): Use font_table_size rather than
16328 (next_available_font_position): Never return 0.
16330 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
16332 * ps/tmac.ps: Add font translations for compatibility with dpost.
16334 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
16336 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
16337 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
16338 Move definitions baseline_sep, shift_down, column_sep,
16339 matrix_side_sep into...
16340 * eqn/box.c: Add them to param_table.
16341 * eqn/pbox.h: Add declarations to pbox.h.
16343 * troff/input.c (set_string): Cast value to unsigned char *.
16345 * troff/token.h (process_input_stack): Declare it static before
16346 declaring it a friend.
16348 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
16350 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
16352 * dvi/devdvi/EX: Regenerate.
16354 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
16357 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
16359 * eqn/lex.c: In defaults_table, make definition of `dot' call
16360 `dot_def'. Don't explicitly make it roman. Similarily for other
16363 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
16365 (for_input::get, for_input::peek): Use this.
16366 (do_for): Add by_is_multiplicative argument.
16367 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
16368 Change semantic value of optional_by to be a double plus a flag
16369 saying whethet the by clause is multiplicative.
16371 * eqn/lex.c (get_delimited_text): Remember location of start of
16372 definition. Improve error handling when EOF is encountered.
16374 * lib/font.h: Rename handle_x_command to
16375 handle_unknown_font_command.
16376 * lib/font.c (font::load): Call handle_unknown_font_command for
16377 any unknown command in the font description file. Don't call
16378 handle_x_command. Include the name of the command in the argv.
16379 Improve message for unknown command after kernpairs or charset
16381 * ps/ps.c (ps_font::handle_x_command): Rename to
16382 handle_unknown_font_command. Remove message about `x download'
16383 command. Give error message for wrong number of arguments.
16384 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
16385 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
16386 handle_unknown_font_command. Give an error message for wrong
16387 number of arguments. Rename design_size to designsize.
16388 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
16389 checksum', `designsize' instead of `design_size'.
16391 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
16393 * eqn/*.[chy]: Change underaccent to uaccent.
16395 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
16396 give it the same precedence as ACCENT.
16397 * eqn/other.c (make_underaccent_box): New function.
16398 * eqn/box.h: Declare it.
16399 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
16402 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
16404 * pic/pic.y (reset_all): New function. Called in rule for RESET.
16405 (parse_init): Call reset_all.
16406 (define_variable): When defining scale reset only those
16407 pre-defined variables that are scaled.
16408 (defaults_table): Add `scale' as non-scaled value.
16410 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
16411 together with the text; allow any number of positioning words;
16412 allow center as a positioning word.
16414 * pic/object.c (output::compute_scale): Get picture maximum height
16415 and width from variables called maxpswid and maxpsht.
16416 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
16418 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
16420 * pic/object.c (object_spec::make_text): Multiply textht by number
16423 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
16425 (do_sprintf): New function.
16426 (pic.gperf): Add sprintf token.
16427 (text, sprintf): New rules.
16429 * pic/pic.y: `rand()' with no arguments returns a random number
16430 in the range [0,1).
16432 * pic/pic.y: Allow a bare expression to be an attribute: change
16433 precedences to support this. Change optional_ordinal rule to
16434 optional_ordinal_last to avoid reduce/reduce conflict.
16435 * pic/object.c (object_spec::object_spec): Initialize direction.
16437 * pic/pic.y: Implement ^ operator meaning exponentiation.
16439 * troff/node.h: Add default argument to mount_font.
16440 * troff/node.c (font_position): Read an optional third argument
16441 giving the external_name.
16442 (mount_font): Add optional argument giving the external_name.
16443 (mount_font_not_translate): Have additional argument giving
16444 external name. Use this name to load the font. Pass both names
16445 to font_info::font_info.
16446 (font_info::font_info): Have additional argument giving
16448 (class tfont): New member external_name.
16449 (font_info::get_tfont): Use external name to construct tfont_spec.
16451 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
16453 * eqn/lex.c (init_table): Add argument giving device. Define
16454 name of device to be "1".
16455 (do_ifdef): Counts as true if the argument has been defined with
16457 * eqn/main.c (main): Call init_table with device argument. Make
16458 device local to main.
16459 * eqn/eqn.h: Change declaration of init_table. Remove declaration
16462 * pic/lex.c (get_delimited): Allow text to be delimited by
16463 matching {}s. Don't recognize ending delimiter within a string.
16465 * troff/input.c (get_delim_name): New function.
16466 (token::next): Implement \C.
16468 * lib/font.c (font::load): Grok ---. Add an alias for each
16469 character based on its code.
16470 (font::get_code_width): Deleted.
16471 * lib/font.h (class font): Declare font::number_to_index().
16472 Remove declaration of font::get_code_width.
16473 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
16474 to indices of named characters.
16475 (font::number_to_index): New function.
16476 * troff/input.c (font::number_to_index): New function.
16477 (get_charinfo_by_number, charinfo::get_number,
16478 charinfo::set_number): New functions.
16479 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
16480 (token::process, token::description, token::get_char,
16481 token::add_to_node_list, token::operator==): Handle
16482 TOKEN_NUMBERED_CHAR.
16483 * troff/charinfo.h: Declare get_charinfo_by_number,
16484 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
16486 (charinfo::numbered): New function.
16487 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
16488 * troff/env.h (class environment): Remove declaration of ...
16489 * troff/env.c (environment::make_numbered_char_node): Deleted.
16490 * troff/node.c (make_numbered_node): Deleted.
16491 (class numbered_glyph_node): Remove.
16492 (troff_output_file::put_char_width, troff_output_file::put_char):
16493 Handle numbered chars.
16494 (troff_output_file::numbered_char): Removed.
16495 (tfont::get_code_width): Removed.
16496 (make_glyph_node): Don't search special fonts for numbered
16498 * troff/node.h: Remove declaration of make_numbered_node.
16499 * driver/input.c (do_file): Handle N command.
16500 * driver/printer.h: Add declaration of ...
16501 * driver/printer.c (printer::set_numbered_char): New function.
16502 * dvi/tfmtodit.c (main): Generate unnamed entries.
16503 * ps/devps/afmtodit: Likewise.
16504 * xditview/xtotroff.c (MapFont): Likewise.
16505 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
16507 * tbl/main.c (process_format): If multiple widths are specified
16508 for a column but all the widths are the same, don't give an error
16511 * tbl/table.c (table::do_row): If the current row is all lines and
16512 the stuff doesn't contains a line, mark the top of the row after
16513 printing stuff before the row. If the current row is not all
16514 lines and the stuff doesn't contain a line, don't unnecessarily
16515 mark the top of the row before printing the stuff.
16517 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
16519 * troff/groff.h: Remove MAX_PATH.
16520 * troff/input.c (open_file): Dynamically allocate space for the
16522 (open_mac_file, process_macro_file): Corresponding changes.
16524 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
16526 * troff/node.h (class output_file): Make copy_file pure. Add
16527 vspace method ifdef COLUMN. Add is_printing method.
16528 * troff/node.c: Add class printing_reg. Add class
16529 real_output_file. Derive other output_file classes from
16530 real_output_file; in these classes rename begin_page to
16531 really_begin_page, print_line to really_print_line, copy_file to
16532 really_copy_file, transparent_char to really_transparent_char.
16533 Move output_file::flush to real_output_file. Add printing member
16534 to class output_file.
16535 * troff/div.h: Remove printing member from top_level_diversion.
16536 Add vspace member function to class diversion ifdef COLUMN. Add
16537 some declarations ifdef COLUMN.
16538 * troff/div.c (top_level_diversion::copy_file,
16539 top_level_diversion::transparent_output,
16540 top_level_diversion::output): Don't test printing member before
16542 * troff/input.c: Handle initial variable_space_request ifdef
16544 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
16545 but comment it out.
16547 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
16549 * troff/div.c (diversion::need): Make any space forced. If we
16550 sprung a trap, set truncated_space to minus the distance to the
16551 trap and set needed_space to the amount that was needed.
16552 (top_level_diversion::space): A forced space turns no_space_mode
16554 (class constant_vunits_reg): New class.
16555 (init_div_requests): Implement number registers .trunc and .ne
16556 using constant_vunits_reg.
16557 (class truncated_space_reg): Deleted.
16559 * troff/div.h: Don't have a no_space_mode member in diversion.
16560 Instead have it in top_level_diversion.
16561 * troff/div.c (diversion::diversion): Don't initialize
16563 (top_level_diversion::top_level_diversion): Initialize
16565 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
16566 (macro_diversion::output): Don't clear no_space_mode.
16568 * troff/input.c (diverted_space_node::reread): Don't call
16569 environment::do_break. In fill mode, act like a blank line.
16570 (diverted_copy_file_node::reread): Don't call
16571 environment::do_break.
16573 * troff/div.c (blank_line): New function.
16574 * troff/div.h: Declare it.
16575 * troff/input.c (process_input_stack): Call it.
16577 * troff/div.c (truncated_space_reg::get_string): New function.
16578 (init_div_requests): Bind to .trunc.
16579 (space_request, top_level_diversion::space,
16580 top_level_diversion::output, macro_diversion::space,
16581 macro_diversion::output): Update truncated_space.
16582 (macro_diversion::output): Redo calculations when trap sprung.
16583 (macro_diversion::output, macro_diversion::space): No need for
16586 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
16587 after truncating post line spacing.
16589 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
16591 * ps/devps/prologue (MF, SF): Make them work even if setfont is
16592 defined as a procedure rather than as an operator.
16594 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
16596 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
16598 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
16600 * troff/div.c (top_level_diversion::output): Merge
16601 output_file::print_line and output_file::end_of_line member
16603 * troff/div.h (class output_file):
16604 * troff/node.c (troff_output_file::print_line,
16605 troff_output_file::end_of_line, output_file::end_of_line,
16606 ascii_output_file::print_line, suppress_output_file::print_line):
16607 Corresponding changes.
16609 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
16611 * troff/input.c (token::next): Don't give a warning for `\.'.
16613 * troff/env.c (environment::get_center_lines): New function.
16614 (init_env_requests): Bind number register .ce to it.
16615 * troff/env.h: Declare it.
16616 * tbl/table.c (table::init_output): Define reset macro to restore
16617 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
16619 (table::print): If center option not given, then imply center
16620 option if SAVED_CENTER_REG > 0.
16622 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
16624 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
16625 Troff.ps from DOWNLOAD.
16627 * troff/Makefile: Change comment in DEFINES to avoid confusing
16630 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
16631 code. Don't try to catch errors with stopped.
16632 (check_line_lengths): New function.
16633 * ps/devps/prologue (EXEC): Deleted.
16634 (EBEGIN, EEND): New procedures.
16636 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
16638 * troff/input.c: Include request.h before node.h.
16639 * troff/node.c: Likewise.
16640 * troff/env.c: Likewise.
16641 * troff/div.c: Likewise.
16642 * troff/node.h (class special_node): Store argument as a macro
16643 rather than a char *.
16644 * troff/node.c (special_node::special_node, special_node::copy):
16646 (special_node::~special_node): Deleted.
16647 (special_node::tprint): Deleted.
16648 (special_node::tprint_start, special_node::tprint_end,
16649 special_node::tprint_char): New functions.
16650 (troff_output_file::special): Deleted.
16651 (troff_output_file::start_special, troff_output_file::end_special,
16652 troff_output_file::special_char): New functions.
16653 * troff/input.c (special_node::tprint): New function.
16654 (do_special): Use macro not char *.
16655 (do_transparent_macro): Deleted.
16656 (token::next): Don't call do_transparent_macro.
16658 * troff/input.c (token::next): Add 'Y' case.
16659 (do_transparent_macro): New function.
16660 * troff/node.c (troff_output_file::special): Handle newlines with
16661 argument using new continuation convention.
16662 * driver/input.c (get_string): Cope with continuation convention.
16663 (do_file): Don't call skip_line after calling get_string(1).
16664 * ps/ps.c (ps_printer::special, ps_printer::do_import,
16665 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
16667 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
16670 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
16672 * troff/input.c (asciify): By default, illegal input characters
16673 should return empty string.
16675 * troff/input.c (copy_file): Handle first page transition like title.
16676 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
16678 * troff/input.c (token::next): Improve error message for EOF after
16680 (input_char_description): New function.
16681 (get_char_for_escape_name): Use input_char_description.
16682 (token::next): Warn about unrecognized escape sequences.
16683 (warning_table): Add WARN_ESCAPE.
16684 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
16687 * troff/token.h: Remove declaration of process_input_stack.
16689 * troff/input.c: Remove declaration of init_hyphen_requests.
16690 * troff/request.h: Correct spelling in declaration of same.
16692 * troff/input.c (token::next): Check whether escape_char is 0.
16694 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
16696 * groff.c (main, usage, help): Implement -P and -L options.
16697 * groff.sh: Likewise.
16699 * troff/input.c (token::next): Use some gotos to avoid code
16702 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
16703 Avoid calling symbol::symbol if name empty.
16705 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
16707 * troff/input.c (init_input_requests): Make \n(.x return the major
16708 version number and \n(.y return the minor version number.
16709 * troff/Makefile: Construct file majorminor.c defining
16710 major_version and minor_version automatically from ../VERSION.
16712 * troff/node.c (class glyph_node): Make operator new and operator
16714 (class ligature_node): Similarily.
16716 * troff/input.c (operator==(const macro &, const macro &)): New
16718 (non_interpreted_node::same): Use this.
16719 (string_iterator::string_iterator): Make macro& argument const.
16721 * troff/input.c (input_iterator::get): New function. Don't make
16722 asciify_macro or class non_interpreted_node friends of class
16724 (non_interpreted_node::interpret): Use input_iterator::get.
16725 (asciify_macro): Likewise.
16727 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
16728 ~non_interpreted_node): Deleted.
16729 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
16732 * troff/symbol.h: Make all symbol member functions const.
16734 * lib/strtol.c: New file.
16735 * lib/Makefile: Add strtol.c.
16736 * Makefile: Define STRTOL as strtol.o to include strtol in
16739 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
16741 * pic/troff.c (troff_output::simple_circle): Divide by scale.
16743 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
16745 * troff/input.c (do_special): Use input_level.
16747 * troff/token.h (TOKEN_BACKSPACE): New token.
16748 (token::backspace): New function.
16749 * troff/input.c (token::description, token::next, token::process):
16750 Grok TOKEN_BACKSPACE.
16751 (do_special): Turn TOKEN_BACKSPACE back into \b.
16753 * troff/token.h (token::leader): New function.
16754 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
16756 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
16758 * troff/input.c (do_special): Use token::description in error
16761 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
16763 * troff/input.c (decode_args): Combine quoted and
16764 quote_input_level variables. Make it a for (;;) loop.
16766 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
16768 * troff/input.c (read_long_escape_name): The test for whether to
16769 expand buffer was off by 1.
16770 (read_string): Similarily.
16772 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
16774 * troff/input.c: Use `const int' rather than `static const int'.
16776 * troff/div.h (diversion::copy_file): Declare as pure virtual.
16777 (macro_diversion::copy_file): New function.
16778 * troff/node.h: New class diverted_copy_file_node.
16779 * troff/node.c: Implement it.
16780 * troff/input.c (copy_file): Use diversion::copy_file. Handle
16781 first page transition by pushing a diverted_copy_file_node.
16782 * troff/input.c (token::next, process_input_stack): Don't handle
16785 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
16787 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
16788 whether space widths need adjusting.
16790 * troff/charinfo.h: Generalize translated_to_space to
16791 special_translation so as to allow translation to \&.
16792 * troff/input.c (translate): Allow translation to \&.
16793 (charinfo::*): Corresponding changes.
16794 * troff/node.c (make_node, node::add_char): Corresponding changes.
16795 * troff/node.h (dummy_node::dummy_node): Allow optional first
16798 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
16799 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
16801 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
16802 TOKEN_REQUEST with an argument of TITLE_REQUEST.
16803 (token::process): Grok that.
16804 * troff/input.c (copy_file): Handle first page transition like
16805 title by pushing a COPY_FILE_REQUEST cookie.
16806 (token::next, process_input_stack): Grok that.
16807 * troff/node.h (output_file::copy_file): Add x and y arguments.
16809 * troff/div.c (top_level_diversion::copy_file): Supply them.
16810 * troff/node.c (troff_output_file::copy_file): Add x and y
16811 arguments; moveto specified position. Invalidate font_position
16812 array after copying file.
16813 (output_file::copy_file): New function.
16814 (suppressed_output_file::copy_file, ascii_output::copy_file):
16816 * troff/input.c (transparent_file): New function.
16817 (init_input_requests): Bind to "trf".
16818 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
16819 (process_input_stack): Likewise.
16821 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
16823 * troff/node.c (init_node_requests): New number registers .kern
16824 pointing to global_kern_mode, and .lg pointing to
16825 global_ligature_mode.
16827 * troff/node.c (ligature): Don't change it if we get a bad
16830 * troff/input.c (do_define_string): Don't strip tabs.
16832 * troff/input.c (asciify_macro): Make the string_iterator auto.
16834 * troff/node.c (init_font_requests): Rename to...
16835 (init_node_requests):
16836 * troff/node.h: Change declaration.
16837 * troff/input.c (main): Change call.
16839 * troff/input.c (node::reread, diverted_space_node::reread): New
16841 (process_input_stack): Call reread rather than
16842 get_diverted_space_node.
16843 * troff/node.c (node::get_diverted_space_node,
16844 diverted_space_node::get_diverted_space_node): Removed.
16845 * troff/node.h: Declare reread methods instead of
16846 get_diverted_space_node methods. Make `n' member private.
16847 * troff/input.c: (token::diverted_space): Removed.
16848 * troff/token.h: Removed declaration.
16851 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
16853 * eqn/script.c (script_box::compute_metrics): Don't let
16854 SUP_RAISE_FORMAT become negative.
16856 * tbl/table.c (table::do_row): Entries that don't end in the
16857 this row shouldn't make the row non-blank.
16859 * tbl/table.c (table::make_columns_equal): Only set the width of
16860 columns which are marked as equal.
16862 * tbl/main.c (process_data): Before issuing excess data error,
16863 if last character was a newline unget it; then get it again after
16864 the error. Also include the contents of the entry in the message.
16866 * groff.c: New file.
16867 * Makefile: Build groff from groff.c. Make it possible to use
16868 either groff.sh or groff.c as groff.
16869 * Makefile.bd: Similarily.
16871 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
16873 * groff.sh: Don't delay expansion of $@ in assignment to files.
16874 Remove occurrences of \".
16876 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
16878 * all Makefiles: Simplify and rearrange.
16880 * Makefile: Handle fmod like malloc.
16881 * lib/Makefile: Similarily.
16882 * lib/fmod.c: Remove #ifdef NEED_FMOD.
16884 * Makefile: Rename OPTIMISE to OPTIMIZE.
16886 * groff.sh: Remove assignment to PATH.
16887 * Makefile: Remove SHPATH variable.
16888 * Makefile.bd: Similarily.
16890 * groff.sh: Add -V option to print the pipeline instead of
16893 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
16895 * lib/font.c: Split off file searching into ...
16896 * lib/fontfile.c: New file.
16898 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
16900 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
16902 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
16903 Also change misleading comment.
16904 (table::do_vspan): Change similarily misleading comment.
16905 * tbl/main.c (process_data): A format row with an explicit `s'
16906 uses up a data line, even if all the other columns are `_' or `='.
16908 * troff/input.c (token::description): Fix description of
16909 TOKEN_DUMMY and TOKEN_EMPTY.
16911 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
16913 * groff.sh: Fix description of -Z in help message.
16915 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
16917 * pic/object.c (object_spec::make_object): Allow negative and zero
16919 * pic/pic.y: Give linethick default value of -1.0.
16920 * pic/troff.c (troff_output::troff_output): Initialize
16921 last_line_thickness to BAD_THICKNESS.
16922 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
16923 (troff_output::line_thickness): Canonicalize negative thicknesses
16924 to RELATIVE_THICKNESS.
16925 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
16926 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
16928 (tex_output::start_picture): Set pen_size to -2.0.
16930 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
16931 0, then use 0 linewidth.
16932 (ps_printer::ps_printer): Initialize line_thickness to -1.
16934 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
16936 * ps/devps/symbolchars: Remove `or'.
16937 * ps/tmac.ps: Implement \(or with .char.
16939 * ps/devps/symbolchars: Move most characters into textmap.
16940 * ps/devps/textmap: Add names for troff bracket characters. Remove
16943 * ps/devps/TSymbol.ps: Removed.
16944 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
16945 * ps/tmac.ps: Do with .char what TSymbol did.
16946 * ps/devps/download: Remove TSymbol.
16948 * ps/devps/T: Removed.
16949 * ps/devps/Troff.ps: Removed.
16950 * ps/devps/Troff.afm: Removed.
16951 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
16952 * ps/devps/download: Remove Troff.
16953 * ps/devps/FontMakefile: Remove T target.
16954 * ps/devps/DESC-A4: Remove T from font list.
16955 * ps/devps/DESC-letter: Likewise.
16957 * troff/input.c (macro_to_node): Rename to ...
16958 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
16959 character's definition while processing it.
16960 * troff/node.c (node::add_char, make_node): Change calls to
16961 macro_to_node accordingly.
16963 * troff/input.c (token::next): Translate \_ to \(ul.
16965 * tty/devascii/R.proto: Add `|'.
16966 * tty/devlatin1/R.proto: Likewise.
16968 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
16970 * man: Put the version number in all the man pages.
16972 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
16974 * Makefile.bd: New file.
16975 * README.bd: New file.
16977 * VERSION: New file.
16978 * lib/version.c: Removed.
16979 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
16982 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
16983 environment variable.
16985 * all Makefiles: Split install target into install.bin for
16986 binaries, and install.nobin for everything else.
16987 * Makefile: Add bindist target.
16989 * man/afmtodit.man: New file.
16990 * man/Makefile: Add afmtodit.n to MAN1PAGES.
16991 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
16993 * ps/Makefile: Pass BINDIR to make install in devps.
16995 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
16996 the space character.
16998 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
17000 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
17002 * ps/ps.c: Redo font downloading.
17003 * ps/devps/download: New file.
17004 * ps/devps/Makefile: Add download to DEVICEFILES.
17005 * ps/devps/afmtodit: Remove -d option.
17006 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
17007 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
17008 * ps/devps/zapfdr.ps: Likewise.
17009 * ps/devps/TSymbol.ps: Likewise.
17011 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
17013 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
17015 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
17017 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
17018 then strip the first line if it starts with %.
17019 * Makefile: Add a comment about this.
17021 * man/tfmtodit.man: New file.
17022 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
17023 * dvi/Makefile: Install tfmtodit in BINDIR.
17025 * dvi/tfmtodit.c (usage): Mention -v option.
17027 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
17029 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
17030 * troff/node.c (troff_output_file::transparent_char): Don't call
17033 * eqn: Add check_tabs method to most box classes.
17034 * eqn/box.c (box::top_level): Call check_tabs.
17036 * eqn/script.c (script_box::output): Use \Z.
17037 * eqn/limit.c (limit_box::output): Use \Z.
17039 * eqn/box.c (box::top_level): Use itoa.
17041 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
17043 * dvi/tmac.dvi: Add font translations for CR, C, TT.
17044 * dvi/devdvi/Makefile: Don't make links to CW.
17046 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
17048 * xditview/tmac.X: Likewise.
17050 * troff/node.c: Add font translation feature.
17051 (get_font_translation): New function.
17052 (symbol_fontno): Translate the font name.
17053 (mount_font_no_translate): Rename to mount_font to this.
17054 (mount_font): New function.
17055 (font_family::make_definite): Call mount_font_no_translate instead
17057 (mount_style): Translate the font name.
17058 (font_translate): New function.
17059 (init_font_requests): Bind "ftr" to font_translate.
17061 * ps/devps/prologue (SN): New procedure that rounds a position to
17062 the nearest (pixel + (.25,.25)).
17063 (DL): Use SN to round endpoints.
17065 * lib/version.c: Changed version to 0.5.
17067 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
17069 * Makefile: Move definition of PAGE to the very beginning, so that
17070 people are less likely to miss it.
17072 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
17074 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
17076 * troff/env.c (environment::choose_breakpoint): Make `can't find
17077 breakpoint' error a warning of type WARN_BREAK. Change message to
17078 `can't break line'.
17079 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
17081 * troff/input.c: Add WARN_BREAK to warning_table. Include
17082 WARN_BREAK in DEFAULT_WARNING_MASK.
17084 * tty/tmac.tty: Add definition of \(+-.
17086 * groff.sh: Remove `--' option to set command.
17088 * dvi/devdvi/texsy.map: Remove duplicate md entry.
17090 * ps/devps/eqnchar: Better definition of cdot using md.
17091 * dvi/devdvi/eqnchar: Likewise.
17092 * xditview/devX100/eqnchar: Likewise.
17093 * xditview/devX75/eqnchar: Likewise.
17094 * eqn/lex.c: Add definition of cdot.
17096 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
17098 * troff/input.c (get_optional_char): New function.
17099 * troff/input.c (set_page_character): Use get_optional_char(),
17100 rather than has_arg() and tok.get_char(1).
17101 * troff/env.c (tab_character, leader_character, hyphen_char,
17102 field_characters): Likewise.
17103 (margin_character): Likewise. Also always delete the
17104 margin_character_node.
17106 * troff/input.c (token::get_char): Use token::description.
17108 * troff/input.c (has_arg): Don't skip over tab and \}.
17109 * troff/number.c (start_number): Give a warning if the number
17110 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
17112 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
17114 * troff/input.c (empty_name_warning, non_empty_name_warning): New
17116 (get_name, get_long_name): Use these. Rename `warn' argument to
17119 * troff/node.c (get_fontno): Test that the symbol is not null.
17121 * troff/input.c (token::description): New function.
17122 * troff/number.c (parse_term): Use token::description in `numeric
17123 expression expected' message.
17124 * troff/groff.h: Add WARN_MISSING.
17125 * troff/number.c (start_number): New function.
17126 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
17127 get_incr_number): Use start_number().
17128 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
17130 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
17131 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
17133 * troff/input.c (token::get_char): Use WARN_MISSING.
17134 * troff/input.c (token::delimiter): Use token::description.
17135 * troff/env.c (environment_switch): Back out Aug 3 change.
17136 * troff/input.c (has_arg): Skip over \}s and tabs but give a
17138 * troff/token.h (token::tab): New function.
17139 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
17140 * troff/reg.c (alter_format): Likewise.
17141 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
17143 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
17145 * troff (most files): Redo warnings. Divide warnings into various
17146 categories; warning() has an additional first argument indicating
17147 the category it falls into.
17148 * troff/input.c (main): -w now takes an argument. New option -W.
17149 (enable_warning, disable_warning): New functions.
17151 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
17152 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
17154 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
17156 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
17157 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
17158 * xditview/devX75/eqnchar: Likewise.
17159 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
17161 * eqn/other.c: When bar or over applies to a single character
17162 don't produce an overline_box or an underline_box. Instead produce
17163 an accent_box or an underaccent_box, with the accent a line
17164 whose width is accent_width. New classes underaccent_box,
17165 overline_char_box and underline_char_box.
17166 * eqn/box.h: Move overline_box, underline_box, accent_box class
17167 declarations into eqn/other.c. Add declarations of
17168 make_underline_box, make_overline_box, make_accent_box.
17169 * eqn/eqn.y: Call make_overline_box, make_underline_box
17170 make_accent_box instead of constructors.
17171 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
17173 * eqn/other.c: Add accent_box::~accent_box.
17174 * eqn/box.h: Declare it.
17176 * groff.sh: With -Tps, use eqn -D.
17178 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
17180 (underline_box::output): Similarily.
17181 (accent_box::output): Use \Z.
17183 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
17186 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
17188 * troff/div.c (top_level_diversion::transparent_output(unsigned
17189 char)): Use asciify.
17190 * troff/input.c (asciify): Don't make it static.
17191 * troff/token.h (asciify): Declare it.
17193 * troff/input.c (get_name, get_long_name, token::get_char,
17194 token::delimiter): Add an extra default argument which says
17195 whether a warning should be printed.
17196 * troff: Pass a non-zero argument to one of these rather than
17197 printing a warning directly.
17199 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
17201 * troff: Consistently use symbol::is_null.
17203 * troff/dictionary.h: Move some inline functions into
17206 * troff/request.h: Move inline functions into input.c.
17207 (request_or_macro::invoke): Make it pure.
17209 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
17210 * troff/input.c (init_input_requests): Use class constant_int_reg.
17211 (class compatible_reg): Deleted.
17212 * troff/div.c (init_div_requests): Use class constant_int_reg.
17213 (class last_post_line_extra_space_reg): Deleted.
17215 * troff/env.c (tab_character): Don't change the tab character if
17216 we get an invalid argument.
17217 (hyphen_char): Similarily.
17219 * troff/reg.c (alter_format): Check that nm is not null.
17221 * Makefile, groff.sh: Make it possible to customize the commands
17222 used for printing PostScript and dvi files. Also make it possible
17223 to customize the path used by groff.sh.
17225 * eqn/eqn.y: Make `left' right associative.
17227 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
17229 * pic/pic.h: Added definition of M_SQRT2 for those systems that
17232 * pic/pic.h: Removed definition of INT_MAX.
17234 * troff/node.c (italic_corrected_node::vertical_extent): Omit
17237 * troff/input.c (token::next): Handle \R like \n.
17239 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
17241 * ps/tmac.pc (PSPIC): Simplify.
17243 * troff/env.c (tab_stops::to_string):
17244 * pic/pic.y (object_type_name):
17245 * pic/troff.c (simple_output::line):
17246 * pic/tex.c (tex_output::spline):
17247 * pic/object.c (object_spec::make_object):
17248 * tbl/main.c (process_data): Add cases to switch statements to
17249 avoid cfront warnings. (Some of these are spurious, since the
17250 switch already has a default case.)
17252 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
17253 `ps-'. Don't test systat; instead check number of arguments to
17256 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
17258 * macros/tmac.e: Do not decrease the page offset by 0.5i.
17260 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
17261 Unlink the file as soon as we have opened it, so that we don't
17262 have to bother with signal handlers.
17263 (handler): Deleted.
17264 (fatal_error_exit): Deleted.
17265 (main): Don't call signal.
17267 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
17269 * dvi/devdvi/Makefile: Use the -k option with S and MI.
17271 * pic/pic.y: If there is a label, or an nth construction before
17272 the first `.' in the argument to `with', ignore it and generate a
17274 * pic/lex.c (lex_warning): New function.
17276 * tbl/table.c (table::init_output): In section keep and release
17277 macro, use 0 indent when diverting and the correct indent when
17280 * troff/input.c (interpolate_number_format): Do not interpolate
17281 anything if the number register is not defined.
17283 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
17285 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
17287 * ps/devps/prologue (PICTURE): Set components of graphics state to
17288 their default values.
17290 * ps/devps/text.enc: Add trademark
17291 * ps/devps/textmap: Add names for club, spade, heart, diamond,
17292 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
17293 * ps/devps/symbolchars: Add names for summation and product.
17295 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
17296 suchthat. Add pp. Add upper-case letters.
17298 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
17299 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
17302 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
17303 rA (right angle bracket) to ra. Introduce names for double-headed
17304 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
17305 * ps/devps/textmap: Likewise for ps device.
17306 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
17307 * tty/devascii/R.proto: Rename lA to la and rA to ra.
17308 * tty/devascii/R.proto: Likewise.
17309 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
17311 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
17313 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
17315 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
17318 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
17320 * troff/div.c (when_request): Use symbol::is_null rather than
17321 has_arg to determine whether we have an argument.
17322 (change_trap): Remove the trap if we get an invalid number. Give
17323 an error if we don't get at least the macro name.
17324 (diversion_trap): Remove trap if we get an invalid name or number.
17326 * troff/env.c (environment_switch): Pop if we get an invalid
17327 symbol or numeric expression.
17329 * troff/input.c (do_define_macro): If EOF is encoutered while
17330 defining the macro, do tok.next() before returning.
17332 * troff/token.h (has_arg): Move definition from here, to ...
17333 * troff/input.c (has_arg): ... here
17335 * troff/env.c (space_size): Do nothing if we get an invalid argument.
17336 * troff/input.c (shift): Likewise.
17338 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
17341 * pic/troff.c (troff_output::start_picture): Comment out calls to
17344 * eqn/main.c (do_file): Subtract 1 from current_lineno if
17345 interpret_lf_args succeeds.
17347 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
17348 \\. This avoids problems with \$N.
17350 * groff.sh: Pass -C to preprocessors.
17352 * lib/lf.c (interpret_lf_args): Be more flexible.
17354 * tbl/main.c (main): Add -C option.
17355 (table_input::get): Do not recognize TE if followed by character
17356 other than a space or newline unless -C option given.
17357 (process_input_file): Likewise for lf, TS.
17358 (process_data): Likewise for lf in text blocks.
17360 * eqn/main.c (main): Add -C option.
17361 (do_file): Don't recognize EQ, EN or lf if followed by character
17362 other than space or newline unless -C option given.
17363 * eqn/lex.c (file_input::read_line): Similarily.
17364 * eqn/eqn.h: Declare compatible_flag.
17366 * etc/soelim.c (main): Add -C option.
17367 (interpret_lf_args): Use version in libgroff.
17370 * pic/main.c (main): Add -C option, which sets compatible_flag.
17371 (top_input::get), (top_input::peek): If -C option not given,
17372 do not recognize .PS/.PE/.PF/.lf if followed by a character
17373 other than space or newline.
17374 * pic/lex.c (file_input::read_line): Similarily.
17375 * pic/pic.h: Add declaration of compatible_flag.
17377 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
17379 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
17381 * troff/node.c, troff/node.h: Add `asciify' methods to classes
17382 derived from node. New class space_char_hmotion_node.
17383 * troff/input.c (asciify_macro): New function.
17384 * troff/input.c (init_input_requests): New request `asciify' bound
17386 * macros/mm.diff: New file.
17387 * Makefile: In install.mm target use `patch' to apply
17390 * troff/input.c (macro::print_size): Just print the size in bytes.
17392 * troff/div.c (return_request): Correct the argument
17395 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
17397 * troff/node.h (class composite_node): Add sz member.
17398 * troff/node.c (composite_node::size): Return sz.
17399 * troff/input.c (macro_to_node): Use the initial size in the
17400 environment as the size of the composite_node.
17402 * troff/node.c (node::zero_width_tprint): Provide a reasonable
17405 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
17407 * troff/div.c (change_trap): If we get a bad number expression,
17410 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
17412 * lib/matherr.c (matherr): Define this only if math.h defines
17415 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
17417 * troff/div.c (macro_diversion::distance_to_next_trap): If there
17418 no diversion trap return vunits(INT_MAX - vresolution).
17420 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
17422 * troff/input.c (do_zero_width): New implementation that doesn't
17423 use a temporary environment. Use instead:
17424 (token::add_to_node_list): New function.
17425 * troff/env.c (environment::get_prev_char_height),
17426 (environment::get_prev_char_height),
17427 (environment::get_prev_char_skew): New functions.
17428 (environment::get_prev_char): New function.
17429 (environment::get_prev_char_width): Change to use get_prev_char.
17430 (init_env_request): Implement new registers .cht, .cdp, .csk.
17431 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
17432 \Z being processed in a separate environment.
17434 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
17436 * tbl/table.c: Removed TABLE_BOTTOM_REG.
17438 * tbl/table.c (table::init_output): In the section release macro,
17439 give a warning message if the section won't fit on one page.
17441 * tbl/table.c (table::do_top): Emit table keep only if table is
17443 (table::do_bottom): Likewise for table release.
17444 (table::table), (table::add_vertical_rule): Remove reference to
17446 * tbl/table.h: Remove keep member.
17448 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
17449 SECTION_RELEASE_MACRO, if there's not enough space before the next
17450 trap to output the diversion, call T# ourselves, set
17451 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
17452 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
17453 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
17454 vertical position and return to it before turning traps on again.
17456 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
17458 * troff/node.c, troff/node.h: In classes derived from node,
17459 replace prev_char_width method by last_char_node method.
17460 * troff/env.c (environment::get_prev_char_width): Use
17461 node::last_char_node rather than node::get_prev_char_width.
17463 * Makefile: Added comment about -fno-inline on 68030-based
17466 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
17467 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
17468 expressions using sizeof to int.
17469 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
17471 * macros/tmac.e (TS): Don't move @f back past the current
17474 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
17476 * ps/ps.c (main): Buffer stderr.
17477 * dvi/dvi.c (main): Likewise.
17478 * tty/tty.c (main): Likewise.
17480 * ps/ps.c (ps_printer::do_import): Improve error handling.
17482 * troff/input.c (abort_request): Use asciify.
17484 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
17485 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
17486 type of first argument int rather than char. This works around a
17487 bug on the 68030 based Apollo using g++ 1.37.1.
17489 * tbl/table.h (class table): Add `keep' member.
17490 * tbl/table.c (table::table): Initialize `keep'.
17491 (table::add_vertical_rule): Set `keep' to 1.
17492 (table::do_top): Only emit table keep macro is `keep' is non-zero.
17493 (table::do_bottom): Likewise for table release macro.
17494 (table::do_row): Emit section keep macro even if the row is 0.
17496 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
17498 * macros/tmac.e (@C): Preserve the font family across the change
17501 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
17503 * lib/font.c: Initialize font::hor and font::vert to 1.
17504 (font::load_desc): Check the values of font::hor and font::vert.
17506 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
17507 be included in a C compilation.
17508 (iftoa): Use INT_DIGITS. Include lib.h.
17510 (as_string): Likewise.
17511 * tbl/table.c: Removed definition of INT_DIGITS.
17512 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
17513 * troff/input.c (input_input_requests): Likewise.
17514 * ps/ps.c (make_encoding_name): Likewise.
17515 (ps_printer::set_style): Likewise.
17516 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
17518 * tty/devascii/R.proto: Map fm onto '.
17519 * tty/devlatin1/R.proto: Likewise.
17521 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
17523 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
17524 argument to \w is at a different input level.
17526 * tbl/table.c (table::init_output): Define a new macro
17527 REPEATED_VPT_MACRO, like vpt but if in a diversion also
17528 transparently outputs itself.
17529 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
17531 (table::do_row): Likewise.
17533 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
17534 TRANSPARENT_STRING_NAME.
17536 * tbl/table.c (table::init_output): In the table release macro
17537 print an error message and don't produce any output if after
17538 issuing the need request the table still will not fit. Also
17539 remove the diversion after bringing it back.
17541 * tbl/table.c (table::init_output): Define a new macro
17542 REPEATED_MARK_MACRO, like mk but if in a diversion also
17543 transparently outputs itself.
17544 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
17545 is necessary because .TH might not call .T#.
17546 (table::do_top): Likewise TOP_REG.
17547 (table::define_bottom_macro): If TOP_REG is no longer valid, use
17548 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
17549 table header might contain just the two top rules.
17551 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
17553 * troff/div.c: Implement new request `ptr' to print all traps.
17555 * troff/env.c (init_env_requests): Implement `.tabs' reg with
17556 init_string_env_reg.
17557 * troff/env.c (class tab_reg): Deleted.
17559 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
17561 * troff/div.c: New number register .pn returns the number of the
17562 next page as set by the pn request.
17564 * macros/tmac.an: Redid headers and footers. Number each manual
17565 entry starting from 1 unless \nC is > 0, like Sun. Added an
17566 optional 5th argument to .TH which specifies the manual name and
17567 appears in the center of the header. Understand the X, P and D
17568 registers like Sun.
17570 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
17572 * troff/env.c (init_env_requests): New number register `.lt' to
17573 return the title length.
17575 * troff/node.h (class transparent_dummy_node): New class.
17576 * troff/node.c (class transparent_dummy_node): Provide member
17578 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
17581 * troff/input.c (token::next): New escape sequence \).
17582 * troff/input.c (get_copy): Recognize \) in copy mode.
17584 * troff/input.c (input_stack::clear): New function.
17585 * troff/input.c (exit_request): Use input_stack::clear.
17587 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
17588 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
17590 * troff/env.c: Move set_page_character to input.c. Move
17591 page_character to input.c also.
17592 * troff/env.c (title): Split off the reading of the parts of the
17593 title into read_title_parts.
17594 * troff/input.c (read_title_parts): New function. Check the
17595 input_level when testing whether a token matches the delimiter.
17597 * troff/input.c (exit_request): New function.
17598 * troff/input.c (init_input_requests): Bind ex request to
17599 exit_request rather than exit_groff.
17601 * troff/input.c (exit_groff): Call tok.next() before
17602 process_input_stack().
17604 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
17606 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
17607 * troff/env.h: ditto.
17608 * troff/input.c: ditto.
17610 * troff/env.c (environment::is_empty): Test pending_lines.
17612 * troff/env.c (environment::have_pending_lines): Removed.
17614 * troff/input.c: Add request to flush pending lines from the
17617 * troff/env.c, troff/env.h: Add automatic widow control feature.
17619 * troff/input.c (exit_groff): Do process_input_stack() after
17620 do_break() but before setting exit_flag to 2.
17622 * troff/input.c: Remove FLUSH_PENDING_LINES and
17623 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
17624 environment after END_TRAP token seen, but only if there aren't
17625 any more traps still unfinished.
17626 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
17628 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
17630 * troff/env.c: Rename the `retain_size' member of class
17631 pending_output_line to `no_fill'.
17633 * troff/env.c (title): When the line is output, make the
17634 retain_size argument !fill.
17636 * troff/node.h: Add `hyphenated' member to struct breakpoint.
17637 * troff/node.c (space_node::get_breakpoints),
17638 (dbreak_node::get_breakpoints): Fill this in.
17639 * troff/env.c: Allow specification of maximum number of
17640 consecutive hyphenated lines.
17642 * troff/env.c (environment::is_empty): Add test for !current_tab.
17644 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
17646 * troff/env.c (environment::hyphenate_line): Don't completely give
17647 up if the word is not to be hyphenated; continue so that breaks
17648 can be made at break_char_node's.
17650 * lib/lib.h: Only define INT_MAX if it's not already defined;
17651 undef INT_MIN if it's already defined.
17653 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
17655 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
17656 This works around a bug in AT&T C++ 2.0 used with an ANSI C
17659 * macros/tmac.an (an-header): Set no-space mode.
17661 * macros/tmac.an (TH): Start a new page if necessary.
17663 * Started using ChangeLog at version 0.4.
17666 version-control: never