1 2004-10-14 Werner LEMBERG <wl@gnu.org>
3 * Makefile.in (check): Depend on `site.exp' and `docheck'.
4 (docheck): Run dejagnu's `runtest' if it exists.
5 (site.exp): Create dejagnu configuration file.
7 * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
9 2004-10-13 Werner LEMBERG <wl@gnu.org>
11 * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
12 src/devices/grohtml/post-html.cpp (make_val,
13 html_printer::handle_state_assertion): Fix compiler warnings.
15 * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
16 (diversion::diversion): Fix order of initializers.
18 * src/roff/troff/div.h: Don't include `mtsm.h'.
20 * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
21 (environment::environment): Fix order of initializers.
22 (environment::make_tag, environment::construct_format_state): Fix
25 * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
26 (input_iterator::input_iterator, macro::macro): Fix order of
29 * src/roff/troff/mtsm.cpp: Include only necessary header files.
30 (state_set::add, state_set::val): Fix compiler warnings.
32 * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
33 (bool_value_state, int_value_state, units_value_state,
34 string_value_state): Remove comma after last element which causes
35 an error with g++ 3.3.3.
37 * src/roff/troff/node.cpp: Include `stringclass.h'.
38 (hline_node::hline_node, vline_node::vline_node,
39 space_char_hmotion_node, left_italic_corrected_node): Fix compiler
41 (zero_width_node::zero_width_node): Fix order of initializers.
43 * src/roff/troff/node.h: Don't include `mtsm.h'.
44 (hmotion_node): Fix compiler warnings.
46 * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
48 2004-10-12 Gaius Mulley <gaius@glam.ac.uk>
50 * doc/groff.css: New file.
52 * doc/webpage.ms: Use `groff.css'.
55 * tmac/an-old.tmac (need_eo_h): New number register.
56 (TH): Emit `.eo.tl' tag after title.
57 (SH): Set `need_eo_h'.
58 (an-trap): Handle `need_eo_h'.
59 (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
61 * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
62 (TL): Always start diversion.
64 (@AI): Always call `par@reset'.
65 (@AB): Update code for -Thtml.
66 (cov*tl-au-print): Handle -Thtml.
67 (par@reset): Handle `need_eo_tl', `need_eo_h'.
70 (@SH): Set `need_eo_h' for -Thtml.
71 (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
73 (@NH): s/HTML-TAG/HTMl-TAG-NS/.
74 Set `need_eo_h' for -Thtml.
75 (@EQ, @EN): Don't handle -Thtml specially.
76 (par@load-init): Don't handle -Thtml specially.
78 * tmac/www.tmac (www:paraspace): New macro.
79 (HTML-NS, HTML-TAG-NS): Use new `tag' request.
80 (HTML</p>, HTML-TAG-NEXT): New macros.
81 (HnE): Emit tag `.eo.h' instead of break.
82 (HR): s/HTML-NS/HTML/.
83 (www-end-nowhere): End diversion only if `www-html' not set.
85 (ULS, ULE): s|HTML|HTML</p>|.
86 (LI): Call `www:paraspace'.
89 2004-10-11 Gaius Mulley <gaius@glam.ac.uk>
91 * src/roff/troff/request.h (macro): Make `p' public.
92 New variable `is_a_diversion'.
93 New member function `is_diversion'.
96 * src/devices/grohtml/html.h (simple_output): New member function
99 * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
100 computation of `total'.
101 (tabs::check_init): New function.
102 (html_table::emit_table_header): Emit style data.
103 (html_table::insert_column): Improved.
105 * src/devices/grohtml/html-table.h: Updated.
107 * src/devices/grohtml/html-text.cpp (html_text::html_text):
108 Initialize `start_space' with TRUE.
109 (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
111 (html_text::flush_text): Set `start_space' flag.
112 (html_text::uses_indent, html_text::remove_para_space,
113 html_text::get_alignment): New functions.
114 (html_text::push_para): Updated.
115 (html_text::do_para): Check for empty argument.
116 Don't set `space_emitted'.
117 (html_text::do_space, html_text::emit_space): Updated.
119 * src/devices/grohtml/html-text.h (tag_definition): New variable
121 (html_text): New member function `uses_indent', `remove_para_space',
124 * src/devices/grohtml/output.cpp (simple_output::force_nl): New
126 (simple_output:nl): Always emit `\n'.
128 * src/devices/grohtml/post-html.cpp: Include `string.h'.
129 (BASE_POINT_SIZE): Removed.
130 (base_point_size, head_info): New global variables.
131 (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
133 (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
135 (page::add_and_encode): Pass additional parameter for tag flag.
136 (assert_pos): New structure.
137 (assert_state): New class.
138 (html_printer): Remove `indentation', `prev_indent'.
139 Add variables `troff_indent', `device_indent', `temp_indent'.
140 Add variables `seen_indent', `next_indent', `seen_pageoffset',
141 `next_pageoffset', `seen_linelenght', `next_linelength',
142 `seen_center', `next_center', `seen_space', `seen_break', `as'.
143 Add member functions `do_check_center', `do_space', `do_head',
144 `get_troff_indent', `restore_troff_indent', `handle_assertion',
145 `handle_state_assertion', `do_end_para', `set_char_and_width'.
146 Change argument to `do_fill' to `char *'.
148 (html_printer::emit_raw): Call `shutdown_table'.
150 (html_printer::do_center): Simplified.
151 (html_printer::do_title): Improved.
152 (html_printer::write_header): Emit one more newline.
154 (html_printer::do_heading, html_printer::do_indent,
155 html_printer::do_eol, html_printer::do_tab_ts,
156 html_printer::do_tab, html_printer::do_tab0,
157 html_printer::calc_po_in, html_printer::next_horiz_pos,
158 html_printer::remove_courier_tabs,
159 html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
161 (html_printer::do_linelength, html_printer::do_pageoffset,
162 html_printer::do_indentation, html_printer::do_tempindent,
163 html_printer::do_tab_te): Simplified.
164 (html_printer::do_pointsize): Check whether point size is really
165 associated a `.tl' tag.
166 (html_printer::do_break): Rewritten.
167 (html_printer::troff_tag): Improved.
168 (html_printer::flush_globs): Updated.
169 (html_printer::lookahead_for_tables): Handle `is_br'.
171 (html_printer::set_char): Check `sbuf_style.f'.
172 (html_printer::write_navigation): Use string comparison.
173 (html_printer::~html_printer): Emit `head_info'.
174 (html_printer::special): Rewritten.
175 (get_str, make_val): New functions.
176 (main): New option `s' to set the base point size.
178 * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
180 2004-10-10 Gaius Mulley <gaius@glam.ac.uk>
182 * src/roff/troff/node.cpp: New extern `debug_state'.
183 Include `stringclass.h' and `mtsm.h'.
184 Implement new classes and class members from `node.h'.
185 (real_output_file): Make `fp' public.
186 (troff_output_file): New variables `cur_div_level' and `tag_list'.
188 (troff_output_file::really_print_line): Check whether we should push
189 the current troff state and use the state at the start of the
190 invocation of this diversion.
191 (troff_output_file::add_to_tag_list): New member function.
192 (node::add_char): Handle `glyph_comp_np'.
194 * src/roff/troff/node.h: Include `mtsm.h'.
195 (node): New variables `state', `push_state', `div_nest_level',
196 `is_special'. Update constructors, all descendants.
197 Pass additional argument to `add_char' member function.
198 New virtual member functions `is_tag', `debug_node',
199 `debug_node_list'. Update all descendants.
200 (tag_node): New class for handling tags.
201 (output_file): Add variable `state'.
203 2004-10-09 Gaius Mulley <gaius@glam.ac.uk>
205 * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
206 providing a minimal troff state machine to emit meta tags for the
207 post-grohtml device driver.
209 * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
212 2004-10-09 Werner LEMBERG <wl@gnu.org>
214 * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
216 2004-10-06 Gaius Mulley <gaius@glam.ac.uk>
218 * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
220 * src/roff/troff/div.h: Include `mtsm.h'.
221 (diversion): New variables `any_chars_added', `needs_push',
222 `saved_seen_break', `saved_seen_space', `saved_seen_eol',
223 `saved_suppress_next_eol', `modified_tag'.
224 New virtual member function `is_diversion'. Update all descendants.
226 * src/roff/troff/div.cpp (diversion::diversion,
227 macro_diversion::macro_diversion): Updated.
228 (do_divert): Handle `seen_break', `seen_space', `seen_eol',
230 (top_level_diversion::space): Handle `curenv->seen_space'.
231 (page_offset): Update tag handling.
232 (space_request, blank_line, flush_output): Don't call `add_html_tag'.
234 * src/roff/troff/env.h (environment): Make `tabs' public.
235 Remove `ignore_next_eol', `emitted_node'.
236 Update `output_line', `output'.
237 New variables `seen_space', `seen_eol', `suppress_next_eol',
239 New member functions `construct_state', `make_tag',
240 `construct_format_state, `construct_new_line_state,
242 Remove `add_html_tag', `make_html_tag'.
244 * src/roff/troff/env.cpp: New externs `suppress_push',
245 `get_diversion_state', `global_diverted_space'.
246 (pending_output_line): New variable `was_centered'.
247 Update constructor and all callers.
248 (pending_output_line::output): Call `curenv->construct_format_state'.
249 (environment::environment, environment::copy): Updated.
250 (environment::output): Handle `was_centered'.
251 (environment::add_char): Handle construct and diversion state.
252 (environment::add_node): Handle construct state.
253 (environment::newline): Handle `was_centered'.
254 (environment::output_line): Updated.
255 (environment::possibly_break_line): Updated.
257 (environment::add_html_tag): Replaced with...
258 (environment::make_tag): New function.
259 (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
260 (environment::dump_troff_state): New debugging function.
261 (environment::construct_state, environment::construct_format_state,
262 environment::construct_new_line_state): New functions.
263 (environment::do_break): Updated.
264 Handle `global_diverted_space'.
265 (environment::handle_tag): Update tag handling.
266 (point_size, fill, do_break_request): Don't call `add_html_tag'.
267 (no_fill): Don't call `add_html_tag'.
268 Set `suppress_next_eol'.
269 (center, right_justify, line_length, indent, temporary_indent,
273 * src/roff/troff/input.cpp: Don't include `stringclass.h'.
274 (input_iterator): New variables `is_diversion', `diversion_state'.
276 (input_stack): New member functions `get_div_level',
277 `get_diversion_state', `check_end_diversion'.
278 New variables `div_level', `diversion_state'. Initialize them.
279 (suppress_push, global_diverted_space): New global variables.
280 (input_stack::finish_get, input_stack::finish_peek,
281 input_stack::remove_boundary, input_stack::end_file,
282 input_stack::clear, input_stack::pop_macro): Call
283 `check_end_diversion'.
284 (input_stack::push): Handle `div_level' and `diversion_state'.
285 (get_diversion_state): New function.
286 (diverted_space_node::reread): Handle `global_diverted_space'.
287 (macro::macro): Update constructors.
288 (macro::is_diversion): New function.
289 (macro::operator=): Set `is_a_diversion'.
290 (string_iterator): New member function `is_diversion'.
291 (string_iterator::string_iterator): Update constructors.
292 (string_iterator::fill): Set `div_nest_level'.
293 (macro_iterator): New member function `is_diversion'.
294 (do_if_request): Handle `suppress_push'.
295 (tag, taga): New functions.
296 (init_input_requests): Add `tag' and `taga' requests.
298 2004-10-05 Gaius Mulley <gaius@glam.ac.uk>
300 * src/include/font.h (font): New member function
301 `get_image_generator'.
302 New variables `unscaled_charwidths' and `image_generator'.
304 * src/libs/libgroff/font.cpp (font::get_width): Always return the
305 character's unscaled width if `font::unscaled_charwidths' is set.
306 (font::get_image_generator): New function.
307 (font::load_desc): Check the `unscaled_charwidths' and
308 `image_generator' keywords.
310 * src/libs/libgroff/fontfile.cpp: Initialize
311 `font::unscaled_charwidths' and `font::image_generator'.
313 * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
315 * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
317 * man/groff_font.man: Document `unscaled_charwidths' and
320 * src/preproc/html/pre-html.cpp: Include `device.h'.
321 (image_gen): New global variable.
322 (imageList::createPage): Use `image_gen'.
323 (main): Use `image_generator' keyword.
325 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
327 * tmac/html.tmac: Handle \[sqrtex].
329 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
331 * src/include/printer.h (printer): New virtual method `round_width'.
333 * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
334 src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
335 src/devices/grotty/tty.cpp (printer::round_width): New function
338 * src/devices/grohtml/post-html.cpp (printer::round_width): New
340 (html_printer::set_numbered_char): Use it.
342 2004-10-03 Gaius Mulley <gaius@glam.ac.uk>
344 * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
346 * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
348 * configure: Regenerated.
350 * Makefile.in (GHOSTSCRIPT): New variable.
351 (MDEFINES): Add GHOSTSCRIPT.
353 2004-10-03 Werner LEMBERG <wl@gnu.org>
355 * INSTALL.gen: Updated (taken from texinfo CVS).
357 2004-09-28 Werner LEMBERG <wl@gnu.org>
361 2004-09-28 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
363 * tmac/groff_www.man: Revised and updated.
365 2004-09-26 Werner LEMBERG <wl@gnu.org>
367 Fix \$@ and \$* to handle any number of arguments.
369 * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
372 * src/roff/troff/input.cpp (input_iterator::internal_level):
374 (input_stack): New member functions `increase_level' and
376 (input_stack::get_level): Don't use `internal_level'.
377 (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
378 (end_quote_iterator): Completely removed.
379 (interpolate_arg): Build string for \$@ and \$* which is then
380 pushed onto the input stack.
382 2004-09-23 Keith Marshall <keith.d.marshall@ntlworld.com>
384 * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
387 2004-09-23 Werner LEMBERG <wl@gnu.org>
389 * tmac/an-old.tmac (ne): Using default scaling operator.
391 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
393 This change implements the following features:
396 New numeric register: Defines number of lines following LP, PP,
397 QP, IP or XP, which must be kept together, before any automatic
398 page break. If insufficient space remains on the current page, a
399 page break is forced before the new paragraph begins.
402 New numeric register: Sets number of lines of following paragraph
403 which must be kept with a heading, defined by NH or SH, before any
404 automatic page break. If insufficient space remains on the
405 current page, a page break is forced before the heading.
408 (Thanks to Joerg van den Hoff, for this idea).
410 New numeric register: Sets the first level of heading (set with
411 NH), which will keep the same point size as body text; e.g. if
412 GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
413 point size specified by \n[PS], but .NH 2 and .NH 1 will have
414 progressively larger point sizes, determined by \n[PSINCR] (see
418 New numeric register: Sets the point size increment for each level
419 of heading, (set with NH), below the threshold level set by
420 GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
421 then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
422 and all other levels will remain at 10pt, (because \n[PS] = 10).
425 Existing macro now accepts a numeric argument, to make heading
426 size match that of NH with same argument value, when the
427 GROWPS/PSINCR feature is enabled.
430 New string, set by NH macro, replaces the existing (undocumented)
431 use of SN, to represent the assigned section number.
434 New string, set by NH macro, represents the assigned section
435 number, but omits the terminal period (periods at intermediate
436 levels are retained).
439 String set by NH macro, originally undocumented, now implemented
440 as an alias for SN-DOT (which reproduces original behaviour).
442 * tmac/s.tmac (PORPHANS): New register.
444 (HORPHANS, GROWPS, PSINCR): New registers.
445 (SH-NO-TAG, @SH): Use them.
448 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
450 * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
451 of `Ds' and `De' macros.
453 2004-09-10 Werner LEMBERG <wl@gnu.org>
455 In tbl, handle \a as an interpreted leader character if in
458 * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
459 LEADER_CHAR): New macros.
460 (compatible_flag): New declaration.
462 * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
463 LEADER_3, and LEADER_4 to `state'.
464 (table_input::get): Handle `\a'.
466 * src/preproc/tbl/table.cpp (PREFIX): Removed.
467 (LEADER_REG): New macro.
468 (table::init_output): Define LEADER_REG string register if in
471 * src/preproc/tbl/tbl.man: Document it.
473 2004-08-18 Werner LEMBERG <wl@gnu.org>
475 * tmac/doc.tmac (An): Fix error message.
477 2004-08-06 Werner LEMBERG <wl@gnu.org>
479 * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
480 file can't be opened. UNIX tbl has the same behaviour.
482 2004-08-05 Y T <doarhop@hotmail.com>
484 * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
485 (DBRead): If in compatibility mode, take into account the text
486 when computing figure boundaries.
488 2004-08-05 Werner LEMBERG <wl@gnu.org>
490 * src/preproc/soelim/soelim.man: Improved. Based on suggestions
491 from Tadziu Hoffmann.
493 2004-08-03 Werner LEMBERG <wl@gnu.org>
495 * doc/meref.me: Document `_M' register.
497 2004-08-03 Martin Husemann <martin@duskware.de>
499 Make hpftodit work correctly on big-endian systems.
501 * src/utils/hpftodit/hpftodit.cpp (File): New method
502 `get_uint32(char *)'.
503 (entry): New member `orig_value'.
504 (read_tags): Use new method.
505 (output_font_name, read_and_output_pcltypeface, dump_ascii):
508 2004-08-01 Werner LEMBERG <wl@gnu.org>
510 * tmac/s.tmac: Undo change 2003-06-29. The proper macro definitions
511 are already in X11's `macros.t' file.
513 2004-08-01 Jeff Conrad <jeff_conrad@msn.com>
515 * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
517 (read_and_output_pcltypeface): Handle strings with length <= 4.
519 2004-07-27 Egil Kvaleberg <egil@kvaleberg.no>
521 * tmac/s.tmac (pg@top): Don't save `PO' register.
522 (pg*end-col, pg*end-page): Directly use `PO' register.
524 2004-07-27 Werner LEMBERG <wl@gnu.org>
526 * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
528 * src/preproc/refer/refer.cpp (output_references): Check for
530 * src/preproc/refer/refer.man: Improve documentation of
531 `bibliography' command.
533 2004-07-26 Werner LEMBERG <wl@gnu.org>
535 Add requests `fcolor' and `gcolor'.
537 * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
539 (init_env_requests): Add `fcolor' and `gcolor'.
541 * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
543 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
544 Document new requests.
546 2004-07-24 Werner LEMBERG <wl@gnu.org>
548 Add support for fractional point sizes in ms macros. A value for
549 PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
550 by 1000. For example, `.nr PS 10250' sets the font size to 10.25p.
552 * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
553 PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
555 * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
557 2004-07-19 Werner LEMBERG <wl@gnu.org>
559 * src/preproc/pic/lex.cpp (for_input): Add member `from'.
561 (do_for, for_input::get, for_input::peek): Handle negative `by'.
562 * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
564 2004-07-08 Thomas Klausner <wiz@netbsd.org>
566 * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
567 * tmac/groff_mdoc.man: Updated.
569 2004-07-05 Werner LEMBERG <wl@gnu.org>
571 * doc/groff.texinfo: Further improve documentation of `hcode'.
573 2004-07-04 Sang Dae Yu <sdyu@bh.knu.ac.kr>
575 Improve appearance of arrows in pic.
577 * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
579 Use two line segments for drawing non-filled arrow head.
580 (line_object::print, spline_object::print): Shorten line length to
581 avoid arrow sticking.
582 (arc_object::print): Take arrow direction into account.
584 2004-07-03 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
586 * tmac/groff_www.man: Update documentation of .MPIMG.
588 2004-07-03 Werner LEMBERG <wl@gnu.org>
590 * tmac/an-old.tmac (RI): Always start with font `R'.
591 (RI, IR): Properly end with font `R'.
593 2004-07-02 Paul Eggert <eggert@cs.ucla.edu>
595 * man/ditroff.man, man/groff_font.man, man/groff_out.man,
596 src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
597 src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
598 Don't pass more than six arguments to .R, .I, .B, etc., for
599 compatibility with traditional troff macros.
601 2004-07-02 Werner LEMBERG <wl@gnu.org>
603 * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
604 s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
606 (PUSH_COMP_MODE): New internal character constant.
609 * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
610 PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
611 (token::next, macro::append): Handle PUSH_COMP_MODE.
612 (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
613 POP_GROFFCOMP after each of the decoded arguments to make them
614 independent from the compatibility mode status.
615 (comp_mode): Add `COMP_ENABLE'.
616 (do_define_string, do_define_macro): Handle COMP_ENABLE.
617 (define_string, append_string, define_macro, define_indirect_macro,
618 append_macro, append_indirect_macro): Handle `compatible_flag'.
619 (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
621 * man/groff_diff.man, doc/groff.texinfo: Updated.
623 2004-07-01 Werner LEMBERG <wl@gnu.org>
625 * doc/groff.texinfo: Improve documentation of `hcode'.
626 Use @documentencoding and convert document to latin-1; to do that
627 make latin characters active and assign proper macros (within a
628 @tex...@end tex environment).
629 * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
630 * doc/Makefile.sub (groff): Ditto.
632 2004-06-29 Werner LEMBERG <wl@gnu.org>
634 Implement two new conditional operators `F <name>' and `S <name>'
635 which check whether <name> is a valid font or style, respectively.
637 * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
638 (text_file::text_file): Updated.
639 (text_file::error): Don't emit message if `silent' is set.
640 (font::load_font): Add optional third argument (which is directly
642 (font::load): Add optional second argument to check the header of
643 a font only, without emitting warning or error messages.
644 * src/include/font.h (font): Updated.
646 * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
648 * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
649 fourth argument to check a font without mounting.
650 (check_font, check_style): New functions.
651 * src/roff/troff/node.h: Updated.
653 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
656 2004-06-27 Werner LEMBERG <wl@gnu.org>
658 Implement new string-valued register `.sty' to return the current
661 * env.cpp (environment::get_style_name_string): New function.
662 (init_env_requests): Add `.sty' register.
663 * env.h (environment): Updated.
664 * node.cpp (font_info): Make `get_style_name' a friend.
665 (get_style_name): New function.
668 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
671 2004-06-15 Werner LEMBERG <wl@gnu.org>
673 * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
676 2004-06-10 Colin Percival <colin.percival@wadham.ox.ac.uk>
678 * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
679 and \n[mo] to avoid dependency on current date.
681 2004-06-08 Werner LEMBERG <wl@gnu.org>
683 * Makefile.sub (install_data): New target.
685 2004-06-04 Werner LEMBERG <wl@gnu.org>
687 * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
689 2004-06-03 Werner LEMBERG <wl@gnu.org>
691 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
693 (install_data): Add $(srcdir).
695 * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
698 2004-06-02 Werner LEMBERG <wl@gnu.org>
700 * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
701 Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
702 Add test for Xmu library.
703 (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
704 GROFF_APPRESDIR_DEFAULT): New macros.
706 * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
707 and GROFF_APPRESDIR_DEFAULT.
709 * configure: Regenerated.
711 * Makefile.in (appresdir): New variable.
712 (MDEFINES): Add appresdir.
714 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
716 (install_data, uninstall_sub): New targets to handle GXditview.ad.
718 * src/utils/indxbib/Makefiles.ub (install_data): Depend on
719 `$(srcdir)/eign', not `eign'.
721 * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
723 * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
724 src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
725 Protect (g)xditview with `\%' to avoid hyphenation.
726 Other minor formatting.
728 2004-06-01 Werner LEMBERG <wl@gnu.org>
730 Integrate gxditview into groff's standard directory hierarchy.
732 * src/xditview/*: Moved to ...
733 * src/devices/xditview/*: Here.
734 Moved DviChar.h and XFontName.h to src/include.
735 Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
736 Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
737 Moved xtotroff.c to new directory src/utils/xtotroff.
738 Provide proper Makefile.sub files (reusing the stuff from
740 DESC renamed to DESC.in.
741 Removed GXDitview-ad.h, INSTALL, Imakefile.in.
742 Converted everything from K&R to ANSI C.
743 Decorated with const where appropriate.
744 Cast string constants with `String' and `char *' where appropriate.
745 Made it compile with C++ (used as a C compiler).
746 Removed other minor compiler warnings.
748 * src/devices/xditview/device.c: Include config.h, string.h, and
750 Don't declare `exit', `strtok', `strchr', and `getenv'.
753 * src/devices/xditview/font.c: Don't declare `XParseFontName' and
756 * src/devices/xditview/xditview.c: Include config.h.
757 Include stdio.h earlier.
758 Protect declaration of `popen' and `pclose' with
759 NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
760 Replace `caddr_t' with `XtPointer'.
761 (MakePromptFunc): New typedef.
762 (DoPrint): Use RETSIGTYPE.
763 (promptfunction): Change type to MakePromptFunc.
764 (MakePrompt): Use MakePromptFunc for third argument.
767 * src/devices/xditview/ad2c: Add casts to `String'.
769 * src/include/XFontName.h (XFontNameString): Don't use array
771 Add prototypes for `XParseFontName', `XFormatFontName',
772 `XCompareFontName', and `XCopyFontName'.
774 * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
777 * src/utils/xtotroff/xtotroff.c: Include getopt.h.
778 Don't declare `XParseFontName' and `XFormatFontName'.
780 (main): Remove `optind' and `optarg'.
782 * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
783 (to select programs which need X).
784 Make XDEVIDIRS depend on `FORCE'.
785 (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
788 (LIBDIRS): Use XLIBDIRS.
789 (CPROGDIRS): Use XPROGDIRS.
790 (DEVDIRS): Remove font directories for gxditview.
791 (ALLDIRS, DISTDIRS): Add XDEVDIRS.
792 (EXTRADIRS): Remove src/xditview.
794 * Makefile.sub (DISCLEANFILES): Updated.
796 * Makefile.comm (LIBXUTIL): New variable.
797 (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
798 (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
800 * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
802 * aclocal.m4 (GROFF_X11): New function.
804 * configure.ac: Call GROFF_X11.
805 Don't create src/xditview/Imakefile.
806 Don't emit notice how to build gxditview.
808 * configure: Regenerated.
810 * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
812 2004-05-28 Akihiro Sagawa <sagawa@sohgoh.net>
814 * Makefile.in (CPPFLAGS): Define.
815 (MDEFINES): Add CPPFLAGS.
817 2004-05-27 Werner LEMBERG <wl@gnu.org>
819 * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
821 2004-05-26 Niklas Edmundsson <nikke@acc.umu.se>
823 Fix problems with `friend name injections'.
825 * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
826 make_script_box), src/roff/troff/div.h (end_diversions),
827 src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
830 2004-05-25 Bernd Warken <bwarken@mayn.de>
832 * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
834 2004-05-25 Werner LEMBERG <wl@gnu.org>
836 * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
837 src/libs/libgroff/color.cpp: Include lib.h.
839 2004-05-25 Paul Eggert <eggert@cs.ucla.edu>
841 * PROBLEMS: Update documentation for problems with Sun C++ 5.0
842 through Forte 6u1, and for how to get GNU make on Solaris.
844 2004-05-24 Werner LEMBERG <wl@gnu.org>
846 * PROBLEMS: Document problems with gcc 3.4.0 on Sun. Reported
849 2004-05-15 Keith Marshall <keith.d.marshall@ntlworld.com>
851 * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
854 2005-05-14 Werner LEMBERG <wl@gnu.org>
856 * REVISION: Set to 2.
858 * aclocal.m4 (GROFF_STDINT_H): Removed.
859 (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
861 * configure.ac: Updated.
862 * configure, src/include/config.hin: Regenerated.
864 * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
865 inttypes.h conditionally.
867 2003-05-13 Werner LEMBERG <wl@gnu.org>
869 Version 1.19.1 released
870 =======================
872 2004-05-10 Stephen Gildea <http://www.gildea.com/stephen>
874 * src/preproc/refer/label.y (same_author_last_name,
875 same_author_name): Handle empty sort keys.
877 2004-05-10 Werner LEMBERG <wl@gnu.org>
879 * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
882 * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
883 doc-str-Lb-librt): Reset font.
884 (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
885 Provide `doc-str-Lb' to reset font.
886 * tmac/groff_mdoc.man: Updated.
888 2004-05-08 Jan Schaumann <jschauma@netmeister.org>
890 * src/preproc/html/pre-html.cpp (make_message): Make it work for
891 snprintf versions which don't conform to ANSI C 99 (this is,
892 counting the string's trailing null byte in the return value).
894 2004-05-07 Keith Marshall <keith.d.marshall@ntlworld.com>
896 * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
897 that all implementations of sprintf handle null pointers correctly.
899 2004-05-04 Werner LEMBERG <wl@gnu.org>
901 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
902 Document `.U' register.
904 * src/roff/troff/env.cpp (environment::mark_last_line)
905 [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
907 2004-05-04 Larry Kollar <kollar@alltel.net>
909 New read-only register `.U'; it returns 1 in safer mode and 0
912 * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
915 2004-05-03 Werner LEMBERG <wl@gnu.org>
917 * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
919 2004-04-17 Werner LEMBERG <wl@gnu.org>
921 * src/include/font.h (font): Use `int' for ch_index.
922 * src/libs/libgroff/font.cpp (font::alloc_ch_index,
923 font::compact): Updated.
925 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
928 * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
929 (hyphen_word): Fix compiler warnings.
930 * src/roff/troff/input.cpp (get_char_for_escape_name): Return
933 (get_delim_number, get_line_arg): Change second argument type to
935 (macro_header::copy, token::next, do_define_string,
936 do_define_character, substring_request, asciify_macro,
937 unformat_macro, read_size, non_interpreted_node::interpret,
938 while_request, main: Fix compiler warnings.
939 (read_color_draw_node): Initialize `col'.
941 * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
942 `start_col' and `end_col' of type `int'.
943 (vertical_rule): Make `col' of type `int'.
945 * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
948 * src/preproc/refer/label.y (uppercase_array, lowercase_array):
950 (format_serial): Use them to remove dependency on ASCII.
952 * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
954 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
957 * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
959 (glyph): Change type of `hpos' to `int'.
961 * src/devices/lbp/lbp.cpp (strsep): Removed. Unused.
962 * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
964 * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
966 * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
968 2004-04-16 Werner LEMBERG <wl@gnu.org>
970 * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
971 src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
972 src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
973 `double' instead of `float' everywhere.
974 * src/preproc/grn/main.cpp: Use `double' instead of `float'
976 (main): Add return value.
977 * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
979 Update all user functions.
981 * src/include/search.h, src/include/ptable.h, src/include/printer.h,
982 src/preproc/eqn/box.h, src/preproc/pic/object.h,
983 src/preproc/refer/refer.h, src/preproc/tbl/table.h,
984 src/preproc/tbl/table.cpp, src/roff/troff/env.h,
985 src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
986 src/roff/troff/input.cpp, src/roff/troff/request.h,
987 src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
990 * src/utils/indxbib/signal.c: Include stdlib.h.
992 2004-04-14 Keith Marshall <keith.d.marshall@ntlworld.com>
994 * tmac/s.tmac (@init, RP): Allow initialization of the PO register
995 before the first page.
997 2004-04-14 Thomas Klausner <wiz@netbsd.org>
999 * tmac/doc-common (doc-volume-as-*): Use lowercase names.
1000 (doc-operating-system-*): Updated.
1001 * tmac/doc-syms (doc-str-St-*): Various small fixes.
1002 (doc-str-Lb-*): Add more library names.
1004 2004-04-10 Art Haas <ahaas@airmail.net>
1006 * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
1009 2004-04-09 Art Haas <ahaas@airmail.net>
1011 * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
1013 2004-04-09 Keith Marshall <keith.d.marshall@ntlworld.com>
1015 * arch/misc/shdeps.sh: Generate better comment for sed script.
1017 2004-04-08 Art Haas <ahaas@airmail.net>
1019 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1020 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
1021 src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
1022 src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
1023 (polyfill), src/preproc/grn/main.cpp (polyfill),
1024 src/preproc/refer/command.cpp (command_table),
1025 src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
1026 gcc 3.5 doesn't like).
1028 2004-04-08 Werner LEMBERG <wl@gnu.org>
1030 Removing many compiler warnings. groff should now compile with
1031 a C++ compiler used for C files also. [Simple variable renamings
1032 to avoid shadowing aren't logged in detail.]
1034 * src/devices/grodvi/dvi.cpp: Some local variable renamings.
1035 (draw_dvi_printer::draw) ['c']: Enclose in block.
1037 * src/devices/grohtml/post-html.cpp: Some local variable renamings.
1038 (page::add_line): Fix typos.
1039 * src/devices/grohtml/html-text.cpp: Some local variable renamings.
1041 * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
1042 Some local variable renamings.
1043 * src/devices/grolbp/lbp.h: Some local variable renamings.
1045 * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
1048 * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
1049 Remove redundant local variable declaration.
1050 * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
1051 Don't use `caddr_t' but `void *'.
1052 Enclose functions with `extern "C"' for C++.
1054 * src/libs/libdriver/input.cpp (remember_filename,
1055 remember_source_filename): Use cast for string constant.
1057 * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
1058 src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
1059 src/libs/libgroff/geometry.cpp: Some local variable renamings.
1060 * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
1062 Enclose functions with `extern "C"' for C++.
1063 * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
1064 (needs_quoting): Return `int'.
1065 (quote_arg): Add proper casts to malloc and realloc.
1066 * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
1067 various MS Windows environments.
1068 (spawnvp_wrapper): Add proper cast to malloc.
1070 * src/preproc/eqn/box.h: Remove redundant declarations of
1071 `make_script_box', `make_mark_box' and `make_lineup_box'.
1072 * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
1073 * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
1076 * src/preproc/grn/hpoint.cpp: Some local variable renamings.
1077 * src/preproc/grn/hgraph.cpp: Some local variable renamings.
1078 (dx, dy): Renamed functions to...
1079 (deltax, deltay): This.
1080 * src/preproc/grn/main.cpp: Some local variable renamings.
1081 (deffont): Add `const'.
1082 (initpic, conv): Use cast for string constant.
1084 * src/preproc/html/pre-html.cpp: Some local variable renamings.
1085 (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
1086 (char_buffer::run_output_filter): Second argument is unused.
1087 * src/preproc/html/pushback.cpp: Some local variable renamings.
1089 * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
1090 * src/preproc/pic/object.cpp: Some local variable renamings.
1092 * src/preproc/refer/label.y (lookup_label): Remove redundant
1093 declaration of local variable.
1095 * src/preproc/soelim.cpp: Remove redundant declaration of
1096 `interpret_lf_args'.
1098 * src/preproc/tbl/main.cpp: Some local variable renamings.
1100 * src/roff/groff/groff.cpp (main): Use cast for string constant.
1101 * src/roff/groff/pipeline.c: Enclose declarations of `error',
1102 `c_fatal', and `i_to_a' with `extern "C"' for C++.
1103 Don't use C++-style comments.
1105 * src/roff/troff/env.h: Remove redundant declaration of `title'.
1106 * src/roff/troff/node.h, src/roff/troff/env.cpp,
1107 src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
1109 * src/roff/troff/div.h: Remove redundant declaration of
1111 * src/roff/troff/troff.h: Remove redundant declaration of
1113 * src/roff/troff/input.cpp: Remove redundant declaration of
1114 `handle_first_page_transition' and `process_input_stack'.
1116 * src/utils/hpftodit.cpp: Some local variable renamings.
1118 * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
1120 Don't define RETSIGTYPE.
1121 * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
1123 * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
1124 (error): Use `const' in argument.
1125 (main): Remove redundant declaration of `optind'.
1126 Move declaration of `Version_string' to top-level.
1128 * PROBLEMS: Document difficulties compiling signal.c if a C++
1129 compiler is used for C.
1131 2004-04-07 Werner LEMBERG <wl@gnu.org>
1133 * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
1135 2004-04-06 Keith Marshall <keith.d.marshall@ntlworld.com>
1137 Make scripts like nroff.sh and neqn.sh portable across various
1138 (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
1139 non-POSIX path separators. The idea is to extend those scripts to
1140 decide at run-time (of the script) which path separator to use.
1142 * arch/misc/Makefile.sub: New file.
1143 * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
1144 This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
1145 a proper definition of the variable `GROFF_RUNTIME'.
1147 * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
1148 (MDEFINES): Add SH_DEPS_SED_SCRIPT.
1149 (PROGDEPDIRS): New variable.
1151 (PROGDIRS): Add PROGDEPDIRS.
1153 * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
1154 Don't substitute @SEP@ and @BINDIR@.
1155 * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
1156 (PATH): Use GROFF_RUNTIME.
1158 * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
1159 Don't substitute @SEP@ and @BINDIR@.
1160 * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
1161 (PATH): Use GROFF_RUNTIME.
1163 2004-04-05 Keith Marshall <keith.d.marshall@ntlworld.com>
1165 * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
1166 Cygwin which doesn't handle stderr correctly.
1168 2004-03-08 Werner LEMBERG <wl@gnu.org>
1170 * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
1171 against empty argument. Problem reported by <cgd@broadcom.com>.
1173 2004-03-05 Keith Marshall <keith.d.marshall@ntlworld.com>
1175 * Makefile.in (SEP): Replaced with...
1176 (RT_SEP, SH_SEP): Separators for the target platform's native path
1177 separator and the build environment, respectively.
1178 (fontpath, tmacpath): Use RT_SEP.
1179 (MDEFINES): Updated.
1181 * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1182 * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1183 * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
1184 * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
1186 2004-03-05 Werner LEMBERG <wl@gnu.org>
1188 * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200. This helps to
1189 reduce alignment problems with newer printers which use built-in
1190 TrueType fonts (instead of the older Intellifonts). The ideal
1191 solution is to provide a second set of groff metric files, but this
1192 is extremely time-consuming to produce, given that HP's metric
1193 files are very rudimentary.
1195 2004-03-01 Werner LEMBERG <wl@gnu.org>
1197 * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
1198 s/operand/argument/ in error message.
1200 2004-03-01 Keith Marshall <keith.d.marshall@ntlworld.com>
1202 * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
1205 2004-03-01 Antti Kantee <pooka@netbsd.org>
1207 * tmac/s.tmac (XE): Fix error message.
1209 2004-02-27 Jeff Conrad <jeff_conrad@msn.com>
1211 * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
1214 * src/roff/groff/pipeline.c: Declare strcasecmp.
1215 (run_pipeline) [_WIN32]: Use function name variants which don't
1217 Fix stream handling.
1219 2004-02-27 Keith Marshall <keith.d.marshall@ntlworld.com>
1221 * src/include/nonposix.h: Fix declaration of `system_shell_name'.
1222 Declare `spawnvp_wrapper' and macro definitions of spawnvp only
1223 for platforms which use the native Win32 runtime libraries.
1224 (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
1226 * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
1227 QUOTE_ARG_REALLOC_ERROR): Fix string.
1229 * src/preproc/html/pre-html.cpp: Remove declaration of
1231 Don't use __MINGW32__.
1232 s/DEBUG_FILE/DEBUG_FILE_DIR/.
1233 (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
1234 (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
1235 (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
1236 calls to `set_redirection' and `WAIT'.
1237 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
1238 Fix calls to `set_redirection' and `save_and_redirect'.
1239 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
1240 to `set_redirection' and `save_and_redirect'.
1241 (usage): Fix message.
1242 (makeTempFiles, main): Use `DEBUG_FILE'.
1244 2004-02-21 Werner LEMBERG <wl@gnu.org>
1246 * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
1248 2004-02-21 Keith Marshall <keith.d.marshall@ntlworld.com>
1250 * src/libs/libgroff/quotearg.c: New file, providing proper argument
1251 quoting for MSVC's spawn* and exec* functions.
1252 * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
1253 spawnvp with proper quoting for MSVC.
1255 * src/libs/libgroff/assert.cpp (program_name),
1256 src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
1257 * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
1259 * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
1261 * src/include/error.h (program_name): Declare as `extern "C"'.
1262 * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
1264 2004-02-21 Jeff Conrad <jeff_conrad@msn.com>
1266 * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
1268 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
1270 2004-02-20 Jeff Conrad <jeff_conrad@msn.com>
1272 * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
1274 (sbasename) [__MSDOS__ || ...]: New function.
1275 (system_shell_name) [__MSDOS__ || ...]: Use a different, more
1277 (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
1278 (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
1280 Use STDOUT_FILENO instead of hardcoded file handle.
1281 (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
1283 2004-02-19 Werner LEMBERG <wl@gnu.org>
1285 * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
1286 avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
1288 2004-02-18 Werner LEMBERG <wl@gnu.org>
1290 * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
1291 new font and mapping files.
1293 2004-02-18 Jeff Conrad <jeff_conrad@msn.com>
1294 Keith Marshall <keith.d.marshall@ntlworld.com>
1296 * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
1297 an input pipe. This is needed for the MSVC compiler to make troff's
1300 * src/roff/troff/div.cpp: Include nonposix.h.
1301 (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
1303 2004-02-17 Werner LEMBERG <wl@gnu.org>
1305 * font/devlj4/generate/special.awk: New script.
1306 * font/devlj4/generate/Makefile (S): Use special.awk.
1307 * font/devlj4/*: Regenerated, including the following new files:
1308 Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
1309 MS Symbol (SYMBOL), Wingdings (WINGDINGS).
1310 * NEWS: Document new lj4 fonts and revised hpftodit.
1312 2004-02-17 Paco Andrés Verdú <pandres@dragonet.es>
1314 * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
1316 2004-01-25 Werner LEMBERG <wl@gnu.org>
1318 * src/libs/libgroff/progname.cpp: Replaced with...
1319 * src/libs/libgroff/progname.c: New file.
1320 * src/libs/libgroff/Makefile.sub: Updated accordingly.
1322 2004-01-17 Werner LEMBERG <wl@gnu.org>
1324 * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
1326 2004-01-16 Jeff Conrad <jeff_conrad@msn.com>
1328 * font/devlj4/generate/wingdings.map,
1329 font/devlj4/generate/symbol.map: Include unnamed glyphs.
1330 Use groff glyph names where possible.
1331 * src/devices/grolj4/lj4_font.man: Minor updates.
1333 2004-01-13 Werner LEMBERG <wl@gnu.org>
1335 * tmac/www.tmac (DC): Handle TTY devices.
1337 * doc/webpage.ms: Document viewCVS from ffii.org.
1338 * NEWS, README: Updated.
1340 * src/roff/groff/groff.man: Mention lj4_font man page.
1342 * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
1344 (FONTS): Add SYMBOL and WINGDINGS.
1345 (SYMBOL, WINGDINGS): New targets.
1347 2004-01-13 Jeff Conrad <jeff_conrad@msn.com>
1349 * src/devices/grolj4/lj4_font.man: New man page.
1350 * src/devices/grolj4/Makefile.sub (MAN5): New variable.
1351 * src/devices/grolj4.man: Mention lj4_font man page.
1353 * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
1354 * src/utils/hpftodit/hpftodit.man: Document it.
1356 Remove details about fonts (which are now in lj4_font.man).
1358 * font/devlj4/generate/symbol.map,
1359 font/devlj4/generate/wingdings.map: New files.
1361 2004-01-12 Werner LEMBERG <wl@gnu.org>
1363 * README: Mention ffii's viewcvs access.
1365 2004-01-09 Werner LEMBERG <wl@gnu.org>
1367 * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
1369 2004-01-09 Jeff Conrad <jeff_conrad@msn.com>
1371 Revert most of the change from 2004-01-03 to better control used
1374 * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
1375 (text_symbol_sets, special_symbol_sets): New arrays.
1376 (symbol_set_table): New global variable.
1377 (read_symbol_sets): Use search order given in the text_symbol_sets
1378 and special_symbol_sets arrays. If command line flag -a is not
1379 given, search both arrays.
1380 (output_charset): Require x_height_tag only for command line flag -i.
1382 2004-01-06 Werner LEMBERG <wl@gnu.org>
1384 Implement string-valued registers \n[.m] and \n[.M] to return the
1385 name of the current drawing and background color, respectively.
1387 * src/roff/troff/symbol.h: Moved to...
1388 * src/include/symbol.h: Here.
1389 Small fixes to make it work outside of the `troff' directory.
1390 * src/roff/troff/symbol.cpp: Moved to...
1391 * src/libs/libgroff/symbol.cpp: Here.
1392 Small fixes to make it work outside of the `troff' directory.
1394 * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
1395 (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
1398 * src/include/color.h: Include symbol.h.
1399 (color): Add new field `nm'.
1400 * src/libs/libgroff/color.cpp (color::color): Updated.
1402 * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
1403 src/roff/troff/node.cpp, src/roff/troff/number.cpp,
1404 src/roff/troff/reg.cpp: Don't include symbol.h.
1406 * src/roff/troff/env.cpp: Don't include symbol.h.
1407 (environment::get_glyph_color_string,
1408 environment_get_fill_color_string): New member functions.
1409 (init_env_requests): Handle `.m' and `.M' registers.
1410 * src/roff/troff/input.cpp: Don't include symbol.h.
1411 (default_symbol): Moved to symbol.cpp/symbol.h.
1412 (do_glyph_color, do_fill_color, define_color): Pass symbol name
1413 to color constructor.
1414 * src/roff/troff/env.h: Updated.
1416 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1417 Document new registers.
1419 2004-01-05 Werner LEMBERG <wl@gnu.org>
1421 * src/roff/troff/node.cpp (space_node::get_breakpoints,
1422 space_node::nbreaks): Protect against zero `next' field.
1424 2004-01-03 Jeff Conrad <jeff_conrad@msn.com>
1426 In hpftodit, use the symbol sets offered in the TFM.
1428 * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
1429 (symbol_set, text_symbol_sets, special_symbol_sets,
1430 symbol_set_table): Removed.
1431 (get_printcode): Removed.
1432 (read_symbol_sets): Initialize `symbol_set' field with
1434 Simplify code to just use the `kind' value.
1435 (output_charset): Improve output formatting.
1436 (dump_symbols): Simplified.
1438 2004-01-02 Werner LEMBERG <wl@gnu.org>
1440 * font/devlj4/generate/text.map: Add more MSL numbers.
1442 2004-01-02 Jeff Conrad <jeff_conrad@msn.com>
1444 * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
1445 (text_symbol_sets): Add more symbol sets.
1446 (debug_flag): New static variable (moved from `main').
1447 (get_printcode, show_symset): New functions.
1448 (main): Remove `debug_flag'.
1449 (output_charset): Use `show_symset'.
1450 (dump_symbols): Use `show_symset'.
1451 Print symsets for all glyphs.
1452 (read_map): Actually call `unicode_to_ucode_make' but this time
1455 2004-01-01 Werner LEMBERG <wl@gnu.org>
1457 * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
1458 Fix placement of comments.
1460 2004-01-01 Jeff Conrad <jeff_conrad@msn.com>
1462 * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
1463 option `-d' is given.
1464 (output_charset): Improve warning messages to give more information.
1465 (dump_symbols): Make information more precise.
1467 (read_map): Don't call unicode_to_ucode_name; the glyph names must
1468 appear as-is and shouldn't be decomposed.
1470 2003-12-31 Werner LEMBERG <wl@gnu.org>
1472 * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
1473 * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
1474 (FONTS): Add TrueType font families Arial and Times New Roman.
1475 (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
1476 * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
1479 2003-12-31 Jeff Conrad <jeff_conrad@msn.com>
1481 * test-groff.in (SEP): Quote value.
1482 * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
1483 `tem' to `char*' to avoid deallocation of a pointer to a constant
1484 object which some compilers don't like.
1486 2003-12-31 Werner LEMBERG <wl@gnu.org>
1488 * font/devlj4/generate (text.map, special.map): Rewritten to work
1489 with the new hpftodit version.
1491 2003-12-30 Jeff Conrad <jeff_conrad@msn.com>
1493 * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
1494 set and 8bit character code for all glyphs also.
1496 2003-12-30 Werner LEMBERG <wl@gnu.org>
1498 * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
1500 2003-12-29 Werner LEMBERG <wl@gnu.org>
1502 More fixes for MSVC compiler.
1504 * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
1507 * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
1508 STDERR_FILENO) [_MSC_VER]: Define conditionally.
1509 (getpid) [_MSC_VER]: Remove.
1510 Include direct.h and process.h conditionally.
1512 * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
1513 parentheses for a_delete.
1515 * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
1517 * test-groff: Replaced with...
1518 * test-groff.in: This new template to handle path separator
1521 * configure.ac: Check for direct.h and process.h.
1522 Generate test-groff script.
1523 * configure, src/include/config.hin: Regenerated.
1525 2003-12-28 Werner LEMBERG <wl@gnu.org>
1527 Add integral extension glyph.
1528 Add new option `-x' to afmtodit to suppress use of built-in AGL.
1530 * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
1532 * font/devps/generate/textmap: Provide entry for `integralex' to
1533 override (old) PUA value of the AGL.
1534 * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
1535 * font/devps/*: Regenerated.
1537 * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
1538 * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
1540 2003-12-27 Werner LEMBERG <wl@gnu.org>
1542 Add forgotten `coproduct' symbol (already available for DVI).
1544 * font/devhtml/R.proto, font/devps/generate/textmap,
1545 font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
1546 src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
1547 U+2210 (\[coproduct]).
1549 2003-12-26 Jeff Conrad <jeff_conrad@msn.com>
1551 hpftodit has been extended to handle TrueType metric files and
1552 more glyphs. See hpftodit.man for more details.
1554 * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
1555 ctype.h, and unicode.h.
1556 s/msl/charcode/ everywhere since we now handle Unicode values also.
1557 (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
1558 Use it where appropriate.
1559 (MULTIPLIER): Replaced with...
1560 (multiplier): New global static variable.
1562 (tag_type): Add more TFM tags.
1563 (tag_name): New array.
1564 (ENUM_TYPE, FLOAT_TYPE): Removed.
1565 (BYTE_TYPE): New value assigned.
1566 (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
1567 (text_symbol_sets, special_symbol_sets): Extended to cover more
1569 (check_type): Add return value.
1570 (check_units): Add parameters to get ppi and upem values.
1571 Handle TrueType TFM data.
1572 (output_font_name): New function.
1573 (output_charset): Add parameter to handle TFM type.
1574 Handle TrueType TFMs also.
1575 (em_fract): New macro.
1576 (dump_tags): Be much more verbose and handle more tags.
1577 (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
1578 (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
1580 (read_map): Add parameter to handle TFM type.
1581 Handle both MSL and Unicode mappings.
1582 (main): Add two new command line options `-a' and `-q'.
1583 Updated to make use of new functions.
1586 * src/utils/hpftodit/hpuni.cpp: New file.
1588 * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
1591 2003-12-25 Werner LEMBERG <wl@gnu.org>
1593 * src/include/nonposix.h (read) [_MSC_VER]: Define.
1595 2003-12-24 Werner LEMBERG <wl@gnu.org>
1597 * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
1598 by Michail Vidiassov <master@iaas.msu.ru>.
1600 2003-12-20 Werner LEMBERG <wl@gnu.org>
1602 * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1604 Add missing latin-2 glyphs.
1605 * font/devutf8/R.proto: Add missing latin-2 glyphs.
1607 * tmac/troffrc: Load `composite.tmac' earlier.
1609 * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
1610 u00{53,73}_0327, and u0049_0307.
1611 * tmac/X.tmac: Add u00{47,67}_0306.
1612 * tmac/tty-char.tmac: Use composite glyph names for readability.
1616 * src/include/unicode.h: Remove `extern' keywords.
1618 2003-12-20 Nilgün Belma Bugüner <nilgun@superonline.com>
1620 * tmac/latin5.tmac: New file.
1622 2003-12-19 Werner LEMBERG <wl@gnu.org>
1624 Add some glyphs needed for Turkish.
1626 * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
1629 * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
1630 * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
1631 u00{53,73}_0327, and u0049_0307.
1633 2003-12-18 Werner LEMBERG <wl@gnu.org>
1635 * src/devices/grops/ps.cc (ps_output::put_float): Revert change
1637 Remove trailing zeros.
1639 2003-12-17 Werner LEMBERG <wl@gnu.org>
1641 Make \? transparent to end-of-sentence recognition.
1643 * src/roff/troff/input.cc (non_interpreted_node): Add
1644 `ends_sentence' member function.
1646 2003-12-16 Werner LEMBERG <wl@gnu.org>
1648 * doc/groff.texinfo: Document `dt' request correctly.
1649 Other minor typographical improvements.
1651 2003-12-10 Michail Vidiassov <master@iaas.msu.ru>
1653 * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
1655 2003-12-10 Richard Stallman <rms@gnu.org>
1657 * LICENSE: Better wording.
1659 2003-12-09 Werner LEMBERG <wl@gnu.org>
1661 * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
1662 * configure, NEWS: Updated.
1664 2003-12-08 Werner LEMBERG <wl@gnu.org>
1666 * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
1668 2003-12-07 Bernd Warken <bwarken@mayn.de>
1672 2003-12-07 Werner LEMBERG <wl@gnu.org>
1674 * INSTALL: Improved.
1676 2003-12-05 Keith Marshall <keith.d.marshall@ntlworld.com>
1678 Use path separator character of target platform for compiled-in
1681 * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
1682 * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
1683 * configure: Regenerated.
1684 * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
1686 2003-12-05 Werner LEMBERG <wl@gnu.org>
1688 * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
1689 Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
1691 2003-12-04 Bernd Warken <bwarken@mayn.de>
1693 * LICENSE: New file.
1695 2003-12-03 Werner LEMBERG <wl@gnu.org>
1697 * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
1698 ligatures present in AFM files since groff currently only
1699 understands some standard ligatures and nothing else.
1701 2003-12-03 Jeff Conrad <jeff_conrad@msn.com>
1703 * src/roff/groff/groff.cpp (main): Don't run the spooler if
1706 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
1709 Don't use Unix wait flags.
1711 2003-12-02 Werner LEMBERG <wl@gnu.org>
1713 * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
1714 src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
1715 src/roff/troff/uniuni.cpp: Moved to...
1716 * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
1717 src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
1718 src/libs/libgroff/uniuni.cpp: Here.
1720 * src/include/Makefile.sub.old (HDRS),
1721 src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
1722 src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
1724 2003-12-01 Keith Marshall <keith.d.marshall@ntlworld.com>
1726 * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
1730 2003-12-01 Werner LEMBERG <wl@gnu.org>
1732 * groff.texinfo: Document special behaviour of `.vs 0'.
1733 Improve documentation of `cflags' request.
1736 2003-11-29 Werner LEMBERG <wl@gnu.org>
1738 * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
1739 * font/devlj4/CORONET: Regenerated.
1741 2003-11-24 Werner LEMBERG <wl@gnu.org>
1743 * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
1744 if processing hyphenation patterns in traditional mode.
1745 Improve error messages.
1747 2003-11-20 Werner LEMBERG <wl@gnu.org>
1749 * src/roff/troff/node.cpp (troff_output_file::put_char_width,
1750 troff_output_file::put_char): Fix type of local variable `c'.
1752 2003-11-19 Werner LEMBERG <wl@gnu.org>
1754 * src/roff/groff/pipeline.c (P): Removed. Updated all function
1756 (i_to_a): Removed. libgroff already provides this function.
1757 (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
1759 2003-11-18 Keith Marshall <keith.d.marshall@ntlworld.com>
1761 * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
1764 2003-11-17 Werner LEMBERG <wl@gnu.org>
1766 * COPYING: Use correct version.
1768 2003-11-11 Werner LEMBERG <wl@gnu.org>
1770 LynxOS 4.0.0 doesn't declare vfprintf.
1772 * configure.ac: Check for vfprintf.
1773 * configure: Regenerated.
1774 * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
1775 * src/include/config.hin: Regenerated.
1777 2003-11-10 Werner LEMBERG <wl@gnu.org>
1779 LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
1781 * configure.ac: Check for vsnprintf.
1782 * configure: Regenerated.
1783 * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
1785 * src/include/config.hin: Regenerated.
1787 2003-11-09 Werner LEMBERG <wl@gnu.org>
1789 * aclocal.m4: Updated syntax to autoconf 2.59.
1790 (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
1791 Don't check for gsos2.
1792 (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides
1793 working abs_top_srcdir and abs_top_builddir.
1795 * configure.ac: Updated syntax to autoconf 2.59.
1796 Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
1797 Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
1798 * configure: Regenerated.
1800 * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
1801 s/@groff_top_builddir@/@abs_top_builddir@/.
1803 * src/roff/groff/pipeline.c (xstrsignal):
1804 s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
1806 2003-11-07 Werner LEMBERG <wl@gnu.org>
1808 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
1809 make start angle smaller than end angle to circumvent a bug in tpic
1810 handling of some versions of dvipdfm (and dvipdfmx).
1812 2003-10-30 Werner LEMBERG <wl@gnu.org>
1814 * src/devices/grops/grops.man: Improve section on creating EPS.
1816 2003-10-29 Werner LEMBERG <wl@gnu.org>
1818 * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
1821 2003-10-28 Werner LEMBERG <wl@gnu.org>
1823 * doc/groff.texinfo: Fix documentation of `.if'.
1825 2003-10-27 Michail Vidiassov <master@iaas.msu.ru>
1827 * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
1828 the form `uniXXXX' also.
1830 2003-10-27 Werner LEMBERG <wl@gnu.org>
1832 * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
1833 contrib/pic2graph/pic2graph.sh: Implement secure management of
1835 Pass `-P-pletter' to groff to avoid data outside of the converted
1836 area -- some versions of `convert' (for example 5.3.8) don't check
1837 the bounding box of the image but always use a fixed image size
1838 (letter paper format).
1839 * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
1840 contrib/pic2graph/pic2graph.man: Updated.
1842 * src/roff/groff/groff.man: Document $TMP and $TEMP.
1844 2003-10-26 Werner LEMBERG <wl@gnu.org>
1846 * src/preproc/pic/troff.cpp (troff_output::simple_circle,
1847 troff_output::simple_ellipse, troff_output::simple_arc,
1848 troff_output::simple_line, troff_output::simple_spline,
1849 troff_output::simple_polygon): Insert a space before arguments.
1850 (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
1851 latter doesn't produce a node, so the following `.sp -1' would do
1853 Don't emit `.sp -1' after \M. This also doesn't produce a token
1854 (and we don't have to care about compatibility mode).
1855 (troff_output::set_color, troff_output::reset_color): Don't emit
1856 `.sp -1' after \M and \m.
1858 * src/roff/troff/input.cpp (old_have_input): New global variable.
1859 (input_stack::get): Handle `old_have_input'.
1860 (process_input_stack) <token::TOKEN_NEWLINE>: Call
1861 `trapping_blank_line' depending on `old_have_input', not
1864 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
1866 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
1867 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
1868 default directory names for temporary files.
1869 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
1871 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
1872 [__MSDOS__] (run_pipeline): Honour environment variables.
1873 Don't use `tmpnam' but `tempnam' to work around messy
1876 * README.MinGW: New file.
1878 2003-10-16 Werner LEMBERG <wl@gnu.org>
1880 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
1881 `(*t)->next' without testing validity of `*t'.
1882 (usage): Make it more readable.
1884 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
1886 Make html device run under both MS-DOS and Win32.
1888 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
1889 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
1890 spawn or fork+exec has to be used, and whether parent must sleep
1891 until the child process terminates. Used in
1892 `char_buffer::run_output_filter'.
1893 (copyofstdoutfd): Removed.
1894 (char_buffer): Replace `write_file_html' and `write_file_troff'
1895 member functions with `emit_troff_output' and `run_output_filter'.
1896 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
1898 (replaceFd): Replaced with...
1899 (set_redirection): New auxiliary function.
1900 (waitForChild): Replaced with...
1901 (save_and_redirect): New auxiliary function for.
1903 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
1906 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
1908 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
1909 (GROFF_LIBC): New function.
1910 * configure.ac: Call GROFF_LIBC.
1912 * configure: Regenerated.
1914 * src/include/lib.h: Handle __MINGW32__.
1915 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
1916 Add macro for `pipe'.
1919 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
1922 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
1925 2003-10-13 Werner LEMBERG <wl@gnu.org>
1927 Finally fix change 2003-08-26, based on ideas from Chuck Silvers
1930 * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
1933 2003-10-12 Werner LEMBERG <wl@gnu.org>
1935 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
1936 src/roff/troff/input.cc (usage): Updated.
1938 * NEWS, doc/groff.texinfo: Updated.
1940 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
1942 * src/libs/libgroff/searchpath.cpp
1943 (search_path::open_file_cautious): New function which also handles
1944 `-' as stdin and stdout depending on the access mode.
1945 * src/include/searchpath.h (search_path): Updated.
1947 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
1948 * src/devices/grops/ps.h: Include `searchpath.h'.
1949 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1950 Open resource file with `include_search_path.open_file_cautious'.
1951 * src/devices/grops/grops.man: Document new `-I' switch.
1953 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
1954 (main), src/devices/grolj4/lj4.cpp (main),
1955 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
1957 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
1959 (include_search_path): New global variable.
1960 (include_path_append): Removed.
1961 (main): Use `include_search_path.command_line_dir' to handle `-I'.
1962 (do_file): Simplify, using new
1963 `include_search_path.open_file_cautious'.
1965 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
1967 (main): Pass arguments to `-I' to both troff and devices.
1968 Improve handling of `-V'.
1969 * src/roff/groff/groff.man: Document changes to -I and -V.
1971 * src/roff/troff/input.cpp (include_search_path): New global
1973 (next_file, source, ps_bbox_request, transparent_file,
1974 process_input_file): Use new
1975 `include_search_path.open_file_cautious'.
1976 (main) Handle `-I' switch.
1977 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
1978 Use new `include_search_path.open_file_cautious'.
1979 * src/roff/troff/node.h: New extern symbol `include_search_path'.
1980 * src/roff/troff/troff.man: Document new `-I' switch.
1982 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
1984 Support multiple calls of .Lb in LIBRARY section.
1986 * tmac/doc-common (doc-in-library-section): New register.
1987 (doc-section-library): New string.
1988 (Sh): Set `doc-in-library-section'.
1990 * tmac/doc-syms (Lb): Insert breaks before and after arguments
1991 if in LIBRARY section.
1992 * tmac/doc.tmac (doc-save-global-vars): Updated.
1993 * NEWS, tmac/groff_mdoc.man: Updated.
1995 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
1997 * tmac/doc-common (doc-default-operating-system): New variable.
2000 2003-09-08 Werner LEMBERG <wl@gnu.org>
2002 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
2004 2003-08-31 Werner LEMBERG <wl@gnu.org>
2006 * contrib/mom/Makefile.sub: Fix last change to make it really work.
2007 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
2008 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
2009 $(DEVFILES) are not empty.
2010 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
2012 2003-08-26 Chuck Silvers <chuq@chuq.com>
2014 * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
2015 with parallel runs of `make'.
2017 2003-08-23 Stephen Gildea <http://www.gildea.com/stephen>
2019 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
2020 insert SORT_SEP. With certain combinations of sort specifications,
2021 refer sorted entries in the wrong order. In particular, entries
2022 with a missing field should be be sorted before all entries that
2023 have that field, before refer looks to the next field.
2025 2003-08-23 Werner LEMBERG <wl@gnu.org>
2027 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
2028 g++ linker is used. Reported by Mark J. Reed
2029 <mark.reed@turner.com>.
2031 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
2033 Add key character `x' to tbl which makes tbl call a user-defined
2034 macro on a table cell.
2036 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
2037 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
2038 `set_modifier' after printing the compatibility request.
2039 (set_modifier): Print call to `m->macro' if not empty.
2040 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
2042 (process_format): Implement cases `x' and `X'.
2043 * src/preproc/tbl/tbl.man, NEWS: Updated.
2045 2003-08-15 Werner LEMBERG <wl@gnu.org>
2047 * doc/groff.texinfo: Minor fixes.
2049 2003-08-09 Werner LEMBERG <wl@gnu.org>
2051 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
2053 2003-08-07 Werner LEMBERG <wl@gnu.org>
2055 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
2056 argument list to nothing if there is no file to match. Use `ls' as
2057 a protection, similar to autoconf.
2059 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
2060 empty argument lists.
2062 * doc/groff.texinfo: Improve documentation how vertical spacing
2063 and line breaks interact.
2066 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
2068 2003-08-03 Werner LEMBERG <wl@gnu.org>
2070 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
2071 EPS (using eps2eps or similar programs to compute the bounding box).
2073 2003-07-24 Werner LEMBERG <wl@gnu.org>
2075 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
2076 * doc/texinfo.tex: Updated from texinfo 4.6.
2077 * README.CVS: From now on we need texinfo 4.6.
2079 2003-07-23 Werner LEMBERG <wl@gnu.org>
2081 Add requests `dei1' and `ami1' for completeness.
2083 * src/roff/troff/input.cc (calling_mode): Remove
2084 CALLING_DISABLE_COMP.
2085 (comp_mode): New enumeration.
2086 (do_define_string, define_string, define_nocomp_string,
2087 append_string, append_nocomp_string): Updated.
2088 (do_define_macro): Add third parameter.
2089 (define_macro, define_nocomp_macro, define_indirect_macro,
2090 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
2091 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
2094 (init_input_requests): Add `dei1' and `ami1'.
2096 * tmac/trace.tmac: Handle de1 and am1.
2097 (de): Improve tracing message.
2098 (am): Add missing `do'.
2101 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2102 Document new requests.
2104 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
2106 Add option -G to .MPIMG to insert a gap between text and the image.
2108 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
2109 www-finish-left-ll): Updated.
2110 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
2111 (MPIMG): Make option -L and -R optional.
2112 Implement option -G.
2114 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
2116 * src/devices/grohtml/post-html.cpp
2117 (html_printer::do_file_components): Don't use `stdout' as lvalue
2118 since it can be a macro.
2120 2003-07-22 Werner LEMBERG <wl@gnu.org>
2122 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
2123 the corresponding test in aclocal.m4.
2125 2003-07-21 Werner LEMBERG <wl@gnu.org>
2127 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
2128 names but RGB values directly. Otherwise pnmtopng depends on
2129 an external file `rgb.txt' which maps colour names to values.
2131 2003-07-20 Werner LEMBERG <wl@gnu.org>
2133 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
2134 * configure, src/include/config.hin: Regenerated.
2136 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
2138 2003-07-19 Werner LEMBERG <wl@gnu.org>
2140 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
2142 2003-07-18 Werner LEMBERG <wl@gnu.org>
2144 * *.man: Switch to non-compatibility mode temporarily if GNU
2145 syntax extensions are used in the particular man page.
2147 * PROBLEMS: Add solutions for SGR problems.
2149 2003-07-17 Werner LEMBERG <wl@gnu.org>
2151 Don't ignore grotty's command line options if \X'tty: sgr ...' is
2152 used to change the drawing scheme.
2154 * src/devives/grotty/tty.cpp (bold_flag_option,
2155 underline_flag_option, italic_flag_option, reverse_flag_option,
2156 bold_underline_mode_option): New global variables.
2157 (update_options): New function.
2158 (tty_printer::special): Call update_options.
2159 (main): Don't set xxx_flag but xxx_flag_option, then call
2162 2003-07-14 Werner LEMBERG <wl@gnu.org>
2164 Make grotty emit proper Unicode box drawing characters for -Tutf8.
2166 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
2168 (hline_char, vline_char): New global variables.
2169 (tty_printer::tty_printer): Initialize them.
2170 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
2171 horizontal and vertical lines.
2172 (crossings): New global array.
2173 (tty_printer::end_page): Use it to determine the proper crossing
2174 character for -Tutf8.
2176 2003-07-12 Werner LEMBERG <wl@gnu.org>
2178 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
2179 (HTMLDOCFILES): Revert to `pic.html'.
2180 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
2182 2003-07-11 Werner LEMBERG <wl@gnu.org>
2184 * doc/pic.ms: Improve documentation of absolute coordinates.
2185 Document absolute positioning of pictures.
2187 * NEWS: Add new pic capability.
2189 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
2191 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
2194 2003-07-07 Werner LEMBERG <wl@gnu.org>
2196 Implement support for dashed and dotted ellipses in pic. Based on
2197 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
2199 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
2200 common_output::dashed_ellipse, common_output::dotted_ellipse): New
2201 functions. Ellipse arcs are approximated with circle arcs.
2202 * src/preproc/pic/common.h (common_output): Updated.
2203 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
2205 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
2207 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
2209 2003-07-06 Werner LEMBERG <wl@gnu.org>
2211 Make grotty work on platforms which have unsigned char as the
2212 default for char. Based on a patch by Thomas Klausner
2215 * src/devices/grotty/tty.cpp (schar): New typedef.
2216 Updated calls to declare_ptable and implement_ptable.
2217 (glyph): Use schar for back_color_idx and fore_color_idx.
2218 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
2219 (tty_printer::tty_color, tty_printer::tty_printer,
2220 tty_printer::color_to_idx, tty_printer::put_color): Updated.
2222 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
2224 * src/roff/nroff/nroff.sh: Add option -d for completeness.
2225 * src/roff/nroff/nroff.man: Updated.
2227 2003-07-05 Werner LEMBERG <wl@gnu.org>
2229 * NEWS, tmac/groff_www.man: Updated.
2230 * doc/Makefile.sub: Updated.
2232 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
2234 Implement support for multiple HTML output files.
2236 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
2237 -j command line option.
2239 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
2241 (file): New fields `new_output_file', `require_links',
2243 (file::file): Updated.
2244 (files::set_file_name, files::set_links_required,
2245 files::are_links_required, files::is_new_output_file,
2246 files::file_name, files::next_file_name): New functions.
2247 (header_desc): New fields `no_of_level_one_headings',
2249 (header_desc::header_desc): Updated.
2250 (header_desc::write_headings): Handle multiple files.
2251 (html_printer::write_header): Save file name in which header occurs.
2252 (html_printer::determine_header_level): Possibly split files on
2254 (html_printer::do_links, html_printer::troff_tag): Updated.
2255 (html_printer::insert_split_file, html_printer::do_job_name,
2256 html_printer::emit_link, html_printer::write_navigation,
2257 html_printer::do_file_components): New functions.
2258 (html_printer::~html_printer): Handle multiple files.
2259 (main): Handle command line option `-j'.
2261 * src/devices/grohtml/grohtml.man: Updated.
2263 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
2266 * tmac/www.tmac (JOBNAME): New macro.
2267 * tmac/s.tmac (SH-NO-TAG): New macro.
2268 (@SH): Call SH-NO-TAG.
2271 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
2273 * tmac/groff_mdoc.man: Improve documentation of punctuation
2276 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
2278 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
2280 2003-07-03 Werner LEMBERG <wl@gnu.org>
2282 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
2284 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
2286 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
2287 after `/*' and `*/'.
2289 (Fn, Fo): Reduce indentation in synopsis.
2291 * tmac/doc-common (doc-check-depth): New macro.
2292 (doc-end-macro, Sh, Ss): Use it.
2293 (Cd): Fix behaviour in synopsis.
2294 (In): Make it parsed and callable.
2295 If not in the synopsis, represent the C header file enclosed in
2297 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
2298 Use minus, not hyphen.
2300 * tmc/groff_mdoc.man: Updated.
2302 2003-07-01 Werner LEMBERG <wl@gnu.org>
2304 Integrated grap2graph, contributed by Eric S. Raymond.
2306 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
2308 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
2309 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
2311 2003-07-01 Colin Watson <cjwatson@debian.org>
2313 * src/xditview/*.c: Add prototypes, fix return types, add includes.
2314 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
2316 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
2318 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
2320 2003-06-31 Werner LEMBERG <wl@gnu.org>
2322 * doc/Makefile.sub (CLEANADD): Remove all files created by
2323 running `make groff.{pdf,dvi}'.
2325 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
2328 2003-06-30 Werner LEMBERG <wl@gnu.org>
2330 * Makefile.in (SHELL): Define as @SHELL@.
2331 (mkinstalldirs): Use $(SHELL).
2332 (MDEFINES): Add $(SHELL).
2333 * Makefile.comm (SHELL): Removed.
2335 2003-06-29 Werner LEMBERG <wl@gnu.org>
2337 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
2338 The X11 documentation files use them.
2339 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
2341 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
2343 * tmac/e.tmac (@C): Handle .ad also.
2345 2003-06-12 Werner LEMBERG <wl@gnu.org>
2347 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
2349 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
2350 Assign `n' even here. It is possible to construct a node
2351 immediately following an escape character:
2359 2003-06-10 Werner LEMBERG <wl@gnu.org>
2361 * README.WIN32: Removed.
2362 * MANIFEST: Updated.
2364 2003-06-07 Werner LEMBERG <wl@gnu.org>
2366 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
2368 2003-06-05 Werner LEMBERG <wl@gnu.org>
2370 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
2371 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
2373 2003-06-03 Werner LEMBERG <wl@gnu.org>
2375 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
2376 is done by the calling function.
2378 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
2380 * tmac/X.tmac: Fix definition of `em'.
2382 2003-05-22 Werner LEMBERG <wl@gnu.org>
2384 * src/roff/troff/input.cc (return_macro_request): Fix detection of
2387 2003-05-18 Werner LEMBERG <wl@gnu.org>
2389 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
2390 to make items work which consist only of a tag.
2392 2003-05-17 Werner LEMBERG <wl@gnu.org>
2394 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
2395 aren't stretched in a tag (this can fail with unformatted boxes).
2396 Instead, insert a break and go back one line.
2398 2003-05-16 Werner LEMBERG <wl@gnu.org>
2400 * src/roff/troff/input.cc (return_macro_request): If called with
2401 argument pop macro twice. We need this to trace `return'.
2403 * tmac/trace.tmac: Handle `return'.
2406 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2409 2003-05-15 Larry Kollar <kollar@alltel.net>
2411 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
2412 registers `FPS', `FVS', and `FPD'.
2414 2003-05-15 Werner LEMBERG <wl@gnu.org>
2416 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
2419 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
2421 * tmac/groff_mdoc.man: Slight improvements.
2423 2003-05-03 Werner LEMBERG <wl@gnu.org>
2425 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
2426 `doc-header-space' after header line if register `cR' is set.
2428 2003-05-02 Werner LEMBERG <wl@gnu.org>
2432 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
2434 * tmac/doc-common (Nd): Use \[em].
2436 2003-05-01 Werner LEMBERG <wl@gnu.org>
2438 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
2439 doc-footer-space): Initialize to 0.5i.
2440 (doc-setup-page-layout): Don't set doc-header-space and
2443 2003-04-30 Werner LEMBERG <wl@gnu.org>
2445 * REVISION: Set to 1.
2447 * doc/pic.ms: Document possible problems with `figname'.
2449 2003-04-29 Werner LEMBERG <wl@gnu.org>
2451 Version 1.19 released
2452 =====================
2454 * VERSION: Set to 1.19.
2455 * REVISION: Set to 0.
2456 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
2458 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2459 Define charset as `US-ASCII' in html output.
2461 * tmac/www.tmac (ULE): Add missing scaling indicator.
2463 * win32-diffs: Removed.
2465 2003-04-28 Werner LEMBERG <wl@gnu.org>
2467 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
2469 Document how to insert discardable whitespace with `.ss'.
2471 2003-04-27 Werner LEMBERG <wl@gnu.org>
2473 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
2474 work with plain TeX also.
2476 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
2478 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
2480 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
2483 2003-04-24 Werner LEMBERG <wl@gnu.org>
2485 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
2486 vbox with positive height and zero depth if in TeX mode.
2488 * NEWS: Document glyph name changes for grodvi and grolj4.
2490 2003-04-23 Werner LEMBERG <wl@gnu.org>
2492 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
2493 * doc/pic.ms: Fixed.
2495 2003-04-21 Werner LEMBERG <wl@gnu.org>
2497 HP-UX 10.20 has `snprintf' but it isn't declared.
2499 * configure.ac: Add declaration test for snprintf.
2500 * configure: Regenerated.
2501 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
2502 * src/include/config.hin: Regenerated.
2504 2003-04-19 Werner LEMBERG <wl@gnu.org>
2506 Add keyword `figname' to pic, specifying the name of the picture
2507 box in TeX mode. Based on a patch from William J Poser
2508 <wjposer@unagi.cis.upenn.edu>.
2510 * src/preproc/pic/pic.y: New token `FIGNAME'.
2511 (macro_name): New rule of type <str>.
2512 (placeless_element): Handle `FIGNAME'.
2513 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
2514 * src/preproc/pic/main.cpp (graphname): New global variable.
2515 (do_picture): Initialize `graphname'.
2516 * src/preproc/pic/pic.h: Updated.
2517 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
2520 (tex_output::text): Beautify output.
2521 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
2522 `shaded' and `outlined' unconditionally.
2523 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
2526 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
2527 greater is necessary.
2529 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
2531 Add option -r to soelim to avoid emission of `.lf' lines.
2532 Add option -t to produces TeX comment lines instead of `.lf' lines.
2534 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
2537 (main): Handle `-r' and `-t'.
2538 (set_location): Handle `raw_flag' and `tex_flag'.
2539 * src/preproc/soelim/soelim.man, NEWS: Updated.
2541 2003-04-17 Werner LEMBERG <wl@gnu.org>
2543 * tmac/hyphenex.sh: Replaced with...
2544 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
2547 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
2548 if --quiet is used for the configure script.
2549 * configure: Regenerated.
2551 2003-04-16 Werner LEMBERG <wl@gnu.org>
2553 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
2554 Add `const' to second argument.
2555 (html_printer::add_table_end): Add `const' to argument.
2556 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
2557 `const' to arguments.
2558 * src/devices/grohtml/html-text.h: Updated.
2560 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
2561 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
2564 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
2565 cast for integer constant.
2567 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
2568 (writeNbytes): Add `const' to first argument.
2569 (writeString): Add `const' to argument.
2570 (char_buffer::can_see): Add `const' to third argument.
2571 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
2572 `const' to argument.
2573 * src/preproc/html/pushback.h: Updated.
2575 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
2576 (include_path_append): Add `const' to argument.
2579 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
2581 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
2582 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
2584 (unicode_decompose_init::unicode_decompose_init): Updated.
2585 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
2587 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
2588 * src/roff/troff/input.cc (process_startup_file): Add `const' to
2591 * tmac/hyphenex.sh: Make script more portable by using a here
2594 2003-04-15 Werner LEMBERG <wl@gnu.org>
2596 Renamed all `*.cc' files to `*.cpp'.
2597 Updated all configuration files, makefiles, and documentation.
2599 2003-04-14 Werner LEMBERG <wl@gnu.org>
2601 * tmac/hyphenex.sh: Slight improvements.
2603 2003-04-13 Werner LEMBERG <wl@gnu.org>
2605 * font/devascii/R.proto, font/devcp1037/R.proto,
2606 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
2607 character slots with unnamed glyphs.
2609 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
2610 (an-first): New global variable.
2611 (an-header): Emit vertical space between multiple man pages.
2613 2003-04-11 Werner LEMBERG <wl@gnu.org>
2615 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
2618 2003-04-10 Werner LEMBERG <wl@gnu.org>
2620 * PROBLEMS: Revised.
2622 2003-04-10 Bernd Warken <bwarken@mayn.de>
2624 * doc/webpage.ms: Improved.
2626 2003-04-09 Werner LEMBERG <wl@gnu.org>
2628 Add register \n[.height] which returns the value of \H.
2629 Add register \n[.slant] which returns the value of \S.
2631 * src/roff/troff/env.cc (init_env_requests): Implement.
2632 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2635 2003-04-08 Werner LEMBERG <wl@gnu.org>
2637 * tmac/html.tmac: Move some of the data into html-end.tmac.
2638 Remove most of the character translations for eqn since html fonts
2639 now cover those characters.
2641 * tmac/html-end.tmac: New file.
2642 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
2643 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
2644 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
2646 2003-04-07 Werner LEMBERG <wl@gnu.org>
2648 * man/groff_out.man: Document negative values of `N' if -Thtml is
2651 2003-04-06 Werner LEMBERG <wl@gnu.org>
2653 * Makefile.comm (depend.temp): Check location of YTABC.
2655 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2657 * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
2659 (groff_bin_path): Rename to GROFF_BIN_PATH.
2660 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2661 * doc/Makefile.in (TROFFBIN): New variable for troff
2663 (GROFFBIN): New variable for groff binary path.
2664 (groff_bin_path): Rename to GROFF_BIN_PATH.
2665 (TROFF): Use TROFFBIN.
2666 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2667 * doc/Makefile.sub (GROFFBIN): New variable for groff
2669 (groff_bin_path): Rename to GROFF_BIN_PATH.
2670 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
2672 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
2673 with INSTALL_SCRIPT.
2674 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
2675 * Makefile.dev (all): Depend on DEVSCRIPTS.
2676 (install_dev): Likewise.
2677 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
2679 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
2680 (DEVGENSCRIPTS): New variable to hold generated scripts.
2682 2003-04-05 Werner LEMBERG <wl@gnu.org>
2684 * src/libs/libdriver/input.cc (IntArray::operator[],
2685 IntArray::get_data): Remove meaningless `const' in return value.
2687 * README.CVS: New file.
2689 2003-04-04 Werner LEMBERG <wl@gnu.org>
2691 Check for stdint.h in C++, not in C.
2693 * aclocal.m4 (GROFF_STDINT_H): New function,
2694 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
2696 * configure, src/include/config.hin: Regenerated.
2697 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
2700 Fix handling of in grohtml. To do this, troff emits `N'
2701 with a negative value, representing the width of the unbreakable
2702 space (only for -Thtml). grohtml then converts this back to
2703 and uses the value of N as its width.
2705 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2706 unbreakable_space_node::tprint): Emit `N-<width>'.
2707 * src/include/printer.h (printer::set_numbered_char): Make it
2709 Make members `font_table' and `nfonts' protected instead of private.
2710 * src/devices/grohtml/post-html.cc
2711 (html_printer::set_numbered_char): New member function.
2714 * src/libs/libgroff/maxfilename.cc:
2715 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
2717 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
2720 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
2722 * man/roff.man: Small fixes.
2724 2003-04-03 Werner LEMBERG <wl@gnu.org>
2726 Make groff independent from locale's numeric settings.
2728 * configure.ac: Check for `setlocale'.
2729 * configure, src/include/config.hin: Regenerated.
2731 * src/include/lib.h: Handle HAVE_SETLOCALE.
2733 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
2734 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
2735 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
2738 * doc/groff.texinfo: Change dir category to `Typesetting'.
2739 (Man font macros): Mention that there is no space between arguments
2742 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
2743 (*printer::change_color, *printer::change_fill_color): Add missing
2746 2003-04-02 Werner LEMBERG <wl@gnu.org>
2748 * src/devices/grohtml/html-table.cc (html_table::emit_col,
2749 html_table::is_gap): Compute table widths after converting border
2750 positions to avoid rounding errors.
2752 2003-04-01 Werner LEMBERG <wl@gnu.org>
2754 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
2755 `space_emitted' properly.
2757 2003-03-31 Werner LEMBERG <wl@gnu.org>
2759 * src/devices/grohtml/html-table.cc: Fix column width calculation.
2760 (html_table::set_linelength): Don't add 1.
2761 (html_table::add_indent): Don't subtract 1.
2763 * tmac/html.tmac: Set default page offset to zero.
2765 2003-03-30 Werner LEMBERG <wl@gnu.org>
2767 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
2769 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
2770 unbreakable_space_node::tprint): New functions.
2771 (troff_output_file): Make space_char_hmotion_mode::tprint and
2772 unbreakable_space_node::tprint to friends.
2773 * src/roff/troff/node.h: Updated.
2775 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
2776 in the HTML standard).
2778 2003-03-29 Werner LEMBERG <wl@gnu.org>
2780 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
2781 Otherwise, the following code
2790 produces `x a' instead of `xa'. This is a temporary fix, disabling
2791 font changes in diversions for -Thtml.
2793 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
2795 (an-do-tag-html): Merge with ...
2796 (an-do-tag): This macro.
2797 Change code slightly to circumvent grohtml bug.
2798 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
2800 * src/devices/grohtml/html-table.cc (html_table::emit_col,
2801 html_table::is_gap): Round `width' properly.
2803 * tmac/html.tmac: Provide some default layout parameters for
2806 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
2809 2003-03-28 Werner LEMBERG <wl@gnu.org>
2811 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
2813 2003-03-27 Werner LEMBERG <wl@gnu.org>
2815 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
2818 2003-03-20 Werner LEMBERG <wl@gnu.org>
2820 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
2822 * doc/groff.texinfo: Updated.
2824 2003-03-19 Werner LEMBERG <wl@gnu.org>
2826 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
2827 TOKEN_END_TRAP>: Reset `have_input'.
2829 2003-03-18 Werner LEMBERG <wl@gnu.org>
2831 * src/roff/groff/groff.man: Mention groff_trace man page.
2833 2003-03-16 Werner LEMBERG <wl@gnu.org>
2835 * Makefile.in (LIBEXT): New variable to indicate the file extension
2836 of library files. Computed heuristically from $(OBJEXT).
2837 (MDEFINES): Add $(LIBEXT).
2838 * Makefile.lib, Makefile.comm: Use it.
2840 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
2841 overlong lines into smaller chunks.
2842 (get_binary): New function.
2844 * src/utils/pfbtops/pfbtops.man: Updated.
2846 2003-03-15 Colin Watson <cjwatson@debian.org>
2848 * src/roff/groff/groff.man: Minor syntax fix.
2850 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
2852 * src/devices/grops/ps.cc (ps_printer::media_set,
2853 ps_printer::~ps_printer): Handle zero paper width and length.
2855 2003-03-13 Werner LEMBERG <wl@gnu.org>
2857 Add options -p and -l to grodvi.
2859 * src/devices/grodvi/dvi.cc: Include paper.h.
2860 (landscape_flag, user_paper_length, user_paper_width): New global
2862 (dvi_printer::begin_page): Emit `papersize' special.
2863 Set color after initialization of `cur_h' and `cur_v'.
2864 (main): Add options `-l' and `-p'.
2865 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
2866 * src/devices/grodvi/grodvi.man, NEWS: Updated.
2868 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
2870 2003-03-12 Werner LEMBERG <wl@gnu.org>
2872 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
2873 * man/groff_tmac.man: This man page.
2874 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
2877 * tmac/X.tmac: Don't load pspic.tmac.
2879 2003-03-11 Werner LEMBERG <wl@gnu.org>
2881 Make variable `pr' local to libdriver/input.cc. Based on a patch
2882 by Bernd Warken <bwarken@mayn.de>.
2884 * src/include/driver.h (pr): Removed.
2886 * src/libs/libdriver/input.cc (pr): New global variable.
2887 (do_file): Deallocate `pr'.
2888 * src/libs/libdriver/printer.cc (pr): Removed.
2890 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
2891 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
2892 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
2893 (main): Don't delete `pr'.
2895 2003-03-10 Werner LEMBERG <wl@gnu.org>
2897 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
2898 * tmac/papersize.tmac: New file.
2899 * tmac/troffrc: Include `papersize.tmac'.
2900 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
2901 * tmac/an-old.tmac: Set LT to LL by default.
2903 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
2904 doc/groff.texinfo: Updated.
2906 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
2907 bug which caused all odd iso papers to have wrong dimensions.
2909 * src/devices/grops/ps.cc (user_paper_width): New global variable.
2910 (main) <'p'>: Set `user_paper_width' also.
2911 (ps_printer::media_width, ps_printer::media_height): Use values
2912 given with option `-p'.
2914 2003-03-09 Werner LEMBERG <wl@gnu.org>
2916 * src/include/nonposix.h: Provide default for SET_BINARY.
2918 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
2919 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
2922 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
2923 (main): Treat \r\n as \n.
2925 2003-03-08 Werner LEMBERG <wl@gnu.org>
2927 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
2928 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
2930 2003-03-07 Werner LEMBERG <wl@gnu.org>
2932 Added support to access more than 256 glyphs in Type 1 fonts.
2934 * src/devices/grops/ps.cc (subencoding): New structure.
2935 (style): Add `sub' field.
2937 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
2938 Add `set_subencoding', `get_subfont' and `encode_subfont' member
2941 (ps_printer::set_char): Use `set_subencoding'.
2942 (make_subencoding_name): New function.
2943 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
2944 (ps_printer::~ps_printer): Emit subencoding definitions.
2946 * src/devices/grops/psrm.cc (valid_input_table): New array to
2947 properly support EBCDIC.
2948 (white_space): Add `\f'.
2949 (ps_get_line): Change first argument to be of type `string &'.
2950 Updated all callers.
2951 This allows to get lines of arbitrary length.
2952 Use `valid_input_table'.
2953 Remove warning about non-conforming PS line length. This seems
2954 not to be of great importance -- for example, dvips don't emit
2956 (PS_LINE_MAX): Removed.
2957 (matches_comment): Change first argument to be of type `string &'.
2959 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
2961 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
2962 %AGL_to_unicode, %default_ligatures): New hash tables.
2963 Read all map entries.
2964 Add unencoded characters.
2965 Check for default ligatures if there are no `L' entries.
2966 Print all kern entries.
2967 Print all characters in charset.
2968 * src/utils/afmtodit/afmtodit.man: Updated.
2970 * font/devps/*: Regerated all fonts.
2972 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
2973 of characters, just use `.trin'. Otherwise the mapping depends
2974 on the font encoding.
2975 * tmac/ps.tmac: Add `fi' and `fl'.
2976 Improve `Fi' and `Fl'.
2977 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
2978 * tmac/Xps.tmac: Fix `em'.
2982 2003-03-04 Werner LEMBERG <wl@gnu.org>
2984 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
2987 2003-03-03 Werner LEMBERG <wl@gnu.org>
2989 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
2991 * font/devps/generate/textmap: Remove entry `similarequal'.
2992 * font/devps/symbolmap: Updated.
2994 2003-03-02 Werner LEMBERG <wl@gnu.org>
2996 * src/libs/libgroff/font.cc (font::load): Fix error message for
2999 * src/devices/grops/grops.man: Improve documentation of the -b
3002 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
3003 `ascii' and `cp1047'.
3005 2003-03-01 Werner LEMBERG <wl@gnu.org>
3007 Document composite glyphs and the `composite' request.
3009 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
3011 2003-02-28 Werner LEMBERG <wl@gnu.org>
3013 * font/devdvi/generate/ec.map: Add some more Unicode entities.
3014 * font/devdvi/*EC: Updated.
3016 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
3017 * tmac/latin1 (latin1-tr): Undo any previous mapping.
3018 * tmac/troffrc: Load `composite.tmac'.
3019 * tmac/Makefile.sub (NORMALFILES): Updated.
3021 * doc/groff.texinfo (Input Encodings): New section.
3024 2003-02-27 Werner LEMBERG <wl@gnu.org>
3026 * doc/texinfo.tex: New version 2003-02-11.06.
3028 * tmac/doc-common (Dt): Don't emit warning for unknown section.
3029 * tmac/groff_mdoc.man: Fix description of `Dt'.
3031 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
3033 * font/devps/prologue.ps: Fix for included Postscript that does
3034 a setpagedevice -- which is now safely ignored.
3038 * src/devices/grops/ps.cc: Now sets the page size in the generated
3039 document. This is done in two ways: Via a %%-comment for gv and
3040 the like, and via a PageSize and setpagedevice for programs that
3041 understands Postscript proper, like ps2pdf.
3043 * src/devices/grops/ps.h: New broken-flag to avoid page size
3044 definition, if required.
3046 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
3048 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
3049 Not really necessary due to the fix in prologue.ps, but cleaner:
3050 Such information does not belong in an .eps file.
3052 * doc/Makefile.sub: See doc/Makefile.in.
3054 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
3056 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
3057 instead of P1 since the latter is broken in some versions of netpbm.
3058 * configure: Updated.
3060 2003-02-26 Larry Kollar <kollar@alltel.net>
3062 Make man pages more customizable.
3064 * tmac/an-old.tmac (FT): New register holding footer distance from
3066 (HF): New string holding the default heading font.
3067 (TH): Handle registers `IN' and `SN' set on the command line.
3069 (PT, BT): New strings to customize header and footer lines.
3070 (an-header, an-footer): Use them.
3072 * tmac/groff_man.man: Document changes.
3074 * doc/groff.texinfo: Document man changes.
3075 Document Ultrix extensions of man.
3077 2003-02-26 Werner LEMBERG <wl@gnu.org>
3079 * src/roff/troff/input.cc (do_width, do_if_request): Reset
3080 `have_input' after changing back to old environment.
3082 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
3083 function up to be defined before first call. This is necessary to
3084 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
3086 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
3087 the default font directory also. Based on a patch from James
3088 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
3089 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
3090 * src/utils/afmtodit/afmtodit.man: Document it.
3094 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
3096 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
3098 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
3099 (GROFF_PNMTOPS_NOSETPAGE): New macro.
3100 * configure.ac: Use it.
3101 * configure: Regenerated.
3102 * Makefile.in: Updated.
3104 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
3105 (CLEANADD): Add www.tmac-sed.
3106 (pnmtops_nosetpage): Define default.
3107 (install_data): Handle www.tmac-sed and substitute
3108 @PNMTOPS_NOSETPAGE@.
3109 (stamp-sed): Add www.tmac.
3110 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
3111 It now breaks URLs at suitable places.
3112 (www:substring_ok): New register set by...
3113 (www:@test_substring): New macro.
3114 (www:error): New alias to www-error.
3115 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
3117 (URL): Use www:url_breaks.
3118 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
3119 (CDS, CDE): New macros.
3121 2003-02-25 Werner LEMBERG <wl@gnu.org>
3123 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
3126 2003-02-24 Werner LEMBERG <wl@gnu.org>
3128 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
3129 can be negative also.
3131 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
3133 (read_char_table): Avoid negative ascenders.
3134 (output_charset): Add cast.
3135 * font/devlj4/*: Regenerated.
3137 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
3140 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
3141 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
3143 * font/devdvi/*: Regenerated.
3145 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
3146 normal width, while the previously used characters (U+2329 and
3147 U+232A) are classified as wide due to canonical equivalence with the
3148 CJK punctuation characters U+3008 and U+3009.
3150 * font/devutf8/R.proto: Updated.
3151 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
3153 * man/groff_char.man: Simplify handling of table traps by
3154 introducing `start block' and `end block' macros.
3155 (Ns, Ne, 2s, 2e, Ds, De): New macros.
3156 (DL): Make it work with Unix troff also.
3157 Fix code values of `la' and `ra'.
3159 * tmac/dvi.tmac: Define `<>' for CW and CWI.
3161 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
3163 * src/devices/grohtml/post-html.cc (element_list::~element_list):
3164 New destructor, fixing a major memory leak.
3166 2003-02-22 Werner LEMBERG <wl@gnu.org>
3168 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
3169 to be in conformance with Unicode 3.0 and newer.
3171 * font/devlj4/generate/text.map: Add `Eu'.
3172 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
3173 * font/devlj4/S: Regenerated.
3175 * man/groff_char.man: Completely rewritten.
3177 * doc/groff.texinfo: Fix description of request and macro arguments.
3179 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
3183 * src/devices/grohtml/html-table.cc (html_table::~html_table):
3184 Deallocate `columns' list.
3185 * src/devices/grohtml/post-html.cc (char_block::~char_block):
3187 (text_glob::text_glob_html, text_glob::text_glob_special,
3188 text_glob::text_glob_line, text_glob::text_glob_auto_image,
3189 text_glob::text_glob_tag): Avoid memory leaks.
3190 (text_glob::remember_table): Free memory before reassigning.
3192 2003-02-19 Werner LEMBERG <wl@gnu.org>
3194 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
3195 alias `hbar'), the Planck constant over two pi.
3197 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
3198 `+e' for position 34.
3199 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
3200 `u2662' and `u2661'.
3201 * font/devdvi/{MI,S}: Regenerated.
3202 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
3203 * font/devlbp/*: Add `hbar' alias.
3204 * font/devlj4/generate/special.map: Ditto.
3205 * font/devlj4/S: Regenerated.
3206 * font/devps/generate/symbolchars: Add `+e'.
3207 * font/devps/generate/textmap: Fix PS name for `-h'.
3209 * font/devps/symbolmap: Regenerated.
3211 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
3213 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
3215 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
3218 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
3220 * tmac/tty-char.tmac: Add `+e'.
3222 2003-02-17 Werner LEMBERG <wl@gnu.org>
3224 Another round trying to really fix problems with `have_input'.
3226 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
3227 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
3229 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
3230 handling if both foreground and background colors are default.
3232 * doc/groff.texinfo (Debugging): Document .lf differences to
3235 2003-02-16 Werner LEMBERG <wl@gnu.org>
3237 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
3238 null-bytes in created string.
3240 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
3241 alias_macro, lookup_request): Improve warning messages.
3243 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
3245 Free `last_image_filename'.
3247 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
3249 (imageList::createPage, imageList::createImage): Use `free', not
3251 (imageItem::~imageItem): Free `imageName'.
3252 (addRegDef): Use `strsave', not `strdup'.
3253 (get_resolution): Free `pathp'.
3255 2003-02-15 Werner LEMBERG <wl@gnu.org>
3257 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
3260 2003-02-14 Werner LEMBERG <wl@gnu.org>
3262 Add memory management for colors to deallocate unnamed colors
3265 * src/include/color.h (color): New members `free_list' and `next'.
3266 New member functions `new' and `delete'.
3268 * src/libs/libgroff/color.cc: Implement it.
3270 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
3271 for array size of new operator.
3273 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
3274 redundant comparison.
3276 * src/roff/troff/input.cc (word_space_node::reread,
3277 hmotion_node::reread): Avoid warning about unused parameter.
3278 (reset_output_registers): Remove redundant parameter.
3279 (define_color): Undo change 2003-02-12.
3281 * src/roff/troff/reg.h: Updated.
3283 * src/roff/troff/node.cc (troff_output_file::really_print_line,
3284 output_file::put_filename, real_output_file::really_put_filename,
3285 ascii_output_file::really_print_line,
3286 break_char_node::get_hyphen_list): Avoid warning about unused
3288 (suppress_node::tprint): Updated.
3290 * configure.ac: Check declaration for rand() and srand().
3291 * configure: Regenerated.
3293 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
3295 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
3298 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
3299 to avoid compiler warnings.
3301 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
3304 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
3306 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
3308 Updated all callers.
3310 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
3312 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
3313 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
3315 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
3316 Parameter is unused.
3317 (html_printer::add_table_end): Define parameter conditionally.
3318 * src/devices/grohtml/output.cc (simple_output::special): Parameter
3321 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
3322 (lbp_printer::set_char): Last parameter is unused.
3324 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
3326 2003-02-13 Werner LEMBERG <wl@gnu.org>
3328 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
3329 Make \D'f ...' move horizontally again for backwards compatibility.
3330 Replace it with \D'Fg ...' where appropriate to avoid dependency
3331 on horizontal resolution.
3333 * src/roff/troff/input.cc (do_get_long_name): New function.
3334 (get_long_name): Call it.
3336 (read_draw_node): Handle `\D'Fx ...' by calling ...
3337 (read_color_draw_node): New function.
3339 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
3341 Pass it to `do_get_long_name' which is used instead of
3344 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
3345 unnecessary value guard.
3346 (parse_D_command) <'f'>: Add horizontal shift.
3348 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
3349 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3350 (FILL_MAX): Removed.
3352 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3355 2003-02-12 Werner LEMBERG <wl@gnu.org>
3357 * src/roff/troff/input.cc (do_name_test, do_expr_test,
3358 do_zero_width): Push `\n' if closing delimiter is missing.
3360 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
3361 <'F'>: Make \F non-transparent at the beginning of line.
3362 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
3363 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
3366 (define_color): Free color in case of reassignment.
3368 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
3369 @DefescListEnd): Use @Var, not @var.
3372 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
3374 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
3375 `shaded' and `outlined' arrays.
3376 (object_spec::object_spec): Initialize `shaded' and `outlined'.
3377 (graphic_object::set_fill_color, graphic_object::set_outline_color):
3379 (closed_object::set_fill_color): Ditto.
3380 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
3382 (troff_output::reset_color): Use a_delete instead of free.
3383 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
3385 2003-02-11 Werner LEMBERG <wl@gnu.org>
3387 * doc/groff.texinfo: Improve documentation of `ad'.
3388 Document that \D'f...' is dependent on the horizontal resolution.
3389 * man/groff_diff.man: Improve documentation of \D'f...'.
3391 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
3392 compensating \h'...' for \D'f ...' since the latter no longer moves
3394 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
3396 2003-02-10 Werner LEMBERG <wl@gnu.org>
3398 Improve error messages for `x F' (and `F') commands.
3400 * src/include/error.h: Add declaration for
3401 `current_source_filename'.
3402 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
3403 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
3404 parameter for source file string.
3405 Updated all callers.
3407 * src/libs/libdriver/input.cc: Add `current_source_filename'.
3408 (remember_source_filename): New function.
3409 (parse_x_command <'F'>, do_file <'F'>): Use it.
3411 2003-02-09 Werner LEMBERG <wl@gnu.org>
3413 Make grotty not emit warnings about unknown colors more than
3416 * src/devices/grotty/tty.cc: Include `ptable.h'.
3417 (TTY_MAX_COLORS): Removed.
3418 (DEFAULT_COLOR_IDX): Defined to -1.
3419 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
3420 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
3421 Change `tty_colors' to be a ptable.
3422 First arg of `put_color' is now `char'.
3423 New functions `make_rgb_string' and `tty_color'.
3424 (tty_printer::tty_printer): Use `tty_color'.
3425 (tty_printer::color_to_idx): Return value is now `char'.
3428 * src/include/color.h (color): Add `print_color' member function.
3429 * src/libs/libgroff/color.cc (color::print_color): Implement it.
3431 2003-02-08 Werner LEMBERG <wl@gnu.org>
3435 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
3438 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
3439 assume that value has been allocated with `new[]', thus use
3440 `a_delete' for deallocation.
3442 * src/libs/libdriver/input.cc (get_integer_arg,
3443 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
3446 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
3447 * src/libs/libgroff/nametoindex.cc
3448 (character_indexer::named_char_index): Use `new <type>[1]'.
3450 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
3452 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
3453 (split_text): Use `a_delete'.
3455 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
3458 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
3459 harmless memory leak.
3460 (hyphen_trie::read_patterns_file): Initialize `buf'.
3461 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
3462 Initialize `current_fill_color'and `current_glyph_color'.
3463 * src/roff/troff/glyphuni.cc
3464 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
3465 * src/roff/troff/uniuni.cc
3466 (unicode_decompose_init::unicode_decompose_init): Ditto.
3467 * src/roff/troff/uniglyph.cc
3468 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
3470 2003-01-26 Werner LEMBERG <wl@gnu.org>
3472 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
3473 `access' before calling `unlink'.
3474 (do_file): Handle __EMX__.
3476 * src/include/nonposix.h: Handle __EMX__.
3478 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
3479 (fontpath,tmacpath): Use it.
3481 Sorted alphabetically.
3483 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
3485 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
3488 2003-01-27 Werner LEMBERG <wl@gnu.org>
3490 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
3491 New files, copied from gnulib.
3492 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
3493 * configure.ac: Updated.
3494 * configure: Regenerated.
3496 * src/include/config.hin: Regenerated.
3497 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
3498 Don't define `strcasecmp' as `strcmp'.
3499 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
3500 Dont define `strncasecmp' as `strncmp'.
3502 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
3505 2003-01-26 Werner LEMBERG <wl@gnu.org>
3507 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
3510 2003-01-25 Werner LEMBERG <wl@gnu.org>
3512 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
3514 2003-01-24 Werner LEMBERG <wl@gnu.org>
3516 Add US-english hyphenation exceptions (converted from Barbara
3517 Beeton's hyphenation exception log reports which appear irregularly
3520 * tmac/hyphen.us: Updated to latest version.
3521 * tmac/README: Updated.
3522 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
3523 * tmac/troffrc: Load `hyphenex.us'.
3524 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
3525 * doc/groff.texinfo: Updated.
3527 2003-01-23 Werner LEMBERG <wl@gnu.org>
3529 Improve hyphenation slightly. This is a first step in redesigning
3530 the hyphenation algorithm to make it more flexible (e.g. allowing
3531 kerns and ligatures between the hyphenation character and the
3532 following character -- while not used normally in English, other
3533 languages like German would benefit).
3535 * src/roff/troff/env.cc (environment::hyphenate_line): Use
3536 assertion instead of if-clause.
3537 Let `get_hyphen_list' return the number of involved characters in
3538 the hyphenation pattern instead of computing it directly (which
3539 often yields too small values).
3540 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
3541 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
3544 2003-01-22 Werner LEMBERG <wl@gnu.org>
3546 Fixing a bug which caused groff to hang if the hyphenation exception
3547 dictionary tried to grow.
3549 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
3550 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
3551 pointer to dictionary.
3553 2003-01-20 Werner LEMBERG <wl@gnu.org>
3555 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
3556 negative left italic correction.
3557 * src/utils/afmtodit/afmtodit.man: Document it.
3559 * font/devps/generate/Makefile (RFLAG): Add `-m'.
3560 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
3561 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
3565 2003-01-16 Werner LEMBERG <wl@gnu.org>
3569 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
3571 * src/preproc/refer/refer.man: Mention REFER environment variable.
3573 2003-01-05 Werner LEMBERG <wl@gnu.org>
3575 Similar to \[is], the square root glyph (\[sr]) and the square root
3576 extension glyph (\[radicalex]) are now text symbols. The new
3577 mathematical versions are called \[sqrt] and \[sqrtex],
3580 * font/devX*/S: Regenerated.
3581 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
3582 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
3583 * font/devdvi/EX, font/devdvi/S: Regenerated.
3584 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
3585 * font/devlj4/generate/special.map: Add `sqrt'.
3586 * font/devlj4/S: Regenerated.
3587 * font/devps/generate/textmap: Add `sqrt'.
3588 * font/devps/S, font/devps/symbolmap: Regenerated.
3590 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
3591 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
3592 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
3593 overlap horizontally.
3595 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
3596 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
3599 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
3600 and `sqrtex' are overlapping glyphs.
3602 2003-01-04 Werner LEMBERG <wl@gnu.org>
3604 * font/devdvi/generate/texsy.map: Add `is'.
3605 * font/devps/symbolmap: Regenerated.
3606 * font/devdvi/*TC, MI, S: Regenerated.
3608 * tmac/dvi.tmac: Remove `is'.
3610 2003-01-03 Werner LEMBERG <wl@gnu.org>
3612 `is' is now a text symbol (only relevant for dvi). The math variant
3613 can be accessed with `integral'.
3615 * font/devX*/S: Regenerated.
3616 * font/devdvi/generate/texex.map: Remove `is'.
3617 * font/devdvi/EX: Updated.
3618 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
3619 * font/devlj4/generate/special.map: Ditto.
3620 * font/devlj4/S: Regenerated.
3621 * font/devps/generate/textmap: Add `integral'.
3622 * font/devps/S: Regenerated.
3624 * tmac/dvi.tmac: Define `is'.
3626 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
3628 * src/preproc/tbl/main.cc (process_format): Fix error message.
3630 2003-01-02 Werner LEMBERG <wl@gnu.org>
3632 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
3633 * font/devps/textmap: Fix entries for `ne' and `nc'.
3634 * font/devps/symbolmap: Regenerated.
3636 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
3637 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
3638 `38', `58', `78', `-+', `|=', `nc', `ne'.
3640 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
3641 Use `schar' for `aq'.
3642 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
3643 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
3644 * tmac/tty.tmac: Add `ne'.
3646 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
3647 for fallback glyphs.
3649 2002-12-29 Werner LEMBERG <wl@gnu.org>
3653 * font/devX*/*: Regenerated.
3654 * font/devdvi/generate/ec.map: Remove `eq'.
3655 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
3656 Assign `|=' to position 39.
3657 * font/devdvi/*EC, S: Regenerated.
3658 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
3659 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
3660 Assign `|=' to position 549.
3661 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
3663 Add `uni2243' for `|='.
3665 * tmac/ec.tmac: Add `eq'.
3666 * tmac/dvi.tmac: Add `=~'.
3667 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
3670 2002-12-21 Werner LEMBERG <wl@gnu.org>
3672 * font/devdvi/generate/tc.map: Remove `**'.
3673 * font/devdvi/*TC: Regenerated.
3674 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
3676 * font/devutf8/NOTES: Updated.
3678 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
3679 Don't give default parameter to `set_macro'.
3680 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
3681 instead of `set_macro'.
3682 (charinfo::setx_macro): Implement it.
3683 (charinfo::set_macro): Don't change `mode'.
3685 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
3686 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
3687 * tmac/dvi.tmac: Define `!=' with `.schar'.
3689 2002-12-20 Werner LEMBERG <wl@gnu.org>
3691 * font/devX*/S: Regenerated.
3692 * font/devdvi/generate/ec.map: Remove `pl'.
3693 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
3694 * font/devdvi/*{TC,EC}: Regenerated.
3695 * font/devhtml/R.proto: Add `-+'.
3696 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
3697 * font/devlbp/*: Remove `or'.
3698 * font/devlj4/generate/special.map: Remove `or'.
3699 * font/devlj4/S: Regenerated.
3700 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
3701 `seveneighths', `threeeighths'.
3703 Replace `minusplus' with `uni2213'.
3704 * font/devps/symbolmap: Regenerated.
3705 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
3708 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
3710 * src/roff/troff/node.cc (troff_output_file::put_char_width):
3711 Call glyph_color and fill_color even if tcommand_flag isn't set.
3712 (make_node, node::add_char): Check not ci->is_fallback but
3715 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
3716 * tmac/ec.tmac: Add .rchar entry for `f/'.
3717 Don't remove `12', `14', `34'.
3718 Define `pl' to be always roman.
3719 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
3720 Define `18', `38', `58', `78'.
3721 * tmac/tty.tmac: Add `-+'.
3722 * tmac/dvi.tmac: Define `f/'.
3723 (dvi-frac): Use `f/'.
3724 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
3725 Define `18', `38', `58', `78'.
3727 2002-12-15 Colin Watson <cjwatson@debian.org>
3729 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
3731 2002-12-10 Werner LEMBERG <wl@gnu.org>
3733 Add glyph `tno', a textual variant of `no'.
3735 * font/devX*/*: Regenerated.
3736 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
3737 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
3738 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
3739 * font/devdvi/*: Regenerated.
3740 * font/devlbp/*: Add `tno'.
3741 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
3742 * font/devlj4/*: Regenerated.
3743 * font/devps/generate/textmap: Replace `no' with `tno'.
3744 * font/devps/generate/symbolchars: Add `no'.
3745 * font/devps/*: Regenerated.
3747 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
3749 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
3750 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
3754 * tmac/dvi.tmac: Replace most `\\' with `\E'.
3755 Add definition for `sd'.
3756 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
3758 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
3760 2002-12-08 Werner LEMBERG <wl@gnu.org>
3762 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
3763 mode to avoid rounding errors.
3764 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
3766 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
3767 src/roff/troff/troff.man: Improve documentation of -T.
3769 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
3771 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
3772 (run_pipeline) [_WIN32]: Provide working function without `fork'.
3774 2002-12-06 Werner LEMBERG <wl@gnu.org>
3776 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
3777 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
3778 Scaling Euro.sansserif glyphs down to have the same height as
3780 Removed unnecessary points; added some extrema.
3782 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
3785 2002-12-04 Werner LEMBERG <wl@gnu.org>
3787 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
3788 and `Euro.symbol.bold.slanted'.
3789 Improve some glyph offsets and widths.
3790 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
3792 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
3794 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
3797 * tmac/europs.tmac: Updated to new glyph indices.
3798 Use Euro.symbol for font familiy `A'.
3800 * doc/groff.texinfo: Minor improvements.
3802 2002-12-02 Werner LEMBERG <wl@gnu.org>
3804 * font/devdvi/generate.tc.map: s/%O/%0/.
3805 * font/devdvi/*TC: Regenerated.
3807 * src/roff/troff/div.cc (init_div_requests): Sorted.
3809 * tmac/dvi.tmac: Remove `Ye'.
3810 * tmac/ec.tmac: Remove `Ye'.
3811 Add .rchar entry for `de'.
3813 * man/groff.man, man/groff_diff.man: Document register `.pe'.
3814 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
3817 2002-11-30 Werner LEMBERG <wl@gnu.org>
3819 Add PS font for various Euro glyphs.
3821 * font/devps/generate/freeeuro.sfd: New master font file for
3823 * font/devps/generate/sfdtopfa.pe: New conversion script for
3825 * font/devps/generate/Makefile (FONTS): Add `EURO'.
3826 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
3827 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
3829 * font/devps/EURO: Generated from `freeeuro.afm'.
3830 * font/devps/download: Add `freeuro.pfa'.
3831 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
3834 * tmac/europs.tmac: New file.
3835 * tmac/ps.tmac: Include `europs.tmac'.
3836 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
3838 2002-11-29 Werner LEMBERG <wl@gnu.org>
3840 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
3841 * font/devdvi/S: Regenerated.
3842 * font/devhtml/R.proto: Fix `CR' and `ci'.
3844 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
3846 * font/devps/symbolmap: Regenerated.
3847 * font/devutf8/R.proto: Fix `CR' and `ci'.
3849 * font/devutf8/NOTES: Updated.
3851 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
3854 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
3856 * tmac/dvi.tmac: Add `lh' and `rh'.
3857 * tmac/Xps.tmac: Fix `lh' and `rh'.
3858 * tmac/X.tmac: Add `OK'.
3859 * tmac/lj4.tmac: Ditto.
3861 2002-11-24 Werner LEMBERG <wl@gnu.org>
3863 * font/devX*/S: Regenerated.
3864 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
3865 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
3866 * font/devdvi/generate/texsy.map: Remove `or' glyph.
3867 * font/devdvi/S: Regenerated.
3868 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
3869 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
3870 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
3871 `bracketleftbt', `bracketrighttp', `bracketrightex',
3872 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
3873 `braceex', `braceleftex', `bracerightex', `bracerighttp',
3874 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
3876 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
3877 * font/devutf8/NOTES: Updated.
3878 * font/devlj4/generate/special.map: Add glyph `braceex'.
3879 * font/devlj4/S: Regenerated.
3881 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
3883 2002-11-14 Werner LEMBERG <wl@gnu.org>
3885 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
3888 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
3890 * doc/texinfo.tex: New version from texinfo 4.3.
3891 * doc/groff.texinfo: Updated for texinfo 4.3.
3892 Use @tie{} where appropriate.
3893 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
3894 * font/devdvi/generate/tc.map: Remove `rn'.
3895 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
3896 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
3898 * font/devX100/*, font/devX100-12/*, font/devX75/*,
3899 font/devX75-12/*: Regenerated.
3901 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
3902 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
3903 Improve definition of `an'.
3904 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
3906 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
3907 * tmac/X.tmac: Add definition for `or'.
3908 * tmac/Xps.tmac: Undo change 2002-11-05.
3909 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
3911 2002-11-11 Werner LEMBERG <wl@gnu.org>
3913 * src/roff/troff/node.cc (troff_output_file::put_char): Always
3916 2002-11-10 Werner LEMBERG <wl@gnu.org>
3918 Added three new requests `schar', `fschar', and `rfschar'. `schar'
3919 defines a glyph which is searched after the check for fonts declared
3920 with `.special' (and before the check for all mounted special
3921 fonts). `fschar' defines a glyph for a particular font which is
3922 searched after the check for fonts declared with `.fspecial' (and
3923 before the check for fonts declared with `.special'). `rfschar'
3924 removes glyphs defined with `fschar'.
3926 * src/roff/troff/token.h (char_mode): New enum.
3927 Declare do_define_character.
3928 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
3930 (charinfo::is_fallback): Updated.
3931 (charinfo::is_special): New method.
3932 * src/roff/troff/input.cc (do_define_character): Add and use
3933 optional second parameter used as a prefix for font-specific glyph
3935 (define_character, define_fallback_character): Updated.
3936 (define_special_character): New function.
3937 (init_input_requests): Add `schar'.
3938 (charinfo::charinfo, charinfo::set_macro): Updated.
3939 * src/roff/troff/node.cc: Include `stringclass.h'.
3940 (make_glyph_node): Handle special glyphs defined with `.schar' and
3942 (define_font_special_character, remove_font_special_character): New
3944 (init_node_requests): Sorted.
3945 Add `fschar' and `rfschar'.
3946 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3947 Document new requests.
3949 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
3950 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
3952 2002-11-08 Werner LEMBERG <wl@gnu.org>
3954 Added new font `SC' (cmtex10) to devdvi.
3956 * devdvi/generate/Makefile (FONTS): Add `SC'.
3958 * devdvi/generate/textex.map: New map file for cmtex.
3960 * devdvi/Makefile.sub (DEVFILES): Updated.
3961 * tmac/dvi.tmac: Add fspecial entries for SC.
3962 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
3963 found before `S' since the font position of `SC' is lower due to the
3964 gaps in DESC's `font' line.
3965 * tmac/ec.tmac: Add a `special' call.
3968 * font/devhtml/R.proto: Remove double entry for `ti'.
3969 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
3970 * tmac/tty-char.tmac: Remove entry for `bq'.
3971 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
3972 * tmac/ec.tmac: Don't remove `aq' glyph.
3973 * tmac/X.tmac: Fix entry for `em'.
3974 Add entries for `fo' and `fc'.
3975 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
3977 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
3978 documentation of `special' and `fspecial' requests.
3980 2002-11-05 Werner LEMBERG <wl@gnu.org>
3982 * font/devascii/R.proto, font/devcp1047/R.proto,
3983 font/devlatin1/R.proto: Remove entry for `.i'.
3984 * font/devdvi/generate/textt.map: Add entry for `ad'.
3985 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
3986 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
3987 We need this for getting kerning values to compose `/l' and `/L'.
3988 * font/devdvi: Regenerated font definition files for CM fonts.
3989 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
3990 * font/devutf8/R.proto: Ditto.
3991 Remove double entry for `ti'.
3993 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
3994 for (groff) ligatures, `la', and `ra'.
3995 Add "'C", "'c", `IJ', and `ij'.
3996 Remove double entry for `ti'.
3997 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
3999 Add "'C", "'c", `IJ', and `ij'.
4000 Fix entries for (groff) ligatures, `la', and `ra'.
4002 * tmac/ps.tmac (ps-achar): New macro.
4003 Define "'c" and "'C".
4004 * tmac/tty.tmac: Add entry for `.i'.
4005 * tmac/X.tmac (X-achar): New macro.
4006 Define "'c", "'C", and `:Y'.
4007 Add entries for `IJ' and `ij'.
4008 * tmac/Xps.tmac (Xps-achar): New macro.
4009 Define "'c" and "'C".
4010 Add entries for `IJ' and `ij'.
4011 * tmac/lbp.tmac (lbp-achar): New macro.
4012 Add fallback characters for all groff ligatures and many other
4014 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
4015 Add entries for `/l' and `/L'.
4016 Define "'c" and "'C".
4017 Add entries for `IJ' and `ij'.
4019 2002-11-02 Larry Kollar <kollar@alltel.net>
4021 * PROBLEMS: Document how to solve Mac OS X compilation problems.
4023 2002-11-02 Werner LEMBERG <wl@gnu.org>
4025 Adding support for composite glyphs: \[xxx yyy ...] and the
4026 `composite' request.
4028 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
4029 to Unicode-based glyph names.
4030 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
4031 glyph names to groff glyph names.
4032 * src/roff/troff/uniuni.cc: New file for canonically decomposing
4033 Unicode-based glyph names.
4034 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
4035 for handling Unicode glyph names.
4036 * src/roff/troff/input.cc: Include unicode.h.
4037 (composite_glyph_name): New function.
4038 (token::next) <'['>: Handle Unicode glyph names and composite
4040 (composite_dictionary): New dictionary for the `composite' request.
4041 (composite_request): Implement `composite' request.
4042 (init_input_requests): Add `composite'.
4043 Alphabetically sorted.
4044 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
4046 (init_env_requests): Alphabetically sorted.
4047 Removed `tas' and `tar' (already commented out).
4048 * src/roff/troff/Makefile.sub: Updated.
4050 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
4052 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
4055 2002-10-29 Werner LEMBERG <wl@gnu.org>
4057 Fix computation of .trunc register. Additionally, its value (and
4058 the value of the .ne register) is now always set before entering the
4061 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
4062 `needed_space' before calling `space'.
4063 (top_level_diversion::space): Remove special code for 'sp before the
4065 Call `begin_page' with the discarded space as a parameter.
4066 (top_level_diversion::begin_page): Add optional parameter to set
4068 * src/roff/troff/div.h: Updated.
4070 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
4073 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
4074 (LP): Remove superfluous call to `br'.
4075 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
4076 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4078 2002-10-26 Werner LEMBERG <wl@gnu.org>
4080 * tmac/doc-ditroff: Remove useless switch/variable -rC.
4081 (doc-setup-header): Don't set page register `%'.
4082 * tmac/doc-nroff: Remove variable `C'.
4083 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
4084 (doc-setup-header): Don't set page register `%'.
4086 * tmac/doc-common (doc-header): Call `ns'.
4087 (doc-paragraph): Protect .sp with .br so that it survives traps
4088 possibly set by the user.
4089 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4091 * tmac/doc*: Replace ' with . for consistency if no effect.
4093 2002-10-26 Werner LEMBERG <wl@gnu.org>
4095 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
4096 so that it survives traps possibly set by the user.
4098 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
4099 (troff_output_file::set_font): Call flush_tbuf if necessary.
4100 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
4101 flush_tbuf and do_motion only if necessary.
4102 (troff_output_file::start_special,
4103 troff_output_file::put_char_width, troff_output_file::put_char,
4104 troff_output_file::draw): Updated.
4105 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4106 vmotion_node::tprint): Undo change 2002-10-23.
4108 2002-10-25 Werner LEMBERG <wl@gnu.org>
4110 * tmac/www.tmac (DC): Fix case of overlapping images.
4112 2002-10-23 Werner LEMBERG <wl@gnu.org>
4114 * src/roff/troff/node.cc (troff_output_file::fill_color,
4115 troff_output_file::glyph_color): Set current color before testing
4117 (troff_output_file::put_char_width, troff_output_file::put_char,
4118 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
4120 (troff_output_file::file_color, troff_output_file::glyph_color):
4122 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4123 vmotion_node::tprint): Move first, then call fill_color.
4125 2002-10-20 Werner LEMBERG <wl@gnu.org>
4127 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
4128 possible to use multiple main macro packages.
4130 2002-10-19 Werner LEMBERG <wl@gnu.org>
4132 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
4133 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
4134 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
4136 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
4137 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
4139 2002-10-16 Werner LEMBERG <wl@gnu.org>
4141 * NEWS, doc/webpage.ms: Updated.
4143 2002-10-14 Werner LEMBERG <wl@gnu.org>
4145 * src/roff/troff/node.cc (troff_output_file::put_char_width,
4146 troff_output_file::put_char, troff_output_file::fill_color,
4147 troff_output_file::glyph_color): Handle case where color pointer
4150 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
4152 Add the new -r option to grotty. It is similar to the -i option
4153 except it tells grotty(1) to use the "reverse video" attribute to
4154 render italic fonts.
4156 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
4157 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
4158 (tty_printer::make_underline, tty_printer::put_color,
4159 tty_printer::end_page): Use it.
4160 (main): Add -r switch.
4162 * src/devices/grotty/grotty.man: Document it.
4164 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
4166 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4167 cast to `unsigned char' to properly read patterns with 8bit
4170 2002-10-08 Werner LEMBERG <wl@gnu.org>
4172 * REVISION: Increased to 2.
4174 Version 1.18.1 released
4175 =======================
4177 2002-10-08 Werner LEMBERG <wl@gnu.org>
4179 * doc/webpage.ms, NEWS: Updated.
4181 2002-10-07 Werner LEMBERG <wl@gnu.org>
4183 * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
4184 suppress additional whitespace after the header.
4186 * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
4189 * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
4191 2002-10-07 Ruslan Ermilov <ru@FreeBSD.org>
4193 * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
4194 (Dt): Use it to improve language localization (especially Russian
4197 2002-10-07 Daniel Senderowicz <daniel@synchrods.com>
4199 * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
4200 * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
4202 * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
4204 Call `picurve' for BSPLINE.
4205 (HGPrintElt): Handle BSPLINE.
4206 * src/preproc/grn/README: Document it.
4208 2002-10-03 Werner LEMBERG <wl@gnu.org>
4210 * src/roff/troff/node.cc (break_char_node::col): New variable.
4211 Updated constructor.
4212 (space_node::tprint, word_space_node::tprint): Call `fill_color'
4214 (space_node::space_node): Remove assertion.
4215 (break_char_node::add_self): Pass color argument to space node.
4216 * src/roff/troff/input.cc (token::add_to_node_list, token::process):
4218 * src/roff/troff/env.cc (environment::do_break,
4219 environment::add_padding): Ditto.
4221 2002-10-02 Werner LEMBERG <wl@gnu.org>
4223 Redesigning color support in troff. Colors are no longer
4224 represented as separate nodes but are now part of glyph nodes and
4225 friends. This fixes the current formatting misbehaviour due to the
4226 changes introduced on 2002-09-20. Some extra code is necessary for
4227 proper grotty support: Without adding color variables to
4228 space-related nodes, the background color would be changed too late.
4230 * src/roff/troff/node.h, src/roff/troff/node.cc:
4231 s/current_pagecolor/current_fill_color/.
4232 s/current_glyphcolor/current_glyph_color/.
4233 (glyph_color_node, fill_color_node): Removed.
4234 (node::get_glyph_color, node::get_fill_color): New virtual member
4236 (space_node::col): New variable.
4237 Updated constructors of space_node and derived classes accordingly.
4238 (hmotion_node::col): New variable.
4239 Updated constructors of hmotion_node and space_char_hmotion_node
4241 (vmotion_node::col): New variable.
4242 Updated constructor accordingly.
4243 (draw_node::gcol, draw_node::fcol): New variables.
4244 Updated constructor accordingly.
4245 (special_node::gcol, special_node::fcol): New variables.
4246 Updated constructors accordingly.
4247 (troff_output_file::put_char, troff_output_file::put_charwidth,
4248 troff_output_file::draw): Set glyph and fill color.
4249 (troff_output_file::start_special): Set glyph and fill color.
4250 Always set current font.
4251 (troff_output_file::fill_color, troff_output_file::glyph_color):
4252 Don't call `do_motion'.
4253 (glyph_node::gcol, glyph_node::fcol): New variables.
4254 Updated constructors of glyph_node and ligature_node accordingly.
4255 (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
4257 (glyph_node::merge_glyph_node,
4258 kern_pair_node::add_discretionary_hyphen,
4259 node::add_discretionary_hyphen): Updated.
4260 (break_char_node::merge_self): Updated.
4261 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4262 vmotion_node::tprint): Handle color.
4263 (make_glyph_node, make_node, node::add_char): Updated.
4265 * src/roff/troff/env.cc (environment::space_newline,
4266 environment::space, environment::output_line, environment::do_break,
4267 environment::make_tab_node, environment::add_padding, title):
4269 (environment_switch, environment_copy): Don't add color nodes.
4271 * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
4273 (token::next): Updated.
4274 \m and \M now are as transparent as \s.
4275 (process_input_stack, token::add_to_node_list, token::process,
4276 read_draw_node): Updated.
4277 (charinfo_to_node_list): Don't add color nodes.
4279 * doc/groff.texinfo: Updated.
4281 2002-09-27 Ruslan Ermilov <ru@FreeBSD.org>
4283 * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
4286 2002-09-27 Colin Watson <cjwatson@debian.org>
4288 * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
4290 2002-09-23 Werner LEMBERG <wl@gnu.org>
4292 * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
4294 (DEFAULT_LINEWIDTH_FACTOR): New macro.
4295 (linewidth_factor): New global variable.
4296 (lbp_printer::set_line_thickness): Fix case for size < 0, using
4298 (long_options): Add -w/--linewidth option.
4300 (main): Handle -w option to set linewidth_factor.
4301 (lbp_printer::lbp_printer): Initialize req_linethickness, not
4304 * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
4306 2002-09-22 Paco Andrés Verdú <pandres@dragonet.es>
4308 Fixed a bug in the line thickness setting code.
4310 * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
4312 (lbp_printer::set_line_thickness): Pass environment as second
4314 Implement it actually.
4315 (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
4316 and `set_line_thickness, depending on the current font size.
4318 2002-09-21 Werner LEMBERG <wl@gnu.org>
4320 Some Debian patches.
4322 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
4323 * src/roff/troff/node.cc (bracket_node::copy): Initialize
4326 2002-09-20 Werner LEMBERG <wl@gnu.org>
4328 * configure: Regenerated with autoconf 2.54.
4330 2002-09-20 Werner LEMBERG <wl@gnu.org>
4332 * src/roff/troff/env.h (environment): Rename cur_glyph_color to
4334 Rename cur_fill_color to fill_color.
4335 * src/roff/troff/env.cc: Updated.
4337 2002-09-20 Werner LEMBERG <wl@gnu.org>
4339 * src/roff/troff/env.cc (title): Copy color status after processing
4341 * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
4342 fill color nodes to reset colors properly.
4344 * tmac/www.tmac (DC): Fix color handling.
4346 * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
4347 * doc/groff.texinfo: Fixing documentation of `tl' request.
4348 * doc/webpage.ms: Updated.
4350 2002-09-19 Werner LEMBERG <wl@gnu.org>
4352 * src/roff/troff/env.cc (environent_switch, environment_copy):
4353 Emit glyph and fill color nodes to initialize colors properly.
4355 2002-09-17 Colin Watson <cjwatson@debian.org>
4357 * src/roff/troff/env.cc (environment::set_glyph_color,
4358 environment::set_fill_color): Fix typo which prevented \m[] work
4361 2002-09-17 Werner LEMBERG <wl@gnu.org>
4363 Add left and right italic correction to non-slanted PS fonts. This
4364 is an experimental feature to improve image rendering of grohtml.
4366 * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
4367 ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
4368 * font/devps/*: All non-slanted fonts regenerated.
4371 2002-09-16 Werner LEMBERG <wl@gnu.org>
4373 Add a site-specific font directory.
4375 * Makefile.in (localfontdir, legacyfontdir): New variables.
4376 (fontpath): Use them.
4377 (MDEFINES, uninstall_dirs): Updated.
4378 * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
4379 Remove `FONTPATH' and `MACROPATH'.
4381 * src/roff/troff/troff.man, NEWS: Updated.
4382 * doc/groff.texinfo (Font Directories): New section.
4385 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
4386 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
4387 src/preproc/grn/grn.man: Minor fixes.
4389 * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
4390 Remove unused variable.
4392 2002-09-11 Werner LEMBERG <wl@gnu.org>
4394 * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
4395 * man/groff_out.man: Fix documentation of 'N'.
4397 2002-09-09 Gaius Mulley <gaius@glam.ac.uk>
4399 * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
4400 * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
4402 * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
4403 (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
4404 (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
4405 * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
4406 PRE_TAG>: Call `begin' with `FALSE'.
4408 2002-09-09 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4410 * src/libs/libgroff/string.cc (string::extract): Fix position of
4411 terminating null byte.
4413 2002-09-08 Werner LEMBERG <wl@gnu.org>
4415 Add global option `nospaces' to tbl so that leading and trailing
4416 spaces in data items are ignored.
4418 * src/libs/libgroff/string.cc (string::remove_spaces): New member
4419 function to remove leading and trailing spaces.
4420 * src/include/stringclass.h: Updated.
4422 * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
4424 * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
4426 Fix typo in error messages.
4427 (process_data): Implement `nospaces' option.
4428 * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
4430 2002-09-07 Werner LEMBERG <wl@gnu.org>
4432 * src/include/config.hin: Add `HAVE_ISATTY'.
4433 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
4435 * src/libs/libgroff/tmpname.cc: Include `time.h'.
4436 * src/libs/libdriver/input.cc (Char): Add `operator==' and
4437 `operator!=' for `char'.
4438 * doc/groff.texinfo: Replace @ifnottex block for top node with
4441 2002-09-06 Werner LEMBERG <wl@gnu.org>
4443 * doc/Makefile.in (.texinfo.html): Add -I switch.
4444 * doc/groff.texinfo: Add @ifnottex block for top node to make
4445 translation to HTML work.
4447 2002-09-05 Gaius Mulley <gaius@glam.ac.uk>
4449 * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
4450 (get_papersize, determine_vertical_offset): Removed.
4451 (char_buffer::do_image): Always specify letter size.
4453 (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
4456 2002-09-05 Werner LEMBERG <wl@gnu.org>
4458 * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
4459 default indentation.
4461 2002-09-04 Gaius Mulley <gaius@glam.ac.uk>
4463 * src/preproc/html/pre-html.cc (imageList::createPage): Use
4465 (generateImages): Clean up push-back buffer.
4467 2002-09-04 Ralph Corderoy <ralph@inputplus.demon.co.uk>
4469 * doc/groff.texinfo: Minor fixes.
4471 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
4473 * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
4474 (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
4476 (determine_vertical_offset): Use LETTER_LENGTH.
4477 (createPage): Moved to ...
4478 (imageList::createPage): This.
4479 Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
4480 (imageList::getMaxX): New function.
4481 (createImage): Moved to ...
4482 (imageList::createImage): This.
4483 (imageList::createImages): New function.
4484 (generateImages): Read `maxx' directly.
4486 (scanArguments): Don't specify `gsPaper' for `-o'.
4487 (makeTempFiles): Call `xtmpfile' with the last argument set to
4490 2002-08-24 Werner LEMBERG <wl@gnu.org>
4492 * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
4493 (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
4494 * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
4495 * src/preproc/html/pushback.cc: Include nonposix.h.
4496 * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
4499 2002-08-23 Werner LEMBERG <wl@gnu.org>
4501 Use $(OBJEXT) for the object file extension.
4503 * Makefile.comm (.SUFFIXES): Add .obj.
4504 (.cc.obj, .c.obj): New implicit rules.
4505 * Makefile.in (OBJEXT): New variable, initialized from autoconf.
4506 (MDEFINES): Add EXEEXT and OBJEXT.
4507 * */Makefile.sub: s/.o/.$(OBJEXT)/.
4509 2002-08-22 Werner LEMBERG <wl@gnu.org>
4511 * INSTALL: Mention texinfo 4.2 as a prerequisite.
4513 2002-08-21 Gaius Mulley <gaius@glam.ac.uk>
4515 * src/devices/grohtml/post-html.cc (colType): Make enum global to
4517 (html_printer::update_min_max, html_printer::add_table_end): New
4519 (html_printer::lookahead_for_tables): Use them.
4520 Reset page offset correctly.
4521 (html_printer::~html_printer): Add creation of creator comment up.
4523 2002-08-20 Werner LEMBERG <wl@gnu.org>
4525 * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
4526 * man/groff_tmac.man: Fix typos.
4527 * man/groff_font.man: Minor reordering.
4528 * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
4530 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
4532 Avoid endless loops while scanning for tables.
4534 * src/devices/grohtml/post-html.cc (list::insert): Set
4536 (html_printer::next_horiz_pos): Add `text_glob' argument; update
4538 Return immediately if that argument is NULL.
4539 (html_printer::calc_nf): Don't test if `g' is NULL.
4540 (html_printer::lookahead_for_tables): Use
4541 `glyphs.move_right_get_data'.
4542 Don't test if `g' is NULL.
4544 2002-08-18 Gaius Mulley <gaius@glam.ac.uk>
4546 A better fix, replacing fix 2002-08-15, for increasing SIZE.
4548 * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
4550 (char_block::char_block): Allocate `buffer'.
4551 (char_buffer::add_string): Use it.
4553 2002-08-15 Werner LEMBERG <wl@gnu.org>
4555 * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
4556 src/devices/grodvi/grodvi.man: Document default line thickness.
4558 2002-08-15 Gaius Mulley <gaius@glam.ac.uk>
4560 * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
4563 2002-08-14 Werner LEMBERG <wl@gnu.org>
4565 * doc/webpage.ms: Updated.
4567 2002-08-09 Werner LEMBERG <wl@gnu.org>
4569 * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
4572 2002-08-08 Aaron Campbell <aaron@monkey.org>
4574 * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
4577 2002-08-08 Werner LEMBERG <wl@gnu.org>
4579 * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
4582 Don't push back a space but a newline onto the stack.
4584 2002-08-07 Gaius Mulley <gaius@glam.ac.uk>
4586 Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
4589 * src/devices/grohtml/post-html.cc (html_printer::end_font,
4590 html_printer::start_font): Handle them.
4591 * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
4593 (html_text::do_bold): Don't reset italic and tt.
4594 (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
4595 * font/devhtml/DESC.proto: Add those fonts.
4596 * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
4598 2002-08-07 Werner LEMBERG <wl@gnu.org>
4600 * MORE.STUFF: Added gpresent.
4602 * tmac/trace.tmac: Show nesting level by a corresponding amount of
4603 whitespace before printing the logging message.
4605 2002-07-31 Colin Watson <cjwatson@debian.org>
4607 * src/devices/grohtml/html-table.cc (html_table::finish_row):
4608 Initialize `n' to zero. This fixes a segfault on ARM.
4610 2002-07-30 Werner LEMBERG <wl@gnu.org>
4612 * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
4614 2002-07-29 Werner LEMBERG <wl@gnu.org>
4616 * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
4619 2002-07-28 Colin Watson <cjwatson@debian.org>
4621 * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
4623 (html_printer::html_printer): Initialize `pointsize'.
4625 2002-07-26 Werner LEMBERG <wl@gnu.org>
4627 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
4629 (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
4630 (gnu.eps): Add -rle switch to pnmtops.
4631 (distfiles): Add gnu.eps and gnu.png.
4633 2002-07-25 Petter Reinholdtsen <pere@hungry.com>
4635 * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
4638 2002-07-24 Werner LEMBERG <wl@gnu.org>
4640 * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
4641 ' \+' but ' *' for sed.
4642 (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
4644 2002-07-23 Werner LEMBERG <wl@gnu.org>
4646 * doc/groff.texinfo: Document `papersize' keyword.
4647 * NEWS, man/groff_font.man: Updated.
4649 2002-07-23 Colin Watson <cjwatson@debian.org>
4651 Extend papersize keyword to accept more than a single entry. The
4652 first valid will be used.
4654 * src/libs/libgroff/font.cc (font::load_desc): Implement it.
4655 (font::scan_papersize): Really skip final newline.
4656 * src/preproc/html/pre-html.cc (get_papersize): Ditto.
4658 2002-07-23 Werner LEMBERG <wl@gnu.org>
4660 * configure.ac: Test for isatty.
4661 * configure: Regenerated.
4662 * src/include/posix.h: Check HAVE_ISATTY.
4663 * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
4664 * src/utils/lookbib/lookbib.cc: Include posix.h.
4665 Don't declare isatty.
4667 2002-07-21 Werner LEMBERG <wl@gnu.org>
4669 * NEWS: Add `output' request.
4671 * REVISION: Increased to 1.
4673 Version 1.18.0 released
4674 =======================
4676 2002-07-19 Gaius Mulley <gaius@glam.ac.uk>
4678 Allow internal glyph indices > 0xFF in grohtml for input characters.
4680 * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
4682 (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
4683 Updated all callers.
4684 (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
4685 (html_printer): Updated.
4687 2002-07-19 Werner LEMBERG <wl@gnu.org>
4689 * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
4690 * font/devutf8/R.proto: Adding some missing glyphs.
4691 * font/devutf8/NOTES: Updated.
4693 * tmac/dvi.tmac: Add more composite glyphs.
4694 * tmac/html.tmac: Updated.
4696 * man/groff_char.man: Add `sum' and `product' entities.
4700 2002-07-18 Gaius Mulley <gaius@glam.ac.uk>
4702 Improved table, tab, and indenting support.
4704 * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
4705 string_iterator::suppress_newline_flag): Removed. Updated all
4706 function which have used it.
4708 * src/roff/troff/env.cc: Include `input.h'.
4709 (environment::add_node): Accept 0 as parameter.
4710 (environment::add_html_tag): Add `force' parameter.
4711 Updated all callers.
4712 (environment::add_html_tag_tabs): Ditto.
4713 For the moment, support left-aligned tabs only.
4714 (environment::make_html_tag): New function.
4715 (fill, no_fill): Set .br html tag additionally.
4716 (environment::newline): Emit `eol.ce' or `eol' tag for html.
4717 (environment::add_html_tag_eol): Removed.
4718 (tab_stops::distance_to_next_tab): Add variant for handling
4720 (environment::distance_to_next_tab): Ditto.
4721 Updated all callers.
4722 (environment::handle_tab): Handle tabs for html.
4724 * src/roff/troff/env.h: Updated.
4726 * src/roff/troff/div.cc: Updated all callers of
4727 `environment::add_html_tag'.
4729 * src/devices/grohtml/html-table.cc,
4730 src/devices/grohtml/html-table.h: New files.
4732 * src/devices/grohtml/html-text.cc (html_text): New members
4733 `blank_para' and `start_space'.
4734 (html_text::issue_tag): Don't emit TABLE_TAG.
4735 Handle indentation for PRE_TAG and P_TAG.
4736 (html_text::end_tag): Updated.
4737 (html_text::table_is_void, html_text::issue_table_begin,
4738 html_text::issue_table_end): Removed.
4739 (html_text::do_push): Simplified.
4740 [DEBUGGING]: Small fix.
4741 (html_text::push_para): Add new parameter for indentation; updated
4744 (html_text::do_indent, html_text::do_table, html_text::done_table,
4745 html_text::is_in_table): Removed.
4746 (html_text::do_pre): Handle P_TAG also.
4747 (html_text::shutdown): Handle p->indent.
4748 (html_text::check_emit_text): Simplified.
4749 (html_text::do_emittext): Reset `blank_para'.
4750 (html_text::do_para): Add new parameter for indentation; updated
4752 (html_text::remove_indent): New function.
4753 (html_text::do_space): Handle verbatim text properly.
4754 (html_text::ever_emitted_text, html_text::starts_with_space,
4755 html_text::remove_para_align): New functions.
4756 (html_text::dump_stack_element, html_text::dump_stack): Updated.
4758 * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
4761 * src/devices/grohtml/post-html.cc: Include html-table.h.
4762 (INDENTATION): Removed.
4763 (text_glob): Added many `is_<foo>' functions.
4764 Added table description `tab'.
4765 Added `get_arg',`get_tab_args', `remember_table', and `get_table'
4767 (list): Add `insert' and `move_to' member functions.
4768 (page): Add `insert_tag' member function.
4769 (page::dump_page) [DEBUG_TABLES]: Improved.
4770 (html_printer): Add `table' and `max_linelength' elements.
4771 Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
4772 `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
4773 `remove_tabs', `remove_courier_tabs'.
4774 (html_printer::emit_raw): Handle indentation.
4775 (html_printer::do_center, html_printer::write_header): Updated.
4776 (html_printer::is_courier_until_eol): Check for tag.
4777 (html_printer::do_linelength): Handle max_linelength.
4778 (html_printer::do_page_offset, html_printer::do_indentation): Handle
4780 (html_printer::do_tempindent): Updated.
4781 (html_printer::do_indentedparagraph): Removed.
4782 (html_printer::do_indent): Simplified.
4783 (html_printer::do_eol): Use `ever_emitted_text'.
4784 (html_printer::do_flush, html_printer::do_links): Don't call
4786 (html_printer::do_break): Handle end_tempindent.
4787 (html_printer::troff_tag): Get argument.
4789 Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
4790 (html_printer::flush_page): Call `lookahead_for_tables'.
4791 Don't call `done_table'.
4792 (html_printer::add_to_sbuf): Always call do_indent.
4794 * src/devices/grohtml/Makefile.sub: Updated.
4796 * tmac/an-old.tmac (TP): Don't handle html device specially.
4797 (an-do-tag-html): New function which will be used instead of
4798 `an-do-tag' if html device is used.
4800 * tmac/html.tmac: Call .po to pass default page offset to grohtml.
4802 * tmac/s.tmac (@IP): Don't handle html device specially.
4803 (@IP-html): New function which will be used instead of `@IP' if
4804 html device is used.
4806 * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
4807 is a hack which will eventually vanish again.
4808 (PIMG): Handle `-C' option correctly if not html.
4811 2002-07-17 Werner LEMBERG <wl@gnu.org>
4813 * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
4815 2002-07-14 Eric S. Raymond <esr@thyrsus.com>
4817 * contrib/pic2graph/pic2graph.*: Use convert(1).
4818 * contrib/eqn2graph/eqn2graph.*: Minor fixes.
4820 2002-07-14 Bernd Warken <bwarken@mayn.de>
4822 * tmac/groff_trace.man: New file.
4823 * tmac/Makefile.sub: Updated.
4826 2002-07-13 Werner LEMBERG <wl@gnu.org>
4828 * src/roff/groff/groff.man: Add some cross references.
4830 2002-07-12 Werner LEMBERG <wl@gnu.org>
4832 * src/roff/troff/input.cc (substring_request): Add warnings for
4833 string indices out of range.
4835 2002-07-11 Werner LEMBERG <wl@gnu.org>
4837 * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
4838 * font/devdvi/*EC: Regenerated.
4840 2002-07-10 Bernd Warken <bwarken@mayn.de>
4842 * man/groff_char.man: Updated and extended.
4844 2002-07-10 Werner LEMBERG <wl@gnu.org>
4846 * src/roff/troff/input.cc (length_macro): Renamed to...
4847 (length_request): This.
4848 Move call of `tok.next()' to the very end, otherwise the register
4849 value hasn't been updated yet.
4850 (init_input_requests): Updated.
4852 2002-07-09 Werner LEMBERG <wl@gnu.org>
4854 * src/roff/troff/input.cc (substring_macro): Renamed to...
4855 (substring_request): This.
4856 (init_input_requests): Updated.
4857 * src/roff/troff/request.h: Updated.
4859 2002-07-08 Robert D. Goulding <goulding@Princeton.EDU>
4861 * src/roff/grog/grog.sh: Fix typo.
4863 2002-07-08 Werner LEMBERG <wl@gnu.org>
4865 * win32-diffs: Updated.
4867 Handle `papersize' keyword properly in DESC.
4869 * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
4871 Updated all callers.
4872 * src/libs/libgroff/paper.cc: Add four more paper formats used by
4874 * src/include/paper.h: Updated.
4876 * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
4877 Other minor C syntax fixes.
4878 (papersize, paperlength, paperwidth): Renamed to `user_*'.
4879 (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
4881 (lbp_printer::lbp_printer): Pass three arguments.
4882 Set paper dimensions properly.
4883 (make_printer, main): Updated.
4884 (handle_unknown_desc_command): Fix error messages.
4885 (main): Handle papersize keyword in DESC properly.
4887 * src/devices/grolj4/lj4.cc (paper_size): Renamed to
4889 (lbp_printer::lbp_printer): Pass an argument.
4890 Set paper_size properly.
4891 (handle_unknown_desc_command): Removed.
4892 (make_printer, main): Updated.
4893 * src/devices/grolj4/grolj4.man: Minor documentation fix.
4895 * man/groff_font.man, NEWS: Updated.
4897 2002-07-07 Werner LEMBERG <wl@gnu.org>
4899 Integrated eqn2graph, contributed by Eric S. Raymond.
4901 * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
4903 * Makefile.in, NEWS: Updated.
4905 2002-06-04 Werner LEMBERG <wl@gnu.org>
4907 Changing the substring request to make it fit better with other
4908 string manipulation functions in other programming languages:
4909 Index 0 is now the first character in the string, and index -1
4910 indicates the last character. Since this request didn't work
4911 properly anyway in the last release, it doesn't harm too much to
4914 * src/roff/troff/input.cc (substring_macro): Use loops to get
4915 the real string length (ignoring COMPATIBLE_SAVE and
4916 COMPATIBLE_RESTORE) and offsets.
4917 Implement change described above.
4919 * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
4920 (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
4922 * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
4924 2002-06-03 Werner LEMBERG <wl@gnu.org>
4926 Make .chop work with .de1 and friends. COMPATIBLE_SAVE and
4927 COMPATIBLE_RESTORE are completely ignored.
4929 * src/roff/troff/input.cc (char_list::set, char_list::get): New
4931 (macro): `length' field renamed to `len'.
4932 Added new field `empty_macro' (1 if macro is empty), to be used
4933 instead of checking `len'.
4934 Updated all callers.
4935 (macro::empty): Updated.
4936 (macro::length, macro::set, macro::get): New functions.
4937 (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4939 (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
4940 COMPATIBLE_RESTORE pairs.
4941 (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
4942 * src/roff/troff/request.h: Updated.
4944 * doc/groff.texinfo: Document .chop's behaviour better.
4946 2002-06-02 Werner LEMBERG <wl@gnu.org>
4948 * doc/pic.ms: Fix documentation for the addition of positions.
4950 * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
4952 2002-06-29 Werner LEMBERG <wl@gnu.org>
4954 Implementation of string arguments of the form \*[foo arg1 arg2 ...]
4956 * src/roff/troff/input.cc (have_string_arg): New global variable.
4957 (read_mode): New enumeration.
4958 (read_escape_name): Use it. Update all calls.
4959 (read_long_escape_name): Use it. Update all calls.
4960 Set have_string_arg if appropriate.
4961 (get_char_for_escape_name): Add parameter for handling space
4963 (interpolate_string_with_args, decode_string_args): New functions.
4964 (get_copy, token::next): Call it if necessary.
4965 (interpolate_string): Fix error message.
4967 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
4970 2002-06-24 Bernd Warken <bwarken@mayn.de>
4972 * man/groff_tmac.man: Updated and extended.
4974 2002-06-24 Werner LEMBERG <wl@gnu.org>
4976 * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
4978 2002-06-23 Werner LEMBERG <wl@gnu.org>
4980 * doc/pic.ms: Improve documentation of composite block objects.
4982 2002-06-22 Werner LEMBERG <wl@gnu.org>
4984 * src/roff/troff/input.cc (init_registers): Add three registers
4985 `seconds', `minutes', and `hours' to hold the current time.
4987 * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
4990 2002-06-20 Werner LEMBERG <wl@gnu.org>
4992 Make \X accept both `\ ' and `\~', converting them to single space
4995 * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
4996 (token::unstretchable_space): New inline function.
4997 * src/roff/troff/input.cc (token::next, token::delimiter,
4998 token::description, token::add_to_node_list, token::process): Handle
4999 TOKEN_UNSTRETCHABLE_NODE.
5000 (encode_char): Handle tok.stretchable_space and
5001 tok.unstretchable_space.
5003 * NEWS, doc/groff.texinfo: Document it..
5005 2002-06-19 Werner LEMBERG <wl@gnu.org>
5007 * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
5009 * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
5010 keyword to enable/disable SGR output.
5011 (tty_printer::change_fill_color): New function.
5012 * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
5014 * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
5017 2002-06-18 Werner LEMBERG <wl@gnu.org>
5019 Add a `color' request and a `.color' register to control usage of
5022 * src/roff/troff/input.cc (disable_color_flag): Replaced with...
5023 (color_flag): This (which is the inverse).
5024 (activate_color): New function.
5025 (main, init_input_requests): Updated.
5026 * src/roff/troff/troff.h, src/roff/troff/node.cc
5027 (troff_output_file::fill_color, troff_output_file::glyph_color):
5030 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5031 Document the changes.
5033 2002-06-17 Colin Watson <cjwatson@debian.org>
5035 Circumvent bug in autoconf 2.53 regarding top_builddir.
5037 * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
5038 * Makefile.in, doc/Makefile.in:
5039 s/@top_builddir@/@groff_top_builddir@/.
5040 * configure: Regenerated (with autoconf 2.53).
5042 2002-06-17 Werner LEMBERG <wl@gnu.org>
5044 * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
5045 `paperwidth' and `paperlength' for the `papersize' keyword.
5047 2002-06-16 P. Alejandro Lopez-Valencia <dradul@007mundo.com>
5049 * src/devices/grops/grops.man: Add info about Type 42 fonts.
5051 2002-06-15 Gaius Mulley <gaius@glam.ac.uk>
5053 * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
5054 html_printer::do_linelength, html_printer::do_pageoffset,
5055 html_printer::do_indentation, html_printer::do_tempindent,
5056 html_printer::do_break, html_printer::begin_page): Clear indented
5058 * tmac/html.tmac: Disable hyphenation.
5060 2002-06-15 Werner LEMBERG <wl@gnu.org>
5062 Don't produce HTML files if utility programs are missing.
5064 * Makefile.in (make_html, make_install_html): New variables.
5065 (MDEFINES): Updated.
5067 * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
5069 * configure.ac: Use it.
5070 * configure: Regenerated.
5072 * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
5073 (HTMLEXAMPLESFILES): This new variable.
5074 (EXAMPLESIMAGEFILES): Renamed to...
5075 (HTMLEXAMPLEIMAGEFILES): This.
5076 (CLEANADD): Add HTMLEXAMPLEFILES.
5077 (all): Use `make_html'.
5079 (install_data): Use `make_install_html'.
5080 Move html stuff to...
5081 (install_html): This new target.
5082 (uninstall_sub): Updated.
5084 2002-06-14 Bernd Warken <bwarken@mayn.de>
5086 * src/roff/grog/Makefile.sub (grog): Renamed to...
5088 (grog): New rule to always install grog.sh as grog.
5090 2002-06-08 Bernd Warken <bwarken@mayn.de>
5092 * src/roff/grog/grog.pl: Fix typo.
5094 2002-06-07 Werner LEMBERG <wl@gnu.org>
5096 * doc/groff.texinfo: Add more info on .tr arguments.
5098 2002-06-05 Werner LEMBERG <wl@gnu.org>
5100 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5102 * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
5103 * configure: Regenerated.
5105 2002-06-05 Ralph Corderoy <ralph@inputplus.demon.co.uk>
5107 * src/roff/troff/symbol.cc (table_sizes): Add more values.
5109 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
5111 2002-06-04 Werner LEMBERG <wl@gnu.org>
5113 * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
5114 is not initialized at the time we need it in case `--prefix' hasn't
5115 been set. Check for `ac_default_prefix' also.
5116 Test for `papersize' keyword also and generalize allowed whitespace.
5117 * configure: Regenerated.
5119 * font/devps/Makefile.sub (DESC): Use `papersize' instead of
5122 * src/libs/libgroff/Makefile.sub (version, revision): Replaced
5124 (src_version, src_revision): New variables to avoid overwriting
5125 from parent make process.
5126 (version.cc): Updated.
5128 * src/preproc/html/pre-html.cc: Include paper.h and font.h.
5129 (linebuf, linebufsize): New global variables.
5130 (sys_fatal): Use `fatal' to abort properly.
5131 (get_line): New function.
5132 (get_resolution): Use it.
5133 Improve error messages.
5134 (get_papersize): Check `papersize' also.
5136 Improve error messages.
5138 2002-06-03 Werner LEMBERG <wl@gnu.org>
5140 * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
5141 should be removed only if builddir is not srcdir.
5142 (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
5143 (clean): Depend on `mostlyclean'.
5144 (distclean): Depend on `clean'.
5145 (realclean, extraclean): Depend on `distclean'.
5146 (.y.cc, .y.o): Simplified. The output files are no longer written
5147 to srcdir but to builddir.
5148 * Makefile.in (MDEFINES): Add `version' and `revision'.
5149 (uninstall_dirs): Fix order of directories.
5150 * doc/Makefile.sub (version, revision): Removed.
5151 (CLEANADD): Removed grnexmpl.g, groff, groff-*.
5152 Added `HTMLDOCFILES'.
5153 (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
5154 * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
5155 src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
5158 * doc/texinfo.tex (\authortt): New macro.
5159 (\shortcontt): Define.
5160 (\titlepage): Set \tt to \authortt while defining \authorfont.
5161 (\appendixbox): New macro.
5162 (\chapmacro, \appendixentry): Use \appendixbox to get even
5163 indentation for letters.
5164 (\summarycontents): Set \tt.
5165 (\internalpagesize): Add two arguments for real paper width and
5166 height as needed by pdfTeX.
5167 (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
5169 (\tempdima, \tempdimb): New temporary dimensions.
5170 (\pagesizesyyy): Updated.
5172 2002-06-02 Werner LEMBERG <wl@gnu.org>
5174 Adding a new keyword `papersize' to the DESC file format (similar
5175 but not completely identical to grolbp's extension). grops now has
5176 a -p command line option to override `papersize'. Finally, grolbp
5177 has been adapted to the new syntax.
5179 * src/libs/libgroff/paper.cc, src/include/paper.h: New files. It
5180 defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
5182 * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
5183 (CCSRCS): Add `paper.cc'.
5185 * src/include/font.h (font): Add `papersize' element.
5186 * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
5187 (font::scan_papersize): New function.
5188 (font::load_desc): Use it for handling `papersize' keyword.
5189 * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
5191 * src/devices/grops/ps.cc: Include paper.h.
5192 (user_paper_length): New global variable.
5193 (ps_printer): Use paper length as initializer.
5194 (make_printer): Updated.
5195 (main): Handle new `-p' option.
5196 * src/devices/grops/grops.man: Updated.
5198 * src/devices/grolbp/lbp.cc: Include paper.h.
5199 s/papersizes/lbp_papersizes/.
5200 (set_papersize): Use new `papersizes' array.
5201 (handle_unknown_desc_command): Don't handle `papersize'.
5202 (main): Use `font::scan_papersize' for handling `-p' option.
5203 * src/devices/grolbp/grolbp.man: Updated.
5205 * man/groff_font.man: Document `papersize'.
5208 2002-05-30 Werner LEMBERG <wl@gnu.org>
5210 * src/devices/grops/TODO: Updated.
5211 * src/devices/grops/grops.man: More info on paper formats.
5212 * man/groff_font.man: Document `paperheight' and `paperwidth'.
5214 2002-05-29 Werner LEMBERG <wl@gnu.org>
5216 * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
5217 to list only if srcdir != currdir.
5218 (distfiles): New target.
5220 * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
5221 (NOMAKEDIRS): New variable.
5224 2002-05-26 Werner LEMBERG <wl@gnu.org>
5226 Add .output request, similar to \! at top-level.
5228 * src/roff/troff/input.cc (transparent): Remove unused declaration.
5229 (output_request): New function.
5230 (init_input_requests): Add it.
5232 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5235 * Makefile.in (MDEFINES): Add INSTALL_INFO.
5236 (prepare_examples): Fix typo.
5237 * doc/groff.texinfo (@direntry): Fix it.
5239 2002-05-25 Werner LEMBERG <wl@gnu.org>
5241 Including the doc subdir into groff's Makefile system.
5243 * aclocal.m4 (GROFF_INSTALL_INFO): New function.
5244 * configure.ac: Use it.
5245 Generate `doc/Makefile'.
5246 * configure: Regenerated.
5248 * Makefile.in (infodir, INSTALL_INFO): New variables.
5249 (MDEFINES, uninstall_dirs): Updated.
5250 (OTHERDIRS): Add `doc'.
5251 * Makefile.comm (CLEANDIRADD): New variable.
5252 (mostlyclean): Use it.
5254 * doc/Makefile.sub, doc/Makefile.in: New files.
5255 * doc/Makefile: Removed.
5257 * NEWS, INSTALL: Updated.
5259 2002-05-24 Werner LEMBERG <wl@gnu.org>
5261 * doc/homepage.ms: Renamed to ...
5262 * doc/webpage.ms: This.
5265 2002-05-23 Werner LEMBERG <wl@gnu.org>
5267 Integrating the `mom' macro package, contributed by Peter Schaffter
5270 * contrib/mom/*: New subdirectory tree.
5271 * Makefile.in (docdir, exampledir, htmldocdir): New variables to
5272 be used for documentation files.
5273 (MDEFINES, uninstall_dirs): Use them.
5274 (OTHERDIRS): Add contrib/mom.
5275 * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
5277 * MANIFEST, NEWS: Updated.
5279 2002-05-22 Gaius Mulley <gaius@glam.ac.uk>
5281 Change syntax of \O: \O[0] suppresses output, \O[1] enables output
5282 if at outer level; at start-up we are at outer level.
5284 * src/roff/troff/input.cc (do_suppress): Implement it.
5287 Add option -p to show progress information.
5288 pre-grohtml will now render only one page at a time, reducing the
5289 size of needed disk resources enormously.
5291 * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
5292 (imagePageName): New global variable.
5293 (psPageName, show_progress, currentPageNo): New global variables.
5294 (html_system): Close saved stderr and stdout handles.
5295 (write_end_image): Accept a parameter to control \O escape.
5296 (write_start_image): Adapted to new \O meaning.
5297 (char_buffer::write_upto_newline): Updated.
5298 (createAllPages): Replaced with...
5299 (createPage): This new function to create a single page for images.
5300 It uses `psselect' from the psutils package.
5301 (removeAllPages): Removed.
5302 (createImage): Updated.
5303 Handle progress display.
5304 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
5305 (scanArguments): Add option -p.
5306 (makeTempFiles): Updated to create temp files for psPageName and
5308 (removeTempFiles): Removed.
5311 * src/devices/grohtml/post-html.cc (header_desc::write_headings,
5312 html_printer::write_header): Append `\0' to `buffer'.
5313 (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
5315 * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
5316 Handle `text_emitted'.
5317 (html_text::table_is_void): Slightly rewritten.
5318 (stop): New external symbol.
5319 (html_text::do_push) [DEBUGGING]: Use it and simplify.
5320 (html_text::shutdown): Call `dump_stack'.
5321 (html_text::do_space): Rewritten.
5322 * src/devices/grohtml/grohtml.man: Document -p and the need of
5325 * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
5327 Call \O[0] if `ps4html' is active.
5328 * tmac/s.tmac (@EQ, @EN): Handle html better.
5330 * tmac/html.tmac: Don't use black for background colour.
5332 * src/roff/troff/node.cc: Include `div.h'.
5333 (troff_output_file::really_print_line): Don't use `is_on'.
5334 (troff_output_file::word_marker, troff_output_file::flush_tbuf
5335 troff_output_file::check_charinfo,
5336 troff_output_file::put_char_width, troff_output_file::put_char,
5337 troff_output_file::determine_line_limits, troff_output_file::draw,
5338 real_output_file::begin_page, glyph_color_node::tprintf,
5339 fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
5341 (troff_output_file::really_on): Call `do_motion'.
5342 (suppress_node::tprint): Use `get_page_number' instead of `%'
5344 Call `reset_output_registers' conditionally on `is_on'.
5346 * doc/groff.texinfo: Document new syntax of \O.
5347 * NEWS, man/groff_diff.man: Updated.
5349 2002-05-22 Werner LEMBERG <wl@gnu.org>
5351 * MORE.STUFF: Add info about David Frey's deroff implementation.
5354 2002-05-16 Werner LEMBERG <wl@gnu.org>
5356 Pic's `with' attribute now accepts positions.
5358 * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
5359 ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
5361 (object_spec): Add rule for `WITH' and `position'.
5362 (relative_path): Give `corner' the precedence of `CHOP'.
5363 * src/preproc/pic/object.h (path): New members `pos' and
5365 * src/preproc/pic/object.cc: Updated initializers of `path'.
5366 (path::follow): Handle `is_position'.
5368 * doc/pic.ms: Completely updated grammar description.
5369 Many typographical improvements.
5371 2002-05-15 Werner LEMBERG <wl@gnu.org>
5373 * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
5374 code of x in range 0-127) also.
5375 * doc/groff.texinfo, man/groff_diff.man: Updated.
5377 Added keywords `north', `south', `east', and `west' for corners
5380 * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
5382 (yylex): Handle them.
5383 * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
5384 (corner): Handle them.
5386 2002-05-14 Werner LEMBERG <wl@gnu.org>
5388 * src/devices/grops/grops.man: Clarify handling of `download' file.
5390 2002-05-11 Werner LEMBERG <wl@gnu.org>
5392 Adding `warnscale' and `spreadwarn' requests, based on a patch from
5393 Jeffrey Friedl <jfriedl@yahoo.com>.
5395 * src/roff/troff/input.cc (spread_limit, warn_scale,
5396 warn_scaling_indicator): New global variables.
5397 (warnscale_request, spreadwarn_requests): New functions.
5398 (main): Initialize `warn_scale' and `warn_scaling_indicator'.
5399 (init_input_requests): Updated.
5400 (error_type): Add `OUTPUT_WARNING'.
5401 (do_error): Handle it.
5402 (output_warning): New warning function which shows output location.
5403 * src/roff/troff/env.h (spread_limit): New external variable.
5404 * src/roff/troff/env.cc (environment::choose_breakpoint): Use
5406 (distribute_space): Emit warning if added space is larger than
5408 (environment::possibly_break_line): Emit warning if a line can't
5409 be adjusted on both sides.
5411 * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
5413 2002-05-08 Werner LEMBERG <wl@gnu.org>
5415 * src/roff/troff/node.cc (special_node::special_node): Use
5416 env_definite_font(curenv) instead of curenv->get_font(). Otherwise
5417 \X''\% crashes, for example.
5419 * doc/groff.texinfo: Document \! and \? used at top-level.
5421 2002-05-06 Werner LEMBERG <wl@gnu.org>
5423 * src/preproc/pic/pic.man: Fix some keyword syntax.
5424 Other minor typographical fixes.
5426 * src/roff/groff/groff.man: Fix typos.
5428 2002-05-04 Werner LEMBERG <wl@gnu.org>
5430 * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
5431 (ShortOpt[]): This to avoid problems with refer.
5433 * doc/pic.ms: Fix typo.
5434 Fix pic grammar description.
5436 * tmac/an-old.tmac (ne): Use de1, not de.
5438 2002-05-03 Werner LEMBERG <wl@gnu.org>
5440 * doc/groff.texinfo: Finished separation of glyphs and characters.
5441 Don't use the string `Appendix' for appendix headers (both in
5442 the text and the table of contents).
5443 * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
5446 Use registers LL and LT (similar to -ms) for controlling the
5447 length of title and line, respectively, in the -man and -mdoc
5450 * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
5451 (doc-setup-page-layout): Use \n[LL] and \n[LT].
5452 * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
5454 (an-header, an-p-footer): Use \n[LT].
5455 * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
5456 doc/groff.texinfo: Document it.
5458 2002-05-02 Werner LEMBERG <wl@gnu.org>
5460 * doc/fdl.texi: New file.
5461 * doc/groff.texinfo: Include it.
5462 Define and use @copying.
5463 Starting with separating glyph, symbol, and character.
5465 2002-04-27 Werner LEMBERG <wl@gnu.org>
5467 * Makefile.in (EXEEXT): Set it.
5468 * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
5471 * src/include/nonposix.h: Define GS_NAME.
5472 * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
5474 Some preliminary changes for EMX support under OS/2.
5476 * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
5477 __EMX__ similar to __MSDOS__.
5478 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
5480 2002-04-25 Werner LEMBERG <wl@gnu.org>
5482 * doc/groff.texinfo: Integrated groff_out.man.
5485 2002-04-23 Werner LEMBERG <wl@gnu.org>
5487 * man/groff_out.man: Minor fixes.
5489 2002-04-23 Werner LEMBERG <wl@gnu.org>
5491 * doc/groff.texinfo: Moving @cindex entries after @Def* to get
5492 correct page references.
5493 Fixed many index entries.
5495 2002-04-23 Bernd Warken <bwarken@mayn.de>
5497 * man/roff.man: Enlarged.
5499 2002-04-22 Werner LEMBERG <wl@gnu.org>
5501 * doc/groff.texinfo: More examples, other fixes.
5503 2002-04-20 Werner LEMBERG <wl@gnu.org>
5505 * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
5506 will now form a chain, e.g.
5515 This is for compatibility with plan 9's troff.
5517 * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
5521 * doc/groff.texinfo: Add documentation of remaining requests and
5524 2002-04-19 Werner LEMBERG <wl@gnu.org>
5526 * doc/groff.texinfo: Add documentation of remaining escapes.
5528 * font/devdvi/generate/tc.map: Remove entry for `sr'.
5529 * font/devdvi/*TC: Regenerated.
5531 2002-04-18 Werner LEMBERG <wl@gnu.org>
5533 * src/roff/troff/input.cc (token::next): Make \H behave consistently
5534 if not in compatibility mode, i.e., increment relative to the
5536 * doc/groff.texinfo: Updated accordingly.
5538 2002-04-17 Werner LEMBERG <wl@gnu.org>
5540 * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
5542 2002-04-16 Bernd Warken <bwarken@mayn.de>
5544 * src/roff/groff/groff.man: Improve documentation of -P option.
5547 2002-04-15 Werner LEMBERG <wl@gnu.org>
5549 Add new escape \F to switch font family.
5551 * src/roff/troff/input.cc (token::next): Handle \F.
5552 * src/roff/troff/env.cc (environment::set_family): Handle
5554 * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5557 2002-04-14 Werner LEMBERG <wl@gnu.org>
5559 * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
5562 2002-04-13 Werner LEMBERG <wl@gnu.org>
5564 Implement \f[] as an alternative to \fP. Change \mP and \MP to
5565 \m[] and \M[], respectively.
5567 * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
5568 (symbol::symbol): Handle NULL string and empty string differently.
5569 * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
5570 * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
5571 Add optional parameter.
5572 Updated calling functions.
5573 (get_copy, do_glyph_color, do_fill_color, token::next): Use
5575 * src/roff/troff/env.cc (environment::set_font): Ditto.
5577 * src/preproc/pic/troff.cc (troff_output::set_fill,
5578 troff_output::reset_color: Updated.
5580 * tmac/www.tmac: Updated.
5582 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
5583 doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
5586 * tmac/Xps.tmac: Remove some redundant code.
5588 * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
5589 tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
5590 man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
5593 2002-04-13 Bernd Warken <bwarken@mayn.de>
5595 * src/include/printer.h, src/libs/libdriver/printer.cc
5596 (printer::change_fill_color): New member function.
5597 * src/libs/libdriver/input.cc (parse_D_command): Use it.
5599 2002-04-12 Werner LEMBERG <wl@gnu.org>
5601 * doc/groff.texinfo: Completed pass on gtroff reference.
5603 2002-04-11 Werner LEMBERG <wl@gnu.org>
5605 * doc/groff.texinfo: More fixes.
5607 2002-04-11 Bernd Warken <bwarken@mayn.de>
5609 * src/include/color.h: Decorate with `const'.
5612 * src/libs/libgroff.color.cc: Decorate with `const'.
5614 (color::color): Initialize members.
5615 * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
5616 command according to the documentation.
5618 * man/groff_out.man: Updated.
5621 2002-04-11 Gaius Mulley <gaius@glam.ac.uk>
5623 * src/preproc/html/pre-html.cc (write_start_image): Remove
5625 * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
5627 * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
5628 \C'hy' caused an assertion failure.
5630 * src/roff/troff/env.cc (environment::environment): Initialize
5632 (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
5634 2002-04-10 Werner LEMBERG <wl@gnu.org>
5636 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
5637 Document pvs request and .pvs register.
5639 2002-04-09 Werner LEMBERG <wl@gnu.org>
5641 * doc/groff.texinfo: Improve and fix documentation of diversions
5644 2002-04-08 Werner LEMBERG <wl@gnu.org>
5646 * doc/groff.texinfo: Fix documentation of drawing functions.
5649 2002-04-07 Werner LEMBERG <wl@gnu.org>
5651 * doc/groff.texinfo: Better documentation of double quotes as
5655 2002-04-06 Werner LEMBERG <wl@gnu.org>
5657 * man/groff_font.man: Document names of special characters better.
5658 * doc/groff.texinfo: Minor improvements.
5660 * tmac/lbp.tmac: Load latin1.tmac.
5661 * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
5663 * font/devX*/*: Regenerated (all chars > 0x80 removed).
5665 2002-04-05 Werner LEMBERG <wl@gnu.org>
5667 * tmac/tty.tmac: Don't use shc request.
5668 * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
5671 * man/groff_diff.man: Minor fixes.
5673 * font/devlbp/*: Remove all `charXXX' entities.
5675 * src/libs/libgroff/font.cc (font::~font): Deallocate
5676 `special_device_coding'.
5677 (font::load): Use `new' for allocating `special_device_coding'.
5678 * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
5679 Removed unused member.
5681 2002-04-05 Werner LEMBERG <wl@gnu.org>
5683 * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
5684 (resource_manager::do_begin_binary,
5685 resource_manager::do_begin_data): Use it.
5687 * doc/texinfo.tex: Updated to version 4.2.
5689 * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
5690 (token::zero_width_break): New inline function.
5691 * src/roff/troff/input.cc (token::next): Use it.
5692 (token::description): Updated.
5693 (encode_char): Ignore `\%', `\&', `\)', and `\:'.
5694 (token::add_to_node_list, token::process): Use it.
5695 * NEWS, doc/groff.texinfo: Updated.
5697 * src/preproc/eqn/over.cc (over_box::output): Fix typo.
5698 * tmac/tty.tmac: Add missing backslash.
5700 2002-04-04 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
5702 * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
5703 `.ps' register instead of `.s' to handle fractional point sizes.
5704 * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
5705 limit_box::output): Ditto.
5706 * src/preproc/eqn/other.cc (size_box::compute_metrics,
5707 size_box::output): Ditto.
5708 * src/preproc/eqn/over.cc (over_box::compute_metrics,
5709 over_box::output): Ditto.
5710 * src/preproc/eqn/script.cc (script_box::compute_metrics,
5711 script_box::output): Ditto.
5712 * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
5713 sqrt_box::output): Ditto.
5715 2002-04-03 Michael Selway <mas@ssl.co.uk>
5717 * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
5720 2002-04-03 Werner LEMBERG <wl@gnu.org>
5722 * doc/homepage.ms: Reduce title size.
5723 * doc/groff.texinfo: Fix documentation of .t register.
5724 Fix handling of colon.
5727 * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
5728 only if page length is positive to avoid a loop.
5730 * tmac/an-old.tmac (ne): Increase page length to avoid problems with
5733 2002-04-02 P. Alejandro Lopez-Valencia <dradul@yahoo.com>
5735 * src/include/nonposix.h, src/roff/groff/pipeline.c:
5736 s/__CYGWIN32__/__CYGWIN__/.
5738 2002-03-28 Gaius Mulley <gaius@glam.ac.uk>
5740 * doc/gnu.xpm: New image contributed by Emily Mulley.
5741 * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
5742 (homepage.html): Be dependent on gnu.eps.
5743 * doc/homepage.ms: Updated to new image.
5745 * src/devices/grohtml/post-html.cc (html_printer): New member
5747 (html_printer::flush_sbuf, html_printer::set_char): Set it.
5748 (html_printer::sbuf_continuation): Use it.
5750 2002-03-28 Werner LEMBERG <wl@gnu.org>
5752 * src/libs/libgroff/getopt.c: Updated to latest version.
5754 * tmac/README: More on hyphen.tex license.
5756 2002-03-26 Larry Kollar <kollar@alltel.net>
5758 * doc/groff.texinfo: Add documentation of most missing requests.
5760 2002-03-25 Werner LEMBERG <wl@gnu.org>
5762 Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
5763 of `+-', `mu', and `di', respectively.
5765 * font/devascii/R.proto, font/devutf8/R.proto,
5766 font/devlatin1/R.proto, font/devhtml/R.proto,
5767 font/devcp1047/R.proto, font/devlpb/*: Add them.
5768 * font/devps/generate/textmap: Ditto.
5769 * font/devps/*: Regenerated.
5770 * font/devlj4/generate/text.map: Add them.
5771 * font/devlj4/*: Regenerated.
5772 * font/devdvi/generate/tc.map: Use them.
5773 * font/devdvi/generate/texsy.map: Add them.
5774 * font/devdvi/*: Regenerated.
5775 * font/devX*/*: Regenerated.
5777 * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
5778 tmac/tty-char.tmac: Updated.
5780 * NEWS, man/groff_char.man: Updated.
5782 2002-03-24 Werner LEMBERG <wl@gnu.org>
5784 * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
5785 tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
5786 * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
5787 we use `.fchar' in dvi.tmac.
5788 * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
5789 * tmac/Xps.tmac: Simplify some char definitions.
5790 Add definition for \[f/].
5791 * man/groff_char.man: Updated for new X.tmac.
5793 * tmac/README: New file.
5795 2002-03-23 Phil Lobbes <phil@perkpartners.com>
5797 * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
5798 internal .y.o rule took precendence over the .y.cc rule, compiling
5799 the yacc files with gcc instead of g++.
5801 2002-03-23 Werner LEMBERG <wl@gnu.org>
5803 * tmac/dvi.tmac: Add replacement font for `CB'.
5805 * tmac/doc.tmac: s/request/macro/ in messages.
5806 (doc-generic-macro): Improve error message.
5807 * tmac/groff_mdoc.man: Minor improvements.
5809 2002-03-22 Werner LEMBERG <wl@gnu.org>
5811 * doc/groff.texinfo: Document possible conflict between `tr' and
5814 2002-03-21 Werner LEMBERG <wl@gnu.org>
5816 Improve handling of hyphenation patterns. It is now possible to
5817 use most of TeX's pattern files unmodified. To make the process
5818 more flexible, a new request `hpfcode' has been added which
5819 provides a character code mapping for the `hpf' request. See
5820 comment before hpf_getc() for more details.
5822 * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
5824 (read_patterns_file): Additional parameter for exception dictionary.
5825 Extended to recognize \pattern, \hyphenation, and \endinput.
5826 (do_hyphenation_patterns_file): Updated.
5827 * src/roff/troff/env.h (hpf_code_table): New extern.
5829 * src/roff/troff/input.cc (hpf_code_table): New array.
5830 (init_hpf_code_table, hyphenation_patterns_file_code): New
5832 (hyphenation_code): Handle translation from `trin' correctly.
5833 (main, init_input_requests): Updated.
5834 (charinfo::set_translation): Handle hyphenation code also.
5836 * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
5839 * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
5840 char' is used for offsets in hyphenation exceptions.
5842 * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
5844 * NEWS, man/groff_diff.man, man/groff.man: Document it.
5846 2002-03-20 Larry Kollar <kollar@alltel.net>
5848 * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
5851 2002-03-18 Werner LEMBERG <wl@gnu.org>
5853 * tmac/html.tmac: Fix serious typo.
5855 2002-03-17 Larry Kollar <kollar@alltel.net>
5857 * doc/groff.texinfo: Add documentation for `writec' request.
5859 2002-03-17 Werner LEMBERG <wl@gnu.org>
5861 Added request `hpfa' to append hyphenation patterns.
5863 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
5865 (hyphenation_patterns_file): Renamed to...
5866 (do_hyphenation_patterns_file): This.
5867 (hyphenation_patterns_file, hyphenation_patterns_file_append): New
5869 (init_hyphen_requests): Updated.
5870 * NEWS, man/groff.man, man/groff_diff.man: Document it.
5872 2002-03-16 Werner LEMBERG <wl@gnu.org>
5874 Added request `writec' in analogy to `tmc'.
5876 * src/roff/troff/input.cc (write_request): Renamed to...
5877 (do_write_request): This.
5878 Added one parameter.
5879 (write_request, write_request_continue): New functions.
5880 (init_input_requests): Updated.
5881 * NEWS, man/groff.man, man/groff_diff.man: Document it.
5883 * font/devdvi/DESC.in (sizes): Allow all sizes in the range
5885 * NEWS: Document it.
5887 2002-03-15 Werner LEMBERG <wl@gnu.org>
5889 * man/groff.man: Add writem request.
5891 Add request `trin' (translate input) to make `.asciify' work
5892 correctly. This is necessary since `charXXX' entity names are no
5893 longer hardcoded in font definition files.
5895 * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
5896 `translate_input' members.
5897 (charinfo::set_asciify_code, charinfo::get_asciify_code,
5898 charinfo::set_translation_input): New methods.
5899 (charinfo::set_translation): Add third argument.
5900 * src/roff/troff/input.cc (charinfo:set_translation): Set
5902 (do_translate): Add second argument.
5903 (translate_input): New function.
5904 (init_input_requests): Updated.
5905 * src/roff/troff/node.cc (glyph_node::asciify,
5906 composite_node::asciify): Use `get_asciify_code'.
5908 * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
5910 * NEWS, man/groff.man, man/groff_diff.man: Updated.
5912 2002-03-14 Larry Kollar <kollar@alltel.net>
5914 * doc/groff.texinfo: Improve documentation of .RS and .RE.
5916 2002-03-14 Werner LEMBERG <wl@gnu.org>
5918 Add a new request `sizes' similar to the `sizes' command in DESC
5921 * src/roff/troff/env.cc (override_sizes): New function.
5922 (init_env_requests): Use it.
5923 * src/roff/troff/token.h: Export `read_string'.
5924 * NEWS, man/groff_diff.man, man/groff.man: Document it.
5926 2002-03-12 Werner LEMBERG <wl@gnu.org>
5928 * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
5930 2002-03-10 Werner LEMBERG <wl@gnu.org>
5932 * tmac/pspic.tmac: Add support for -Tdvi.
5933 * tmac/dvi.tmac: Include pspic.tmac.
5934 * src/devices/grodvi/grodvi.man: Document it.
5937 * font/devlj4/generate/Makefile: Fix URL of metric files.
5939 2002-03-09 Werner LEMBERG <wl@gnu.org>
5941 * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
5943 2002-03-09 Larry Kollar <kollar@alltel.net>
5945 * tmac/groff_ms.man: Add documentation for RS and RE macros.
5947 2002-03-08 Werner LEMBERG <wl@gnu.org>
5949 * doc/groff.texinfo: Fixes for texinfo 4.1.
5951 2002-03-07 Werner LEMBERG <wl@gnu.org>
5953 * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
5955 Handle CYGWIN properly.
5957 2002-03-07 Paco Andrés Verdú <pandres@dragonet.es>
5959 * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
5960 * tmac/lbp.tmac: Add some font translations.
5962 2002-03-02 Werner LEMBERG <wl@gnu.org>
5964 * font/devcp1047/R.proto, font/devlatin1/R.proto,
5965 font/devhtml/R.proto: Remove `charXXX' entries.
5966 * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
5969 * font/devlj4/generate/text.map: Remove `charXXX' entries.
5970 * font/devlj4/*: Regenerated all font definition files.
5971 * tmac/lj4.tmac: Load latin1.tmac.
5973 * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
5974 from 2000-06-17: LJ4 metric files are *not* text files.
5976 * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
5977 register to test for EBCDIC.
5979 2002-03-01 Werner LEMBERG <wl@gnu.org>
5981 * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
5982 files (as grops already does).
5983 * src/utils/afmtodit/afmtodit.man: Document comment lines in map
5985 * src/devices/grops/grops.man: Document comment lines in encoding
5988 * tmac/cp1047.tmac: New file.
5989 * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
5990 * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
5991 * tmac/Makefile.sub (NORMALFILES): Updated.
5993 * tmac/ec.tmac: Don't load latin1.tmac again.
5995 * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
5996 font/devps/generate/dingbats.map,
5997 font/devps/generate/dingbats.rmap, font/devps/text.enc,
5998 font/devps/generate/Makefile (symbolmap): Add header comment.
5999 * font/devps/generate/textmap: Ditto.
6000 Remove `charXXX' entries.
6001 * font/devps/symbolmap: Regenerated.
6002 * font/devps/*: Regenerated all font definition files.
6004 2002-02-28 Werner LEMBERG <wl@gnu.org>
6006 Add color support to grodvi (for drawing colors are currently
6007 translated to gray values).
6009 * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
6010 (dvi_printer): Add `cur_color' member.
6011 (dvi_printer::set_color): New function.
6012 (draw_dvi_printer): Remove `fill'.
6013 (draw_dvi_printer::fill_next): Pass environment as parameter.
6014 Update code for new color support translated to gray.
6015 (dvi_printer::set_char): Updated.
6016 (dvi_printer::begin_page, dvi_printer::end_page): Handle color
6017 changes crossing the page border.
6018 (dvi_printer::draw): Updated.
6019 Remove cases `f' and `F'.
6020 * tmac/dvi.tmac: Add color definitions.
6021 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6023 * tmac/an-old.tmac (R): Make this a macro to emit a warning if
6026 * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
6027 versions of autoconf.
6028 * configure: Updated.
6030 * doc/homepage.ms: Use `.blm'.
6031 * tmac/www.tmac (www-depth): New auxiliary variable.
6032 (www-pop-level): Don't issue HTML tag.
6033 (ULS, ULE, LI): Use absolute indentation.
6035 * src/devices/grops/ps.cc (ps_printer::begin_page,
6036 ps_printer::end_page): Switch forth and back to default color while
6037 starting a new page.
6039 2002-02-27 Werner LEMBERG <wl@gnu.org>
6041 Add EC and TC fonts to devdvi.
6043 * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
6044 * font/devdvi/generate/cork.map: Renamed to...
6045 * font/devdvi/generate/ec.map: This.
6046 Remove entry for `aq'.
6047 * font/devdvi/generate/tc.map: New file.
6048 * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
6051 * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
6052 * font/devdvi/Makefile.sub (DEVFILES): Updated.
6053 * tmac/ec.tmac: New file.
6054 * tmac/Makefile.sub (NORMALFILES): Updated.
6055 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6056 * man/groff_char.man: Check `ECFONTS' register.
6058 * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
6060 2002-02-26 Werner LEMBERG <wl@gnu.org>
6062 * font/devdvi/generate/*.map: Remove all `charXXX' entries.
6063 * font/devdvi/generate/cork.map: Add 'y and 'Y.
6064 * font/devdvi/*: Updated.
6065 * tmac/dvi.tmac: Formatting.
6067 Add font `HBI' for the dvi output.
6068 Add support for font families `T' and `H'.
6070 * font/devdvi/HBI: New file.
6071 * font/devdvi/B: Renamed to ...
6072 * font/devdvi/TB: This.
6073 * font/devdvi/BI: Renamed to ...
6074 * font/devdvi/TBI: This.
6075 * font/devdvi/I: Renamed to ...
6076 * font/devdvi/TI: This.
6077 * font/devdvi/R: Renamed to ...
6078 * font/devdvi/TR: This.
6079 * font/devdvi/H: Renamed to ...
6080 * font/devdvi/HR: This.
6081 * font/devdvi/Makefile.sub (DEVFILES): Updated.
6082 * font/devdvi/generate/Makefile (HBI): New rule.
6084 (R, I, B, BI, H): Renamed to ...
6085 (TR, TI, TB, TBI, HR): This, respectively.
6087 * NEWS, src/devices/grodvi/grodvi.man: Updated.
6088 * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
6089 Add `styles' and `family' keywords.
6090 * tmac/dvi.tmac: Alias `H' to `HR'.
6091 Add some fspecial requests for italic fonts.
6092 Add TR and TI as special.
6093 Add support for `_' with font CWI.
6095 * src/roff/troff/number.cc (parse_expr): Add missing `break' for
6096 operator `:'. Until now, the expression `0:1' would return 2
6099 2002-02-25 Werner LEMBERG <wl@gnu.org>
6101 * man/groff_char.man: Added some missing PS glyph names (from the
6103 * font/devps/generate/textmap, font/devps/symbolmap: Add
6106 * doc/groff.texinfo: Minor additions and fixes.
6107 * man/groff_diff.man: Remove documentation of fp request. This
6108 is already covered in the original troff manual.
6109 Updated to be consistent with other doc files.
6112 2002-02-24 Werner LEMBERG <wl@gnu.org>
6114 * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
6116 Define new variable OTHERDEVDIRS (containing `font/devlj4
6117 font/devlbp' if not EBCDIC).
6118 * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
6119 (OTHERDEVDIRS): New variable.
6120 (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
6121 * configure: Regenerated.
6123 * NEWS, src/devices/grotty/grotty.man: Updated.
6125 2002-02-23 Werner LEMBERG <wl@gnu.org>
6127 * src/roff/troff/input.cc (do_overstrike, do_bracket,
6128 get_line_arg): Honour input level.
6130 Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
6132 * font/*/*: Implement it in all font files.
6133 * font/devps/generate/textmap, font/devps/generate/symbolchars,
6134 * font/devps/symbolmap: Updated.
6135 * font/devlj4/generate/text.map: Updated.
6136 * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
6137 * font/devdvi/generate/texmi.map: Updated.
6139 * font/devutf8/R.proto: Remove all `charXXX' entries.
6140 * font/devutf8/NOTES: Updated.
6142 * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
6145 * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
6147 * NEWS, man/groff_char.man: Updated.
6149 2002-02-21 Phil Lobbes <phil@perkpartners.com>
6151 * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
6153 2002-02-20 Ralph Corderoy <ralph@inputplus.demon.co.uk>
6155 * src/roff/grog/grog.pl: Fix computation of $refer.
6157 2002-02-19 Werner LEMBERG <wl@gnu.org>
6159 * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
6160 `snprintf' and `vsnprintf'.
6162 * src/include/htmlindicate.h: Renamed to...
6163 * src/include/htmlhint.h: This.
6164 * src/include/Makefile.sub: Updated.
6165 * src/preproc/eqn/main.cc: Updated.
6167 2002-02-18 Werner LEMBERG <wl@gnu.org>
6169 * man/roff.man, man/groff_out.man, man/groff.man,
6170 man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
6171 src/roff/troff/troff.man: Updated to latest changes in www.tmac.
6173 * win32-diffs: Updated.
6175 2002-02-17 Werner LEMBERG <wl@gnu.org>
6177 * doc/Makefile (clean): Add *.eps.
6178 (MEMACROS): Removed.
6179 (TFLAG): New variable.
6182 (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
6184 (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
6186 * tmac/www.tmac: Use dummy diversion while resetting and disabling
6188 * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
6190 * src/roff/troff/troff.man: Fix order of parameter description.
6194 2002-02-16 Gaius Mulley <gaius@glam.ac.uk>
6196 Simplify image handling for grohtml.
6199 * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
6201 (html_text::dump_stack): Don't emit newline while debugging.
6202 (html_text::do_push) [DEBUGGING]: Print more info.
6203 (html_text::check_emit_text): Fix handling of <p>.
6204 * src/devices/grohtml/html.h: Updated.
6205 * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
6206 replacing `fputc', `fputs', `putc'. If DEBUGGING is defined, they
6207 send its data to stderr also.
6209 (simple_output::space_or_newline) [DEBUGGING]: Removed.
6210 * src/devices/grohtml/post-html.cc (html_printer::do_links,
6211 html_printer::html_printer): Remove `DEBUGGING' conditionals.
6213 * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
6215 * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
6216 is_inline_image): Removed.
6217 (html_begin_suppress, html_end_suppress): Don't take a parameter.
6218 (graphic_start, graphic_end): Removed.
6219 * src/include/htmlindicate.h: Updated.
6220 * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
6221 (macroset_template): New global variable.
6222 (makeFileName): Use `macroset_template'.
6223 (write_end_image): Don't take a parameter.
6225 (write_start_image: Don't emit newline.
6226 (char_buffer::write_upto_newline): Updated.
6227 (char_buffer::skip_to_newline): Renamed to ...
6228 (char_buffer::skip_until_newline): This.
6230 (char_buffer::write_file_troff, char_buffer::write_file_html):
6232 (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
6233 (removeAllPages): Remove `DEBUGGING' conditionals.
6234 (addRegDef, dump_args): New functions.
6235 (char_buffer::do_html, char_buffer::do_image): Handle
6236 `www-image-template' command line variable.
6237 Add more debugging code.
6238 (addps4html): Removed.
6239 (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
6241 * src/preproc/eqn/main.cc: Include `ctype.h'.
6242 (suppress_html): Removed.
6244 (inline_equation): Use `html_begin_suppress' and
6245 `html_end_suppress'.
6246 * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
6247 (troff_output::start_picture, troff_output::finish_picture):
6249 * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
6250 (process_input_file): Updated.
6252 * src/roff/troff/div.cc (page_number): Set page number only if the
6253 `ps4html' register isn't defined.
6254 * src/roff/troff/input.cc (image_no): New external variable.
6255 (do_suppress): Use it.
6256 * src/roff/troff/node.h (suppress_node::image_id): New member.
6257 * src/roff/troff/node.cc (image_no): Remove `static' keyword.
6258 (suppress_node::suppress_node): Initialize `image_id' member.
6259 (suppress_node::same): Handle `image_id' also.
6260 (suppress_node::copy): Updated.
6261 (last_image_id): New global variable.
6262 (suppress_node::tprint): Use it.
6264 * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
6266 * tmac/pspic.mac (PSPIC): Fix html support.
6267 * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
6268 * tmac/www.tmac (www-image-template): Set up.
6269 (HTMLINDEX): Renamed to...
6271 (BODYCOLOR): Renamed to...
6273 (BACKGROUND): Renamed to...
6275 (URL): Change order of parameters for consistency.
6276 (MAILTO): Renamed to...
6278 (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
6279 (IMG, PIMG, MPIMG): This.
6280 (HTML-H-BEGIN, HTML-H-END): Renamed to...
6282 (LINKS): Renamed to...
6284 (LINE): Renamed to...
6286 (NO-AUTO-RULE): Renamed to...
6288 (HTML-TL): Renamed to...
6290 (UL-BEGIN, UL-END): Renamed to...
6292 (DROPCAP): Renamed to...
6294 (TS, TE, EQ, EN): Provide default definitions.
6295 (www-make-unique-name): Updated.
6296 (HTML-IMAGE-INLINE): Fix typo.
6297 * tmac/groff_www.man: Updated.
6299 * doc/Makefile (homepage.html): Add option -r to grohtml.
6300 Use shortened image name.
6301 * doc/groff.texinfo: Updated info on grohtml strings and macros.
6302 * doc/homepage.ms: Updated and extended.
6304 2002-02-14 Werner LEMBERG <wl@gnu.org>
6306 Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
6308 * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
6309 SGR_BACK_DEFAULT_COLOR): Replaced with ...
6310 (tty_printer::put_color): Use it.
6311 (ttr_printer::end_page): Simplify.
6313 2002-02-13 Werner LEMBERG <wl@gnu.org>
6315 * tmac/groff_tmac.man: Moved to...
6316 * man/groff_tmac.man: This place.
6317 * tmac/Makefile.sub, man/Makefile.sub: Updated.
6319 2002-02-12 Werner LEMBERG <wl@gnu.org>
6321 * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
6322 $(COMPILE.c) to not include groff's assert.h.
6324 * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
6326 * NEWS, src/drivers/grotty/grotty.man: Document it.
6328 2002-02-11 Werner LEMBERG <wl@gnu.org>
6330 * src/libs/snprintf/snprintf.c: Updated to latest version
6333 * src/roff/grog/grog.pl (process): Fix handling of `.['. We now
6334 test whether there is `.]' also.
6335 Don't check for spaces after `.['.
6336 * src/roff/grog/grog.sh: Do the same.
6338 2002-02-10 Werner LEMBERG <wl@gnu.org>
6342 * src/libs/libgroff/illegal.cc: Renamed to ...
6343 * src/libs/libgroff/invalid.cc: This.
6344 (illegal_char_table): Renamed to ...
6345 (invalid_char_table): This.
6346 * src/libs/libgroff/Makefile.sub: Updated.
6347 * win32-diffs: Updated.
6349 * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
6350 src/libs/libdriver/input.cc (fatal_command, parse_color_command,
6351 parse_x_command), src/libs/libgroff/font.cc (text_file::next,
6352 font::load), src/preproc/eqn/main.cc (read_line, main),
6353 src/preproc/eqn/lex.cc (file_input::read_line),
6354 src/preproc/pic/lex.cc (file_input::read_line,
6355 simple_file_input::get, simple_file_input::peek),
6356 src/preproc/pic/main.cc (top_input::get, top_input::peek),
6357 src/preproc/pic/pic.man, src/preproc/refer/main.cc
6358 (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
6359 do_bib), src/preproc/tbl/main.cc (table_input::get),
6360 src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
6361 src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
6362 do_zero_width, read_request, encode_char, ps_get_line,
6363 transparent_file, get_char_for_escape_name, transparent_translate,
6364 asciify, input_char_description, read_string, set_string),
6365 src/roff/troff/env.cc (environment::add_html_tag),
6366 src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
6368 * src/include/lib.h: Updated.
6370 * src/preproc/eqn/eqn.cc: Removed.
6374 * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
6376 2002-02-09 Werner LEMBERG <wl@gnu.org>
6378 * doc/gnu.xpm: New image.
6379 * doc/Makefile (DOCS): Add homepage.ps.
6380 Add rules for converting xpm->png and xpm->eps.
6381 Use `gnu.{xpm,eps}' as image names.
6382 * doc/homepage.ms: Updated.
6384 2002-02-09 Gaius Mulley <gaius@glam.ac.uk>
6386 * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
6387 (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
6388 Remove calls to `B1' and `B2'
6389 (PNG-IMAGE): New macro for inclusion of images in PNG format.
6390 (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
6391 auxiliary variables for MARGIN-PNG-IMAGE.
6392 (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
6393 auxiliary macros for MARGIN-PNG-IMAGE.
6394 (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
6396 (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
6397 (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
6398 (DROPCAP): New macro to produce dropcap characters.
6399 (www-do-image): Renamed back to...
6400 (HTML-DO-IMAGE): This.
6401 Updated all callers.
6403 * doc/Makefile (gnubw.eps): Updated.
6404 * doc/homepage.ms: Updated.
6406 2002-02-08 Werner LEMBERG <wl@gnu.org>
6408 * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
6409 Added `linethick' to table in section `Style Variables'.
6411 2002-02-08 Gaius Mulley <gaius@glam.ac.uk>
6413 * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
6415 2002-02-07 Werner LEMBERG <wl@gnu.org>
6417 Adding options -C (compatibility mode) and -c (grotty's old output
6420 * src/roff/nroff/nroff.sh: Implement it.
6422 * NEWS, src/roff/nroff/nroff.man: Updated.
6424 * PROBLEMS: Document bison 1.32 bug.
6426 Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
6428 * src/roff/troff/node.cc (make_tfont): Define it earlier.
6429 * src/roff/troff/div.h: Add prototype for `end_diversions'.
6430 * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
6431 * src/roff/troff/env.h: Add prototype for `title'.
6433 Adding EBCDIC support to grotty.
6435 * src/devices/grotty/tty.cc (CSI): New macro.
6436 (SGR_*, tty_printer::put_color): Use it.
6438 2002-02-06 Werner LEMBERG <wl@gnu.org>
6440 Implementing color support in grotty. The new switch -c activates
6441 the old drawing scheme, disabling color at the same time. The new
6442 switch `-i' selects italic instead of underlining (SGR only).
6444 * src/devices/grotty/tty.cc (putstring): New define instead of
6445 `fputs'. Updated all callers.
6446 (old_drawing_scheme): New global variable.
6447 (COLOR_CHANGE): New enum value.
6448 (SGR_*): New defines containing color handling escape sequences.
6449 (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
6450 (glyph): New members `back_color_idx' and `fore_color_idx'.
6451 (glyph::order): Add COLOR_CHANGE.
6452 (tty_printer): New members `cur_fore_idx', `curr_back_idx',
6453 `is_underline', `is_bold', `cu_flag', `tty_colors'.
6454 New methods `make_underline', `make_bold', `color_to_idx',
6455 `change_color', `put_color'.
6456 (cu_flag): Moved into `tty_printer' class.
6457 (tty_printer::tty_printer): Initialize colors.
6458 (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
6459 tty_printer::draw, tty_printer::end_page): Handle colors also.
6460 (main): Add options `-c' and `-i'.
6462 * NEWS, src/devices/grotty/grotty.man: Updated.
6464 * src/include/errarg.h (errarg): Add support for `unsigned int'.
6465 * src/libs/libgroff/errarg.c: Implement it.
6467 * src/include/printer.h (printer): Add `change_color' method
6468 (currently used by grotty only).
6469 * src/libs/libdriver/printer.cc: Implement it.
6470 * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
6471 call to `pr->change_color'.
6473 * src/roff/troff/node.cc (troff_output_file::fill_color,
6474 troff_output_file::glyph_color): Call `do_motion'.
6476 * tmac/tty.tmac: Add color definitions.
6478 * src/roff/groff/groff.man: Minor fixes.
6480 2002-02-05 Bernd Warken <bwarken@mayn.de>
6482 * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
6483 it. This is a preparation for future changes.
6485 2002-02-05 Werner LEMBERG <wl@gnu.org>
6487 * src/roff/troff/input.cc (process_input_stack): Fix the case
6488 where leading spaces are followed by \f or \s; previously, an
6489 incorrect space width has been used.
6491 * doc/roff.man (quoted_char): Fix argument.
6492 (comment): Define string.
6494 2002-02-04 Larry Kollar <kollar@alltel.net>
6496 * doc/groff.texinfo: More fixes.
6498 2002-02-04 Werner LEMBERG <wl@gnu.org>
6500 * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
6501 * src/preproc/eqn/main.cc (do_file, inline_equation): Call
6502 `restore_compatibility' before `output_string' -- the LINE_STRING
6503 register now already contains proper switches from and to
6506 * man/groff_char.man: Add Euro symbol.
6507 * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
6508 * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
6509 * doc/groff.texinfo (Defstr*): Print strings with full syntax.
6512 * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
6514 (.texinfo.html): Add support for texinfo->html.
6516 2002-02-03 Werner LEMBERG <wl@gnu.org>
6518 Added three new requests `ds1', `as1', and `ami'. The former two
6519 are equivalent to `ds' and `as' with the difference that
6520 compatibility mode is saved on entry, switched off during string
6521 expansion, and restored on exit. The latter is the pendant to `dei'
6524 (do_define_string): Use `define_mode' and `calling mode'.
6525 Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
6526 end of string, respectively.
6527 (define_string, append_string): Use `calling_mode'.
6528 (define_nocomp_string, append_nocomp_string,
6529 define_string_indirect): New functions.
6530 (init_input_requests): Updated.
6531 * NEWS, man/groff_diff.man, man/groff.man: Document it.
6533 * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
6534 `as1' for assigning LINE_STRING (this is `10' usually). Sun's
6535 mm macro package accesses this string register directly.
6536 * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
6538 * tmac/trace.tmac: Trace calls to `am' also. Make it work in
6541 2002-02-02 Larry Kollar <kollar@alltel.net>
6543 * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
6545 2002-01-31 Werner LEMBERG <wl@gnu.org>
6547 * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
6549 2002-01-31 Bernd Warken <bwarken@mayn.de>
6551 * src/devices/grolbp/lbp.cc (main): Delete `pr'.
6552 * man/groff_out.man: Revised and updated.
6554 2002-01-30 Bernd Warken <bwarken@mayn.de>
6556 * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
6557 out the unused `{' and `}' commands. Undefined by default.
6558 (IntArray): Make `data' private.
6559 (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
6560 new methods instead.
6561 (skip_line_D, skip_to_end_of_line): New functions.
6562 (get_D_fixed_args): Use `skip_line_D'.
6563 Changed to handle dummy odd arguments by ...
6564 (get_D_fixed_args_odd_dummy): This new function.
6565 (get_D_variable_args): Split some code into ...
6566 (get_possibly_integer_args): This new function.
6567 (send_draw): Use more `const'.
6568 (delete_current_env): New function.
6569 (position_to_end_of_args): Use `size_t'.
6571 (send_draw): Updated.
6572 (parse_D_command): Handle `c', `C', and `t' better.
6576 2002-01-29 Werner LEMBERG <wl@gnu.org>
6579 * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
6580 @Def...ListEnd which replaces @Def...x. This is necessary to get
6581 proper HTML output -- see the comment in the file for more
6585 2002-01-29 Gaius Mulley <gaius@glam.ac.uk>
6587 Fixes to make color changes of 2002-01-21 work with grohtml.
6589 * src/devices/grohtml/post-html.cc (style): Updated.
6590 (html_printer): Remove unused methods.
6591 (html_printer::do_font, html_printer::draw, html_printer::set_char,
6592 html_printer::special): Updated.
6593 * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
6594 html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
6595 Added some debugging code.
6596 (html_text::start_tag): Updated.
6597 (html_text::do_push): New method.
6598 (html_text::push_para): Call it.
6599 Add method for handling color.
6600 (html_text::do_color): Updated.
6601 (html_text::shutdown): Handle color.
6602 * src/devices/grohtml/html-text.h (tag_definition): New member
6606 2002-01-28 Werner LEMBERG <wl@gnu.org>
6608 * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
6610 2002-01-27 Gaius Mulley <gaius@glam.ac.uk>
6612 Add two switches -a and -g to control the antialiasing bits for
6613 text and graphics, respectively.
6615 * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
6617 * src/devices/grohtml/grohtml.man: Document them.
6618 * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
6620 (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
6621 (setupAntiAlias): New function.
6622 (createAllPages): Updated.
6623 (scanArguments): Handle `-a' and `-g'.
6624 (main): Call `setupAntiAlias'.
6627 2002-01-27 Werner LEMBERG <wl@gnu.org>
6629 * doc/groff.texinfo (Def*): Call index function after deffn.
6631 * tmac/html.tmac: Call `nroff' request.
6633 2002-01-26 Larry Kollar <kollar@alltel.net>
6635 * tmac/groff_ms.man: Add some omissions.
6637 2002-01-25 Larry Kollar <kollar@alltel.net>
6639 * tmac/groff_ms.man: Typographical improvements.
6641 2002-01-25 Werner LEMBERG <wl@gnu.org>
6643 * doc/groff.texinfo: Updated version and copyright.
6644 * src/devices/grops/grops.man: Updated.
6646 * tmac/groff_tmac.man: Fix `ig' macro.
6648 * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
6650 Use `.ne' unconditionally everywhere.
6651 (TS): Only insert some vertical space. Doing a page break is no
6652 longer necessary due to the redefinition of the `ne' request.
6654 * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
6655 warning for unknown subcommands but parse and pass them to the
6658 2002-01-24 Werner LEMBERG <wl@gnu.org>
6660 * tmac/groff_www.man, NEWS: Fix typos.
6662 2002-01-21 Werner LEMBERG <wl@gnu.org>
6664 Complete revision of color support:
6666 Adapt programs to the new libdriver/input.cc.
6668 Color spaces are no longer converted to RGB but transferred as-is
6669 in the troff intermediate output format.
6671 Handle default color gracefully. troff now supports a `default'
6672 color (which can't be changed).
6674 grops will now use the proper color space functions if available.
6678 Note that currently grohtml doesn't handle colors properly. This
6681 * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
6682 (ui_to_a): New function.
6683 * src/include/lib.h: Updated.
6685 * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
6686 (color): Simplified; removed all `double' members and methods.
6687 A new array `components' now holds the color parameters.
6688 (color::is_default, color::get_components): New methods.
6689 (color::operator==, color:operator!=): New.
6690 (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
6691 to make access to the `components' array more comprehensible.
6692 * src/libs/libgroff/color.cc: Implement new color support.
6693 (atoh): Small fixes.
6694 (color::read_encoding): Simplified for new troff intermediate color
6696 (default_color): New global variable.
6698 * src/roff/troff/input.cc (default_symbol): New global variable.
6699 (lookup_color): Use it.
6700 (default_black): Removed.
6701 (do_glyph_color, do_fill_color): Simplified.
6702 (define_color): Handle default color.
6704 (do_if_request): Handle default color.
6705 * src/roff/troff/env.cc (environment::environment): Initialize
6706 colors with `default_color'.
6707 * src/roff/troff/node.cc (troff_output_file::put): Add method
6709 (troff_output_file::hex): Removed.
6710 (troff_output_file::fill_color, troff_output_file::glyph_color):
6711 Updated to include/color.h and libdriver/input.cc.
6713 * src/preproc/pic/object.cc (draw_arrow): New parameter to set
6714 fill color properly (identically to the outline color). \D'f...'
6715 doesn't work any more.
6716 All function calls to it updated.
6718 * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
6720 * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
6723 * src/devices/grops/ps.cc (ps_output::put_color): New method.
6724 (ps_printer::sbuf_color): Make a real member instead of pointer.
6725 (ps_printer::fill_color, ps_printer::output_color): Removed.
6726 (ps_printer::ps_printer): Updated.
6727 (ps_printer::set_char): Ditto.
6728 (ps_printer::set_color): Use various color schemes.
6729 Use `put_color' method.
6730 (ps_printer::flush_sbuf): Don't set color.
6731 (ps_printer::fill_path): Take `environment' as parameter.
6732 Simplify color handling.
6733 (ps_printer::set_line_thickness): Renamed to ...
6734 (ps_printer::set_line_thickness_and_color): This (and updated).
6735 (ps_printer::set_color): Change second parameter from `complete'
6736 to `fill' which better describes what it does.
6737 (ps_printer::draw): Call `flush_sbuf' to output graphic commands
6738 and text in the right order.
6740 Remove branches for `f' and `F'; this is handled by
6742 * src/devices/grops/ps.h: Updated.
6743 * font/devps/prologue (FL): Redefined.
6744 ({F,C}r,k,g: New color functions (with and without filling).
6746 * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
6747 * man/groff_diff.man, man/groff.man, man/groff_out.man,
6748 doc/groff.texinfo, NEWS: Updated.
6750 2002-01-20 Bernd Warken <bwarken@mayn.de>
6752 * src/libs/libdriver/input.cc: Completely rewritten. See comments
6753 in this file for what has been changed.
6755 2002-01-19 Werner LEMBERG <wl@gnu.org>
6757 * test-groff: Fix GROFF_FONT_PATH.
6758 * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
6759 is read before .TH or .Dd is parsed.
6761 2002-01-18 Gaius Mulley <gaius@glam.ac.uk>
6763 * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
6764 quadrant boundaries.
6766 2002-01-18 Werner LEMBERG <wl@gnu.org>
6768 * devices/grops/ps.cc: Aargh! Fix the fix of the incorrectly
6771 2002-01-17 Ruslan Ermilov <ru@FreeBSD.org>
6773 * tmac/doc.common: Initialize %I register for the %I macro to
6774 avoid (harmless) warning.
6775 * tmac/doc.tmac (Bd): There is no reason to enforce -compact
6776 when in the SYNOPSIS section.
6778 2002-01-17 Bruno Haible <haible@clisp.cons.org>
6780 * src/preproc/pic/lex.cc (get_token): Fix typo.
6782 2002-01-17 Werner LEMBERG <wl@gnu.org>
6784 * devices/grops/ps.cc: Fix incorrectly applied last patch.
6786 2002-01-17 Larry Kollar <kollar@alltel.net>
6788 * tmac/groff_ms.man: Completely rewritten.
6790 2002-01-16 Werner LEMBERG <wl@gnu.org>
6792 * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
6794 2002-01-15 Gaius Mulley <gaius@glam.ac.uk>
6796 * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
6798 (ps_printer::draw): Ditto.
6800 2002-01-14 Ruslan Ermilov <ru@FreeBSD.org>
6802 * tmac/groff_mdoc.man: Minor fixes.
6804 2002-01-13 Werner LEMBERG <wl@gnu.org>
6806 * man/groff_out.man: Some fixes.
6808 2002-01-13 Gaius Mulley <gaius@glam.ac.uk>
6810 * doc/pic.ms: Fix typos.
6812 2002-01-12 Werner LEMBERG <wl@gnu.org>
6814 * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
6816 2002-01-10 Werner LEMBERG <wl@gnu.org>
6818 * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
6822 2002-01-09 Bernd Warken <bwarken@mayn.de>
6824 * man/groff_out.man: Revised.
6825 * man/roff.man: Minor fixes.
6826 * src/roff/troff/troff.man: Some reordering.
6828 2002-01-09 Werner LEMBERG <wl@gnu.org>
6830 * tmac/an-old.tmac: Add dummy macros for equation support.
6832 2002-01-07 Werner LEMBERG <wl@gnu.org>
6834 doc/groff.texinfo: Fix documentation of glyph searching algorithm.
6836 * tmac/an-old.tmac: Revert change 2001-12-23. This breaks too many
6838 * tmac/groff_man.man: Small improvements.
6840 2002-01-07 Bernd Warken <bwarken@mayn.de>
6842 * man/groff_diff.man: Revised.
6844 2002-01-06 Werner LEMBERG <wl@gnu.org>
6846 * tmac/www.tmac: Remove extraneous backslash.
6848 2002-01-06 Bernd Warken <bwarken@mayn.de>
6850 * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
6852 2002-01-05 Werner LEMBERG <wl@gnu.org>
6854 Integrated groffer, contributed by Bernd Warken.
6856 * contrib/groffer/*: New.
6857 * Makefile.in, NEWS: Updated.
6859 2002-01-04 Werner LEMBERG <wl@gnu.org>
6861 * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
6862 registers defined in macro packages.
6863 Revising the ms part.
6865 2002-01-04 Larry Kollar <kollar@alltel.net>
6867 * doc/groff.texinfo: Add documentation for ms macros.
6869 2002-01-02 Werner LEMBERG <wl@gnu.org>
6871 First step in adding PS support for the Euro symbol. `eu' is the
6872 official Euro logo, `Eu' is a font-specific glyph variant.
6874 * font/devps/text.enc: Add `Euro' at position 9.
6875 * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
6876 * font/devps/symbolmap: Regenerated.
6880 2002-01-02 Bernd Warken <bwarken@mayn.de>
6882 * man/roff.man: Revised.
6884 2002-01-01 Bernd Warken <bwarken@mayn.de>
6886 * src/roff/groff/groff.man: Completely rewritten.
6888 2001-12-31 Werner LEMBERG <wl@gnu.org>
6890 * doc/Makefile: Updated.
6892 2001-12-30 Werner LEMBERG <wl@gnu.org>
6894 * tmac/www.tmac: Make all names of internal macros/registers/strings
6895 lowercase, and prepend `www-'.
6896 Other minor changes.
6897 * src/roff/troff/troff.man: Add preprocessor string at BOF.
6899 2001-12-30 Gaius Mulley <gaius@glam.ac.uk>
6901 Implement option `-b' in grohtml to set the HTML background colour.
6903 * src/devices/grohtml/post-html.cc (default_background): New global
6905 (html_printer::html_printer): Initialize `background' to
6906 `default_background'.
6907 (main): Implement option `-b'.
6909 * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
6911 * src/devices/grohtml/grohtml.man: Updated.
6912 * doc/Makefile (.ms.html): Use `-b'.
6913 * tmac/html.tmac: Don't set background color.
6915 Add new grohtml tag `.html-tl'.
6917 * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
6919 (title_desc::title_desc): Updated.
6920 (html_printer::troff_tag): Handle `.html-tl'.
6921 (html_printer::write_title): Use `with_h1'.
6922 * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
6923 (HTML-TL): New macro.
6925 Add support for unordered lists in HTML.
6927 * tmac/www.tmac (www-level): New auxiliary register.
6928 (www-level1, www-level2, www-level3): New auxiliary strings.
6929 (www-push-level, www-pop-level): New auxiliary macros
6930 (UL-BEGIN, UL-END, LI): User macros for unordered lists.
6934 * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
6935 (DEFAULT_VERTICAL_OFFSET): Removed.
6936 (IMAGE_BOARDER_PIXELS): Set to 0.
6937 (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
6938 (vertical_offset): Initialize with 0.
6939 (gsPaper): New global variable.
6940 (get_resolution): Scan for and return unsigned int.
6941 (get_papersize): New function to get paper length from devps/DESC.
6942 (determine_vertical_offset): New function.
6943 (createAllPages): Produce gray-level images and use proper page
6945 (createImage): Use `-quiet' option of pnmcrop.
6946 (addZ): Fix passing of `-Z'.
6947 (scanArguments): Fix handling of `-o'.
6948 (main): Call `determine_vertical_offset'.
6949 * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
6952 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
6953 * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
6954 glyph descenders properly.
6956 * doc/homepage.ms: Include `gnubw.eps'.
6957 * doc/Makefile (gnubw.eps): New rule.
6958 (homepage.html): Depend on `gnubw.eps'.
6960 2001-12-25 Werner LEMBERG <wl@gnu.org>
6962 * src/roff/troff/input.cc (default_black): Fix return value.
6964 2001-12-24 Ruslan Ermilov <ru@FreeBSD.org>
6966 * tmac/doc-common (Dt): Change output of architecture strings.
6967 Do some syntax cleanup.
6968 * tmac/groff_mdoc.man: Updated.
6970 2001-12-23 Werner LEMBERG <wl@gnu.org>
6972 Adding an `itc' request (input line trap accepting \c).
6974 * src/roff/troff/env.h (environment): New member
6975 `continued_input_trap'.
6976 Make `do_input_trap' a friend function instead of `input_trap'.
6977 * src/roff/troff/env.cc (environment::environment,
6978 environment::copy): Updated.
6979 (environment::newline): Implement it.
6980 (do_input_trap): New function.
6981 (input_trap): Call `do_input_trap'.
6982 (input_trap_continued): New function.
6983 (init_env_requests): Updated.
6984 * src/roff/troff/TODO: Updated.
6986 * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
6989 * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
6991 2001-12-22 Ruslan Ermilov <ru@FreeBSD.org>
6993 * tmac/doc-common, tmac/doc-syms: Small updates.
6995 2001-12-22 Colin Watson <cjwatson@debian.org>
6997 * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
6999 2001-12-22 Bernd Warken <bwarken@mayn.de>
7001 * MANIFEST: New file.
7003 2001-12-22 Werner LEMBERG <wl@gnu.org>
7005 * src/preproc/grn/grn.man: Updated.
7007 2001-12-22 Solar Designer <solar@openwall.com>
7009 * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
7012 2001-12-19 Werner LEMBERG <wl@gnu.org>
7014 Implement a fallback character request `.fchar'.
7016 * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
7017 (is_fallback): New inline function.
7018 * src/roff/troff/input.cc (do_define_character): New function.
7019 (define_character): Call `do_define_character'.
7020 (define_fallback_character): New function.
7021 (init_input_requests): Add `fchar'.
7022 (charinfo::charinfo): Updated.
7023 (charinfo::set_macro): New argument to set `fallback' flag.
7024 * src/roff/troff/node.cc (make_glyph_node, make_node,
7025 node::add_char): Check `fallback' flag.
7026 * NEWS, man/groff_diff.man, man/groff_man: Updated.
7028 2001-12-16 Werner LEMBERG <wl@gnu.org>
7030 * groff.texinfo: Document exact search algorithm for glyphs.
7032 2001-12-15 Werner LEMBERG <wl@gnu.org>
7034 * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
7035 the left side of $(MANPAGES) rule to make it always non-empty.
7037 2001-12-14 Werner LEMBERG <wl@gnu.org>
7039 * src/roff/troff/input.cc (default_black): Define default color
7040 `black' if not yet defined.
7042 2001-12-13 Werner LEMBERG <wl@gnu.org>
7044 Implement new string-valued register `.fn' to return the current
7045 real (internal) font name.
7047 * env.cc (environment::get_font_name_string): New function.
7048 (init_env_requests): Add `.fn' register.
7049 * env.h (environment): Updated.
7050 * node.cc (font_info): Make `get_font_name' a friend.
7051 (get_font_name): New function.
7054 * man/groff_diff.man, man/groff.man, NEWS: Updated.
7056 2001-12-12 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7058 * src/preproc/eqn/main.cc (inline_equation): Fix typos.
7060 2001-12-12 Werner LEMBERG <wl@gnu.org>
7062 * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
7064 2001-12-10 Gaius Mulley <gaius@glam.ac.uk>
7066 * man/groff_diff.man: Adding documentation for \O.
7068 2001-12-10 Werner LEMBERG <wl@gnu.org>
7070 * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
7071 (scanArguments): Use PROG_PREFIX for the name of the troff binary.
7073 2001-12-09 Werner LEMBERG <wl@gnu.org>
7075 * man/roff.man: Revised.
7076 * src/roff/groff/groff.man: Replace man page references with a
7077 pointer to roff.man.
7079 2001-12-09 Bernd Warken <bwarken@mayn.de>
7081 * man/roff.man: Completely rewritten.
7083 2001-12-06 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7085 * src/preproc/eqn/main.cc (inline_equation): Improve error message.
7087 2001-12-05 Werner LEMBERG <wl@gnu.org>
7089 * src/roff/troff/input.cc (get_delim_file_name): Removed since no
7091 * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
7092 order of initializers.
7095 2001-12-05 Gaius Mulley <gaius@glam.ac.uk>
7097 * doc/groff.texinfo: Fix documentation of \O.
7099 * src/devices/grohtml/html-text.cc (html_text::do_indent,
7100 html_text::do_table, html_text::do_emittext, html_text::do_para):
7101 Use `const' for first argument.
7102 (html_text::do_table): Use cast.
7103 * src/devices/grohtml/html-text.h: Updated.
7104 * src/devices/grohtml/output.cc (simple_output::put_string): Add
7105 method for `const string &s'.
7106 * src/devices/grohtml/html.h: Updated.
7107 * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
7108 (ANCHOR_TEMPLATE): Modified.
7109 (manufacture_headings): New global variable to handle `-h' option.
7110 (is_subsection): Removed.
7111 (char_buffer::add_string): Add `const' to first argument.
7112 Protect against invalid string argument.
7113 Add method for `const string &s'.
7114 (text_glob): Completely redesigned.
7115 (page): Use `const' for strings and remove string length variable.
7116 (page::add_html): Removed.
7117 (page::add_end_encode): New member function.
7118 (to_unicode): Moved upwards.
7119 (title_desc, header_desc): Updated.
7120 (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
7122 (html_printer::is_bold, html_printer::make_bold): New member
7124 (html_printer::end_of_line): Updated.
7125 (generate_img_src, html_printer::do_auto_image,
7126 html_printer::do_title, html_printer::write_header,
7127 html_printer::determine_header_level, html_printer::do_heading,
7128 html_printer::do_linelength, html_printer::do_pageoffset,
7129 html_printer::do_indentation, html_printer::do_tempindent,
7130 html_printer::do_indentedparagraph, html_printer::do_break,
7131 html_printer::flush_sbuf, get_html_translation,
7132 html_printer::begin_page, html_printer::special): Rewritten to get
7133 rid of static string length limit.
7134 (html_printer::troff_tag): Added `.no-auto-rule'.
7135 (html_printer::flush_globs): Small fix.
7136 (html_printer::determine_space): Don't compute `space_width'.
7137 (html_printer::translate_to_html): Renamed to ...
7138 (html_printer::emit_html): This (with updates).
7139 (html_printer::write_header): Implement `-h' option.
7140 (html_printer::draw): Remove commented-out code. Handle `F'
7142 (html_printer::add_char_to_sbuf): Removed.
7143 (html_printer::add_to_sbuf): Rewritten.
7144 (html_printer::sbuf_continuation): Fixed.
7145 (html_printer::seen_backwards_escape, reverse,
7146 html_printer::remove_last_char_from_sbuf): Removed.
7147 (char_translate_to_html, str_translate_to_html): Removed.
7148 (html_printer::overstrike): New function member.
7149 (html_printer::set_char): Use it.
7150 (html_printer::do_body): New function member.
7151 (html_printer::~html_printer): Use it.
7152 (main): Handle `-h' option.
7154 * src/devices/grohtml/grohtml.man: Document -h switch.
7156 * src/preproc/html/pre-html.cc: Include searchpath.h
7157 Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
7158 (get_resolution): New function.
7159 (checkImageDir): Use `0777' permissions in mkdir()
7160 (write_start_image): Rewritten to use `\O[5...]'.
7161 (createImage, generateImages): Updated.
7162 (main): Handle `F' and `h' options.
7163 Use `get_resolution'.
7165 * src/roff/troff/input.cc (begin, end, image): Removed.
7166 (do_suppress): Take parameter.
7167 Handle modified syntax of `\O'.
7168 (token::next): Updated.
7169 (init_markup_requests): Removed.
7172 * src/roff/troff/div.h: Add declaration for begin_page().
7174 * tmac/color-html.tmac: Removed. Contents moved to...
7175 * tmac/html.tmac: Here. Set background color.
7176 * tmac/color.tmac: Removed. Contents moved to...
7177 * tmac/ps.tmac: Here.
7178 * tmac/www.tmac: Remove the title command when generating images
7180 (NO_AUTO_RULE): New macro.
7181 (HTML_DO_IMAGE): Use revised `\O' escapes.
7182 * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
7184 2001-12-02 Werner LEMBERG <wl@gnu.org>
7186 * tmac/groff_mdoc.man: Fix typo.
7188 2001-12-01 Colin Watson <cjwatson@debian.org>
7190 * man/roff.man: Fix typo.
7192 2001-11-29 Werner LEMBERG <wl@gnu.org>
7194 * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
7197 * src/roff/troff/input.cc (read_draw_node): Emit error message if
7198 more than one argument to \D'f ...'.
7200 * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
7202 2001-11-28 Werner LEMBERG <wl@gnu.org>
7204 * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
7207 * tmac/groff_man.man: Minor cosmetic fix.
7209 2001-11-27 Werner LEMBERG <wl@gnu.org>
7211 * src/roff/groff/groff.man, tmac/groff_tmac.man,
7212 tmac/groff_www.man: s/mwww/www/.
7214 2001-11-26 Werner LEMBERG <wl@gnu.org>
7216 * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
7217 * configure: Regenerated.
7218 * win32-diffs: Updated.
7220 * tmac/groff_mwww.tmac: Renamed to ...
7221 * tmac/groff_www.tmac: This.
7222 * tmac/mwww.tmac: Removed.
7223 * NEWS, tmac/Makefile.sub: Updated.
7225 2001-11-21 Werner LEMBERG <wl@gnu.org>
7227 * doc/groff.texinfo: Improve documentation of the `\v' escape.
7228 Fix explanation of `\D' and `rt'.
7230 2001-11-20 Werner LEMBERG <wl@gnu.org>
7232 * tmac/an-old.tmac (an-header): Set header length equal to page
7234 * doc/groff.texinfo: Improve documentation of `ne' request. Other
7238 2001-11-19 Werner LEMBERG <wl@gnu.org>
7240 * NEWS, man/Makefile.sub: Updated.
7242 2001-11-19 Bernd Warken <bwarken@mayn.de>
7244 * man/ditroff.man: New file.
7246 2001-11-17 Werner LEMBERG <wl@gnu.org>
7248 * man/groff_differences.man: Renamed to ...
7249 * man/groff_diff.man: This. Updated.
7250 * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
7252 * src/preproc/html/pushbackbuffer.cc: Renamed to ...
7253 * src/preproc/html/pushback.cc: This. Updated.
7254 * src/preproc/html/pushbackbuffer.h: Renamed to ...
7255 * src/preproc/html/pushback.h: This.
7256 * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
7259 * src/libs/libgroff/htmlindicate.cc: Renamed to ...
7260 * src/libs/libgroff/htmlhint.cc: This.
7261 * src/libs/libgroff/Makefile.sub: Updated.
7263 * tmac/an-old.tmac (an-end): Fix page length.
7265 2001-11-16 Werner LEMBERG <wl@gnu.org>
7267 * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
7268 * man/Makefile.sub: Include groff_differences.man.
7269 * VERSION: Set to 1.18.
7270 * REVISION: Set to 0.
7272 2001-11-16 Bernd Warken <bwarken@mayn.de>
7274 * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
7275 the second dot (or ending macro name) to end a macro.
7276 * doc/groff.texinfo: Doc fix.
7278 2001-11-16 Ruslan Ermilov <ru@FreeBSD.org>
7280 * tmac/doc-common (doc-header): Handle very long document titles
7283 2001-11-16 Werner LEMBERG <wl@gnu.org>
7285 * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
7287 2001-11-15 Werner LEMBERG <wl@gnu.org>
7289 * src/roff/troff/troff.man: Revised and split into troff.man and...
7290 * man/groff_differences.man: New file.
7293 2001-11-13 Werner LEMBERG <wl@gnu.org>
7295 * tmac/an-old.tmac (TS, TE): New macros for table support.
7297 2001-11-12 Werner LEMBERG <wl@gnu.org>
7299 * src/include/lib.h: Provide a fix for emx to not include
7302 2001-10-27 Werner LEMBERG <wl@gnu.org>
7304 * src/roff/troff/input.cc (substring_macro): Fix computation of
7307 2001-10-20 Werner LEMBERG <wl@gnu.org>
7309 Undo change from 2001-08-28.
7311 * src/roff/troff/input.cc (have_input): New global variable.
7312 (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
7313 in compatibility mode.
7314 (process_input_stack): Use it.
7316 2001-10-19 Ruslan Ermilov <ru@FreeBSD.org>
7318 * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
7319 being handled as end-of-sentence characters,
7321 2001-10-10 Gaius Mulley <gaius@glam.ac.uk>
7323 * src/roff/troff/input.cc (file_iterator): New members
7324 `suppress_newline_flag' and `seen_escape'.
7325 (file_iterator::next_file): Updated.
7326 (file_iterator::fill): Use it.
7327 (string_iterator): New member `suppress_newline_flag'.
7328 (string_iterator::fill): Set it.
7329 (get_color_element): Use MAX_COLOR_VAL.
7330 * src/roff/troff/env.cc (environment): Remove `need_eol'.
7331 (no_fill): Don't set `env->ignore_next_eol'.
7332 (environment::newline): Handle `eol' tag properly.
7334 (environment::add_html_tag): Set `env->ignore_next_eol'.
7336 * src/roff/troff/env.h (environment): Updated.
7338 * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
7340 (html_printer::outstanding_eol): New member function.
7341 (html_printer::do_title): Use new functions.
7342 (html_printer::troff_tag): Test `id_eol_ce'.
7344 2001-10-10 Werner LEMBERG <wl@gnu.org>
7346 * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
7347 files work with -C also.
7349 2001-10-05 Werner LEMBERG <wl@gnu.org>
7351 * doc/pic.ms: Minor fix.
7352 * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
7353 as a valid command line switch.
7354 * src/devices/grohtml/post-html.cc (main): Ditto.
7356 * src/devices/grohtml/grohtml.man: Updated.
7357 * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
7359 2001-10-04 Werner LEMBERG <wl@gnu.org>
7361 Implementing color support in troff, pic, grops, and grohtml. These
7362 changes are based on a major patch provided by Gaius Mulley
7365 New request: `defcolor', supporting rgb, cmy, cmyk, and gray
7366 definitions with both hex values and fractions.
7368 New escapes: \m and \M for drawing and background color,
7369 respectively. This corresponds to the troff output commands `m'
7372 groff and troff accept command line switch `-c' to disable color
7373 output (which is automatically disabled in compatibility mode).
7375 New scaling indicator `f' for fractions (1f = 65536u).
7377 New conditional operator `m' to test for defined colors with `if'
7380 New keywords `color' (or `colour', `colored', `coloured'), `outline'
7381 (or `outlined'), and `shaded' added to pic.
7383 * src/include/color.h: New file.
7384 * src/include/driver.h: Include it.
7385 * src/include/printer.h: Include color.h.
7386 (environment): New members `col' and `fill'.
7387 (printer): Remove `adjust_arc_center' member function.
7388 * src/include/Makefile.sub: Updated.
7390 * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
7392 Handle `m' and `DF' troff commands.
7393 * src/libs/libgroff/color.cc: New file.
7394 * src/libs/libgroff/Makefile.sub: Updated.
7396 * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
7398 (createImage): Fix computation of `y2'.
7400 (buffer::write_file_html): Remove calls to `stop'.
7402 * src/preproc/pic/common.h (common_output): New abstract function
7403 members `set_color', `reset_color', `get_last_filled', and
7404 `get_outline_color'.
7405 * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
7406 (object_spec): Add members `shaded' and `outlined'.
7407 * src/preproc/pic/output.h (output): `command' is now abstract.
7408 New function members `set_color', `reset_color', `get_last_filled',
7409 and `get_outline_color'.
7410 * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
7411 `outline[d]', and `shaded'.
7412 * src/preproc/pic/object.cc (output::command): Removed.
7413 (output::set_location): Moved to output.h.
7414 (graphic_object): Add protected members `outline_color' and
7416 Add member functions `set_outline_color', `get_outline_color', and
7418 (closed_object): Add member function `set_fill_color'.
7419 Add member `color_fill'.
7420 (graphic_object::print_text): Use `out->set_color' and
7422 (box_object::print, ellipse_object::print, circle_object::print,
7423 line_object::print, spline_object::print, arc_object::print): Ditto.
7424 (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
7425 * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
7426 `SHADED', making them `%left'.
7427 Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
7428 * src/preproc/pic/tex.cc (tex_output): New dummy function members
7429 `set_color', `reset_color', `get_last_filled', and
7430 `get_outline_color'.
7431 * src/preproc/pic/troff.cc (simple_output): New abstract function
7432 members `set_color', `reset_color', and `get_last_filled'.
7433 (simple_output::polygon, simple_output::circle,
7434 simple_output::ellipse): Use `get_last_filled'.
7435 (troff_output): New members `last_filled' and `last_outlined'.
7436 New function members `set_color', `reset_color', `get_last_filled',
7437 and `get_outline_color'.
7438 (troff_output::finish_picture): Use `reset_color'.
7439 (troff_output::set_fill): Test `last_filled'.
7440 * src/preproc/pic/pic.man: Updated.
7442 * src/roff/groff/groff.cc (main): Implement `-c' option.
7443 (synopsis, help): Updated.
7444 src/roff/groff/groff.man: Updated.
7446 * src/roff/troff/troff.h: Include color.h.
7447 (warning_type): Add WARN_COLOR.
7448 * src/roff/troff/env.h (environment): New members
7449 `{cur,prev}_{glyph,fill}_color'.
7450 New member functions `get_{prev_,}{glyph,fill}_color'.
7451 * src/roff/troff/env.cc: Initialize and implement them.
7452 * src/roff/troff/input.cc: New global variable `disable_color_flag'.
7453 Replace `NULL' with `0' everywhere for consistency.
7454 (lookup_color, default_black, do_glyph_color, do_fill_color,
7455 get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
7456 define_color): New functions.
7457 (token::next): Implement \M and \m escapes.
7458 (do_if_request): Implement `m' operator.
7460 (main): Implement `-c' option.
7461 (init_markup_requests): Add `defcolor' request.
7462 (warning_table): Add `color' warning.
7463 * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
7465 * src/roff/troff/node.cc (troff_output_file): New members
7466 `current_{page,glyph}color'. New member functions `put_hex',
7467 `glyph_color', and `fill_color'.
7468 (glyph_color_node::*, fill_color_node::*): Implement it.
7469 * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
7470 (parse_term): Add support for `f'.
7471 * src/roff/troff/troff.man: Updated.
7473 * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
7475 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
7476 * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
7478 * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
7479 (tag_definition): Use `void *' for arg1.
7480 (html_text): New member functions `do_color' and `done_color'.
7481 Use `void *' for second parameter of `push_para' member function.
7482 New `push_para' member function with a single parameter.
7483 Use `char *' for parameter of `issue_table_begin' member funtion.
7484 New `issue_color_begin' member function.
7485 * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
7487 (html_text::issue_color_begin): New function.
7488 (html_text::issue_table_begin): Use `char *' for parameter.
7489 (html_text::start_tag, html_text::shutdown,
7490 html_text::check_emit_text): Updated.
7491 (html_text::push_para): Use `void *' for second parameter.
7492 Add same function with only one parameter.
7493 (html_text::do_*): Updated.
7494 (html_text::do_color, html_text::done_color): New functions.
7495 * src/devices/grohtml/post-html.cc (style): New member `col'.
7496 Mew member `style' with 6 parameters.
7497 (style::style, style::operator==): Updated.
7498 (html_printer::do_font): Use it.
7499 (html_printer::draw): Add dummy entry for `F'.
7500 (html_printer::set_char): Updated.
7501 * src/devices/grohtml/grohtml.man: Updated.
7503 * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
7504 trailing zeroes removed.
7505 (ps_printer): New members `sbuf_color', `fill_color', and
7507 Removed member `fill'.
7508 New member function `set_color'.
7509 (ps_printer::ps_printer, ps_printer::set_char): Updated.
7510 (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
7511 ps_printer::fill_path, ps_printer::draw): Use `set_color'.
7513 * tmac/color-html.tmac, tmac/color.tmac: New files.
7514 * tmac/troffrc: Include them.
7515 * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
7516 * tmac/Makefile.sub: Updated.
7518 * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
7519 man/groff.man: Updated.
7520 * font/devps/prologue.ps: Define FC and CO functions.
7522 2001-10-04 Gaius Mulley <gaius@glam.ac.uk>
7524 Fix incorrect cropping of images and incorrect handling of special
7525 characters. Fix handling of file names in \O.
7527 * src/include/geometry.h: New file.
7528 * src/libs/libgroff/geometry.cc: New file.
7529 * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
7531 * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
7533 (do_suppress): Updated.
7534 * src/roff/troff/node.cc: Include geometry.h.
7535 (troff_output_file::flush_tbuf): Fixed parameters to
7536 `check_output_limits'.
7537 (troff_output_file::check_charinfo): Ditto.
7538 (troff_output_file::determine_line_limits): Add support for `Da'
7541 * src/devices/grohtml/post-html.cc (str_translate_to_html):
7542 Add new parameter `is_special' to decode special characters from
7544 (html_printer::do_title, html_printer::do_heading,
7545 html_printer::do_indentedparagraph,
7546 html_printer::translate_to_html, html_printer::special): Updated.
7548 2001-10-03 Werner LEMBERG <wl@gnu.org>
7550 * Makefile.sub (DISTCLEANFILES): Add stamp-h.
7551 Fix entry for config.h.
7552 * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
7553 * tmac/troffrc: Translate nonbreakable space character to `\~'.
7554 * src/preproc/eqn/eqn.man: Document -d command line option.
7556 2001-09-27 Werner LEMBERG <wl@gnu.org>
7558 * man/groff.man: Use
7566 instead of the old code (`.ad .hy' after the table) to suppress
7567 incorrect hyphenation for grohtml output.
7569 2001-09-22 Werner LEMBERG <wl@gnu.org>
7571 * man/groff_font.man, man/groff_out.man: Minor fixes.
7573 2001-09-20 Werner LEMBERG <wl@gnu.org>
7575 * PROBLEMS: Updated, reordered. Improved EPS section (thanks to
7576 Arnold Robbins <arnold@skeeve.com>).
7578 2001-09-09 Werner LEMBERG <wl@gnu.org>
7580 * configure: Regenerated with autoconf 2.52.
7582 * doc/groff.texinfo: Complete revision of indices.
7584 2001-09-07 Werner LEMBERG <wl@gnu.org>
7586 * doc/Makefile (clean): Updated to delete all indices.
7588 2001-09-05 Werner LEMBERG <wl@gnu.org>
7590 * src/roff/troff/troff.man: Remove superfluous line.
7592 * tmac/s.tmac: Enable all warnings only if no -W or -w option is
7593 given on the command line (or rather, if only the default warnings
7596 2001-09-03 Werner LEMBERG <wl@gnu.org>
7598 * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
7599 use .ne for TTY devices.
7601 2001-08-31 Werner LEMBERG <wl@gnu.org>
7603 * src/roff/troff/token.h, src/roff/troff/input.cc:
7604 s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
7606 2001-08-28 Werner LEMBERG <wl@gnu.org>
7608 * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
7609 * src/roff/troff/input.cc (token::next): Return
7610 TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
7612 (token::description): Updated.
7613 (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
7614 (token::add_to_node_list, token::process): Ignore
7615 TOKEN_TRANSPARENT_ESCAPE.
7617 2001-08-27 Werner LEMBERG <wl@gnu.org>
7619 * tmac/an-old.tmac: Fix `S' string.
7621 2001-08-26 Werner LEMBERG <wl@gnu.org>
7623 * src/roff/troff/troff.man: Don't use .ne for TTY devices.
7625 2001-08-25 Werner LEMBERG <wl@gnu.org>
7627 * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
7629 Many other minor fixes.
7631 * configure.ac: Add message at end to inform how to compile
7633 * configure: Regenerated.
7635 2001-08-24 Werner LEMBERG <wl@gnu.org>
7637 * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
7638 Updated to latest version of libc.
7640 2001-08-23 Werner LEMBERG <wl@gnu.org>
7642 * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
7643 Autoconf 2.50 and newer can handle this.
7644 * configure: Regenerated.
7646 2001-08-21 Werner LEMBERG <wl@gnu.org>
7648 * doc/pic.ms: Fix typo.
7649 * src/preproc/tbl/tbl.man: Document case of global options.
7651 2001-08-21 Gaius Mulley <gaius@glam.ac.uk>
7653 * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
7654 handling of `CR' font.
7656 2001-08-20 Werner LEMBERG <wl@gnu.org>
7658 Use a config.h file.
7660 * src/include/lib.h: Include config.h.
7661 * All C files: Ditto (if necessary).
7662 * All C++ source and header files: Include lib.h first (if
7665 * src/include/config.hin: New file (autogenerated by autoheader).
7666 * stamp-h.in: New file.
7667 * configure.ac: Updated.
7668 * aclocal.m4: Add third parameters to AC_DEFINE macros.
7669 (GROFF_ARRAY_DELETE): Simplified.
7670 * Makefile.sub (DISTCLEANFILES): Updated.
7671 Added targets for remaking config.status, config.hin, config.h,
7672 stamp-h.in, and stamp-h.
7673 * configure: Regenerated.
7675 2001-08-19 Werner LEMBERG <wl@gnu.org>
7679 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
7681 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
7682 (do_sprintf): Use snprintf().
7684 2001-08-18 Werner LEMBERG <wl@gnu.org>
7686 * src/libs/snprintf/*: Added an snprintf module written by Mark
7688 * src/libs/libgroff/Makefile.sub: Updated.
7689 * configure.ac: Add test for snprintf().
7690 * Makefile.in: Updated.
7691 * configure: Regenerated.
7693 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
7696 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
7698 * tmac/doc.tmac (Ex): New implementation.
7699 * tmac/doc-common, tmac/groff_tmac.man: Updated.
7701 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
7703 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
7705 * tmac/groff_tmac.man: Updated.
7707 2001-08-13 Werner LEMBERG <wl@gnu.org>
7709 * src/preproc/tbl/tbl.man: Minor documentation update.
7711 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
7713 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
7714 * configure.ac: Add declaration test for gettimeofday().
7715 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
7716 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
7717 * configure: Regenerated.
7719 2001-08-11 Werner LEMBERG <wl@gnu.org>
7721 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
7722 * configure.ac: Add declaration test for strcasecmp().
7723 * Makefile.in: Updated.
7724 * configure: Regenerated.
7725 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
7726 this is necessary because groff's mkstemp.cc is C++.
7727 Add declaration conditionally for strcasecmp().
7729 2001-08-10 Werner LEMBERG <wl@gnu.org>
7731 Integrated pic2graph, contributed by Eric S. Raymond.
7733 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
7735 * Makefile.in, NEWS: Updated.
7737 * src/preproc/tbl/tbl.man: Revised.
7739 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
7741 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
7743 2001-08-09 Werner LEMBERG <wl@gnu.org>
7745 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
7748 2001-08-08 Paul Eggert <eggert@twinsun.com>
7750 * Makefile.sub (configure): Depend on configure.ac, not
7752 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
7754 2001-08-07 Werner LEMBERG <wl@gnu.org>
7756 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
7759 2001-08-06 Werner LEMBERG <wl@gnu.org>
7761 * src/roff/troff/troff.man: Improve documentation of -E option.
7763 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7765 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
7768 2001-07-27 Werner LEMBERG <wl@gnu.org>
7770 * src/preproc/refer/refer.cc: Undo last change.
7771 * src/devices/grohtml/post-html.cc: Ditto.
7773 2001-07-26 Werner LEMBERG <wl@gnu.org>
7775 * src/preproc/refer/refer.cc: Include `lib.h'.
7776 * src/devices/grohtml/post-html.cc: Ditto.
7778 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
7780 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
7781 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
7782 * Makefile.in: Comment updated.
7783 * configure: Regenerated.
7785 2001-07-25 Werner LEMBERG <wl@gnu.org>
7787 * src/preproc/pic/pic.cc: Removed.
7788 * src/preproc/pic/pic_tab.h: Removed.
7789 * src/preproc/refer/label.cc: Removed.
7791 * doc/Makefile (.ms.html): Don't use a file name extension in
7792 argument to grohtml's -I option.
7793 * Makefile.in (dist): Remove CVS directories.
7794 Call `distfiles' target.
7796 * src/devices/grohtml/grohtml.man: Add information about valid
7797 versions of pnmtopng.
7798 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
7799 name instead of number.
7801 2001-07-24 Werner LEMBERG <wl@gnu.org>
7803 * doc/groff.texinfo: Minor fixes.
7805 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
7807 * doc/Makefile (.ms.html): Put image files into a subdirectory.
7810 2001-07-20 Werner LEMBERG <wl@gnu.org>
7812 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
7813 * src/libs/libgroff/mkstemp.cc: New file.
7814 * src/libs/libgroff/mksdir.cc: New file.
7815 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
7816 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
7817 * src/libs/libgroff/Makefile.sub: Updated.
7818 * src/include/lib.h: Add mksdir() prototype.
7819 * src/include/posix.h: Define S_IXUSR if not yet defined.
7821 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
7822 (createAllPages): Use mksdir() instead of current code.
7823 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
7824 (main): [!HAVE_MKSTEMP]: Removed.
7826 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
7827 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
7829 * configure.ac: Add tests for stdint.h, sys/time.h, and
7831 Call new GROFF_xxx macros.
7832 * configure: Regenerated.
7833 * Makefile.in: Comments updated.
7835 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
7837 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
7838 instead of current code.
7839 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
7840 * src/roff/groff/groff.cc (possible_command::insert_args): New
7842 (main): Use it for predriver handling instead of insert_arg().
7844 2001-07-19 Werner LEMBERG <wl@gnu.org>
7846 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
7849 * src/include/posix.h: Define S_IWUSR if not yet defined.
7851 2001-07-18 Werner LEMBERG <wl@gnu.org>
7855 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
7857 * tmac/groff_mdoc.man: Document new -width and -column syntax.
7858 Some other minor fixes.
7859 * tmac/an-old.tmac: Add `AT' and `UC' macros.
7861 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
7863 Replace call to `troff' with `groff -Z' to make it aware of
7866 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
7867 (troff_command, command_prefix): Removed.
7868 (alterDeviceTo): Use groff.
7869 (addZ): New function.
7870 (char_buffer::do_html): Use it.
7871 (scanArguments): Use TROFF_COMMAND.
7872 (findPrefix): Removed.
7874 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
7876 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
7878 * doc/pic.ms: Documentation fixes.
7880 2001-07-17 Werner LEMBERG <wl@gnu.org>
7882 Replace atexit() with global destructor.
7884 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
7885 (xtmpfile_list_init): New global structure to deallocate
7886 xtmpfile_list on exit. Its destructor inherits most code from
7888 (remove_tmp_files): Deleted.
7889 (add_tmp_file): Simplified.
7891 2001-07-16 Werner LEMBERG <wl@gnu.org>
7893 Replace strdup() with strsave().
7895 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
7896 (set_papersize): Use strsave() and a_delete.
7897 (main): Use strsave().
7898 * src/preproc/html/pre-html.cc (make_message, createAllPages,
7899 removeAllPages): Use strsave() and a_delete.
7901 * configure.ac: Remove test for strdup.
7902 * Makefile.in: Comment updated.
7903 * configure: Regenerated.
7905 2001-07-15 Werner LEMBERG <wl@gnu.org>
7907 * win32-diffs: Updated.
7909 2001-07-14 Werner LEMBERG <wl@gnu.org>
7911 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
7912 removing the old one.
7913 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
7915 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
7917 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
7919 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
7921 Merge -xwidth into -width. Add -xwidth functionality to -column
7924 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
7926 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
7927 string immediately following a leading dot starts with a valid mdoc
7929 Add similar code to the -column branch.
7930 (doc-Bl-usage): Updated.
7931 * groff_mdoc.man: s/-xwidth/-width/.
7933 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
7935 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
7936 running into centered or non-formatted text.
7938 2001-07-11 Werner LEMBERG <wl@gnu.org>
7940 Introduce short and long prefixes to have the selection at run-time
7941 whether there is a 8+3 limit for names of temporary files.
7943 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
7944 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
7945 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
7947 (temp_init): New global structure to initialize above three
7949 (xtmptemplate): Use two parameters for long and short prefix.
7950 Simplify code use above three variables.
7951 (xtmpfile): Use long and short prefixes as parameters.
7952 * src/include/lib.h: Updated.
7954 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
7956 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
7957 (createAllPages, makeTempFiles): Updated.
7959 2001-07-09 Werner LEMBERG <wl@gnu.org>
7961 * REVISION: Increased to 3.
7963 Version 1.17.2 released
7964 =======================
7966 2001-07-07 Werner LEMBERG <wl@gnu.org>
7968 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
7971 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
7973 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
7975 * tmac/groff_mdoc.man: Fix synopsis.
7977 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
7979 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
7980 Restore `doc-Pa-font'.
7982 2001-07-04 Werner LEMBERG <wl@gnu.org>
7984 * src/utils/indxbib/dirnamemax.c: Moved to ...
7985 * src/libs/libgroff/maxfilename.cc: Here.
7986 s/dir_name_max/file_name_max/.
7988 * src/include/lib.h: Add file_name_max.
7989 * src/utils/indxbib/indxbib.cc: Updated.
7990 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
7993 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
7995 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
7997 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
7998 REGION_TEMPLATE): New macros.
7999 (createAllPages, makeTempFiles): Use them.
8000 Include `nonposix.h'.
8001 (html_system): New function.
8002 (createAllPages, createImage): Use it.
8005 * tmac/www.tmac: Fix typos.
8007 2001-07-03 Werner LEMBERG <wl@gnu.org>
8009 * tmac/www.tmac: Disable hyphenation in normal text only if output
8011 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
8012 * tmac/groff_mwww.man, NEWS: Updated.
8014 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
8016 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
8019 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
8021 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
8022 doc-display-ps-stack): Implement font and font size stack for
8025 2001-07-02 Werner LEMBERG <wl@gnu.org>
8027 * REVISION: Increased to 2.
8028 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
8030 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
8031 beginning of a line.
8032 * src/groff/grog/grog.sh: Ditto.
8034 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
8036 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
8039 2001-06-27 Werner LEMBERG <wl@gnu.org>
8041 Fix problems with preprocessor string for `man' program.
8043 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
8044 Updated/added copyright.
8045 Moved Emacs's local variable to identify nroff mode to the end of
8046 the file; add local variable if missing.
8048 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
8050 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
8051 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
8052 * configure: Regenerated.
8054 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
8056 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
8057 * configure: Regenerated.
8059 2001-06-24 Werner LEMBERG <wl@gnu.org>
8061 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
8063 * doc/pic.ms: Fix typos.
8065 Version 1.17.1 released
8066 =======================
8068 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
8070 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
8071 * configure: Updated.
8073 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
8075 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
8077 * src/roff/troff/dic.cc (blank_line): Add html tag.
8079 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
8081 * src/roff/troff/input.cc (do_suppress): Fix typo.
8083 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
8085 Added two new options (-D and -I) to specify image names and a
8086 subdirectory to place the images in.
8088 Change syntax from \\Ox to \\O[x].
8090 * src/devices/grohtml/post-html.cc (main): Add options.
8092 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
8093 Use `NULL' instead of `0' for null string pointers.
8094 (MAX_RETRIES): New macro.
8095 (lengthOfintToStr, intToStr, make_message): New functions.
8096 (makeFileName): Make function static.
8097 Implement -D and -I options.
8098 (checkImageDir): New function.
8099 (write_end_image, write_start_image): Use new syntax of \O.
8100 (createAllPages, removeAllPages): Implement -D and -I options. Use
8102 (createImage): Use make_message().
8103 (addps4html): Add guard for malloc().
8104 (usage, scanArguments): Updated.
8105 (makeTempFiles): Use mkstemp().
8106 (removeTempFiles): Use unlink().
8107 (findPrefix): Add guard for malloc().
8109 * src/roff/troff/input.cc (get_delim_file_name): New function to
8111 (do_suppress): Updated to parse new syntax.
8112 * src/devices/grohtml/grohtml.man: Updated.
8113 * tmac/www.tmac: Updated to new syntax.
8117 2001-06-15 Werner LEMBERG <wl@gnu.org>
8119 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
8121 * src/devices/grohtml/grohtml.man: Minor improvements.
8123 2001-06-14 Werner LEMBERG <wl@gnu.org>
8125 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
8127 2001-06-11 Werner LEMBERG <wl@gnu.org>
8129 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
8130 line to specify preprocessor options -- mandb 2.3.1 only recognizes
8132 * src/preproc/grn/grn.man: Add proper '\" string.
8134 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
8136 * test-groff: Don't use PATH but GROFF_BIN_PATH.
8138 2001-06-08 Werner LEMBERG <wl@gnu.org>
8140 Updated to autoconf 2.50.
8142 * configure.in: Renamed to...
8143 * configure.ac: This.
8144 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
8145 (GROFF_OS390): Updated.
8146 * configure: Regenerated.
8148 2001-05-18 Werner LEMBERG <wl@gnu.org>
8150 * src/roff/troff/env.c, src/roff/troff/env.h,
8151 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
8154 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
8156 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
8158 2001-05-16 Werner LEMBERG <wl@gnu.org>
8160 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
8161 less than or equal zero; set it to 1 then.
8162 * src/roff/troff/node.h (node::node): Initialize `last'.
8164 2001-05-08 Werner LEMBERG <wl@gnu.org>
8166 * tmac/an-old.tmac: Make predefined strings work in compatibility
8168 Add troff version guard.
8169 * tmac/doc.tmac: Simplify version guard.
8171 2001-05-07 Werner LEMBERG <wl@gnu.org>
8173 The .ns and .rs requests are now honoured not only in the top-level
8174 but in all diversions (similar to UNIX troff).
8176 This change is based on a patch from Tadziu Hoffmann
8177 <hoffmann@usm.uni-muenchen.de>.
8179 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
8180 (top_level_diversion): Remove `no_space_mode' member.
8181 * src/roff/troff/div.cc (diversion::diversion,
8182 top_level_diversion::top_level_diversion): Updated.
8183 (macro_diversion::output): Reset `no_space_mode'.
8184 (no_space, restore_spacing): Use `curdiv' unconditionally.
8185 (space_request, blank_line): Check `curdiv->no_space_mode'.
8186 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
8187 `curdiv' unconditionally.
8188 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8191 2001-05-06 Werner LEMBERG <wl@gnu.org>
8193 Added two new requests `de1' and `am1' which are similar to `de' and
8194 `am' with the difference that compatibility mode is saved on entry,
8195 switched off during macro execution, and restored on exit.
8197 * src/roff/troff/input.h: Added two new special characters
8198 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
8199 * src/roff/troff/input.cc (input_iterator): Added two member
8200 functions `save_compatible_flag' and `get_compatible_flag'.
8201 (input_stack): Ditto.
8202 (string_iterator): Ditto. Also add private member
8203 `saved_compatible_flag'.
8204 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
8205 (calling_mode): New enumeration.
8206 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
8207 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
8208 (define_macro, define_indirect_macro, append_macro, ignore): Use
8210 (define_nocomp_macro, append_nocomp_macro): New functions.
8211 (init_input_requests): Updated.
8212 (do_request): Rename local variable `saved_compatible_flag' to
8213 `old_compatible_flag'.
8214 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8216 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
8217 public and trap-invoked macros. As a consequence, the man macros
8218 work in compatibility mode also.
8220 2001-05-06 Solar Designer <solar@openwall.com>
8222 * Makefile.in: Use $(mandir).
8224 2001-05-06 Alexios Zavras <zvr@pobox.com>
8226 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
8228 2001-05-05 Werner LEMBERG <wl@gnu.org>
8230 Added `.ns' number register: Returns 1 in no-space mode (if in
8231 top-level diversion), 0 otherwise.
8233 * src/roff/troff/div.cc (no_space_mode_reg): New class.
8234 (init_div_requests): Updated.
8235 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8238 2001-05-04 Werner LEMBERG <wl@gnu.org>
8240 * src/roff/nroff/nroff.man: Improved documentation (especially
8243 2001-05-02 Werner LEMBERG <wl@gnu.org>
8245 Added `brp' request: This is \p as a request.
8247 * src/roff/troff/env.cc (environment::do_break): Add parameter
8249 (do_break_request): New function (was `break_request').
8250 (break_request): Calls `do_break_request'.
8251 (break_spread_request): New; calls `do_break_request'.
8252 (init_env_requests): Updated.
8253 * src/roff/troff/env.h: Updated.
8254 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8256 * REVISION: Increased to 1.
8257 * win32-diffs: Updated.
8259 2001-05-01 Werner LEMBERG <wl@gnu.org>
8261 * tmac/an-old.tmac: Fix minor compatibility mode issue.
8262 * tmac/troffrc-end: Make it really work in compatibility mode.
8264 2001-04-27 Werner LEMBERG <wl@gnu.org>
8266 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
8269 2001-04-22 Werner LEMBERG <wl@gnu.org>
8271 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
8272 latest versions from glibc CVS archive.
8274 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
8275 <c.zeelenberg@hccnet.nl>.
8277 2001-04-21 Werner LEMBERG <wl@gnu.org>
8279 * configure.in: Move check for mkstemp() to...
8280 * aclocal.m4 (GROFF_MKSTEMP): This new function.
8281 * configure: Regenerated.
8283 * src/include/groff-getopt.h: Don't use variable names in
8286 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
8287 * src/devices/grohtml/Makefile.sub,
8288 src/devices/grohtml/post-html.cc: Updated.
8290 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
8292 * configure.in: Add special check for mkstemp().
8293 * src/libs/libgroff/tmpfile.cc: Use it.
8294 * src/utils/indxbib/indxbib.cc: Ditto.
8295 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
8296 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
8299 2001-04-20 Bruce Lilly <blilly@erols.com>
8301 `Version_string' as C++ object was not visible to linker from C
8303 Add `const' to `Version_string'.
8305 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
8306 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
8307 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
8308 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
8309 (scanArguments), src/preproc/refer/refer.cc (main),
8310 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
8311 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
8312 (main), src/devices/grohtml/post-html.cc (main),
8313 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
8314 (main), src/utils/hpftodit/hpftodit.cc (main),
8315 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
8316 (main), src/utils/lkbib/lkbib.cc (main),
8317 src/utils/addftinfo/addftinfo.cc (main): Implement it.
8319 * src/roff/groff/pipeline.c: Add _UWIN.
8320 * src/include/nonposix.h: Ditto.
8322 2001-04-20 Werner LEMBERG <wl@gnu.org>
8324 * src/include/lib.h: Use HAVE_STRERROR.
8325 * src/roff/groff/pipeline.c: Ditto.
8326 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
8327 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
8328 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
8329 * win32-diffs: Updated.
8330 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
8332 2001-04-19 Werner LEMBERG <wl@gnu.org>
8334 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
8335 instead of hardwired `"troff"'.
8336 (char_buffer::read_file): Remove unused variables.
8337 (char_buffer::write_file_troff): Ditto.
8338 (char_buffer::write_file_html): Ditto.
8339 (generateImages): Ditto.
8341 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
8343 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
8345 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
8346 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
8347 index_search_item::search1): Ditto.
8348 * src/roff/troff/node.h (width_list): Reorder members.
8349 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
8350 (lookup_warning): Ditto.
8351 (prepend_string): Commented out.
8352 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
8353 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
8354 * src/preproc/tbl/main.cc (process_format): Ditto.
8355 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
8357 * src/preproc/pic/pic.cc: Updated.
8358 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
8359 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
8360 * src/preproc/refer/command.cc (execute_command): Ditto.
8361 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
8362 * src/preproc/refer/token.cc (lookup_token): Ditto.
8363 * src/preproc/soelim/soelim.cc: Ditto.
8364 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
8365 (isHexDigit): Commented out.
8366 (pushBackBuffer::isString): Remove unused variable.
8367 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
8369 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
8370 resource_manager::read_resource_arg, read_one_of, parse_extensions):
8372 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
8373 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
8374 lookup_paper_size): Ditto.
8375 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
8376 (text_glob, element_list): Reorder members.
8377 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
8379 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
8380 return value to `void'.
8381 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
8383 * src/devices/grohtml/html.h (simple_output::check_newline,
8384 simple_output::space_or_newline, simple_output::enable_newlines):
8386 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
8388 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
8389 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
8390 output_ligatures, output_charset, read_map): Ditto.
8391 * src/utils/lookbib/lookbib.cc (main): Ditto.
8392 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
8393 (do_file): Fix typo (`=' -> `==').
8394 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
8395 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
8397 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
8399 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
8400 Fix usage of GROFF_BIN_PATH.
8401 * src/roff/nroff/nroff.man: Updated.
8403 2001-04-18 Werner LEMBERG <wl@gnu.org>
8405 * NEWS: Fixing typos.
8408 Version 1.17 released
8409 =====================
8411 2001-04-17 Werner LEMBERG <wl@gnu.org>
8413 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
8414 directory, not in $(srcdir).
8416 2001-04-16 Werner LEMBERG <wl@gnu.org>
8418 * doc/groff.texinfo: More info on conditionals.
8420 2001-04-15 Werner LEMBERG <wl@gnu.org>
8422 * doc/groff.texinfo: Added some info about groff internals.
8424 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
8425 about missing special character only if the name is non-null.
8427 2001-04-14 Werner LEMBERG <wl@gnu.org>
8429 Removing the grohtml-old device driver which is now obsolete.
8431 * src/devices/grohtml-old/*: Removed.
8432 * font/devhtml-old/*: Removed.
8433 * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
8435 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
8436 * test-groff (PATH): Updated.
8437 * tmac/Makefile.sub (NORMALFILES): Updated.
8438 * tmac/an-old.tmac: Remove special code for html-old device.
8439 Replace `html-or-html-old' register with `an-html'.
8440 * tmac/eqnrc: Updated.
8441 * tmac/html-old.tmac: Removed.
8442 * tmac/troffrc, tmac/troffrc-end: Updated.
8443 * tmac/www.tmac: Remove special code for html-old device.
8444 Replace `html-or-html-old' register with `www-html'.
8446 * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
8447 src/libs/libgroff/htmlindicate.cc (graphic_end),
8448 include/htmlindicate.h, src/preproc/grn/*.cc,
8449 src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
8450 single argument for consistency with rest of source code.
8452 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
8454 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
8456 * src/roff/troff/troff.man: Fixing typos.
8458 2001-04-13 Werner LEMBERG <wl@gnu.org>
8460 * doc/pic.ms: Fixing many font switches.
8461 * doc/groff.texinfo: Fixes, additions.
8462 * MORE.STUFF: Updated.
8464 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
8466 * src/devices/grohtml/grohtml.man: Updated manual page regarding
8468 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
8470 (removeTempFiles): New function to tidy up temporary files.
8471 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
8472 Many fixes to do with the new inline suppress node and image regions
8474 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
8475 (generate_img_src): New function.
8476 (html_printer::do_auto_image): Utilizes it.
8477 (do_heading, do_title): Include inline images within their contents.
8478 (html_printer::begin_page): Tidied up comments that are issued to
8479 the html output file.
8480 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
8482 (text_glob::is_br): New method used by do_heading.
8483 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
8484 equivalent diversion.
8485 * src/include/html-strings.h: Altered image tags to reflect the
8487 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
8489 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
8490 it is already inside a pic image. Only emit tags if the argument
8491 `-Tps:html' is present.
8492 * src/preproc/tbl/main.cc: Changes to reflect additional
8493 `html_end_suppress' parameter.
8494 * src/roff/troff/env.cc: Only emit eol tag if a node has been
8495 emitted since the last eol tag was written.
8496 * src/roff/troff/env.h: New boolean `emitted_node'.
8497 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
8498 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
8499 * src/roff/troff/node.cc (check_charinfo): New method.
8500 (troff_output_file::determine_line_limits): Alterations to limit
8502 * tmac/www.tmac: Changes to reflect new suppress nodes.
8504 2001-04-12 Bruno Haible <haible@clisp.cons.org>
8506 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
8507 Escape the html_glyph in the buffer.
8508 (str_translate_to_html): Output the unescaped escaped_char.
8509 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
8510 `frame=void', not `frame=none'. Add `border=0'.
8512 2001-04-12 Werner LEMBERG <wl@gnu.org>
8514 * PROBLEMS: Add some words on how to avoid wrapper macros.
8516 2001-04-11 Blake McBride <blake@florida-software.com>
8518 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
8520 2001-04-11 Werner LEMBERG <wl@gnu.org>
8522 * font/devlbp/Makefile.sub (CLEANADD): Set it.
8523 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
8524 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
8525 * Makefile.sub (DISTCLEANFILES): Here.
8527 * libs/libgroff/new.cc: Include `nonposix.h'.
8528 * win32-diffs: Updated.
8530 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
8532 Added skeleton macro for defunct macros.
8534 Updated documentation.
8536 When inside displays, an empty input line warning should be
8537 suppressed. If another macro call is put inside a display,
8538 all subsequent empty lines found in that display caused a
8539 warning to be emitted.
8541 * tmac/doc.tmac (doc-defunct-macro): New macro.
8542 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
8543 (doc-restore-global-vars): Fixed typo.
8544 (doc-empty-line): Check the `doc-display-depth' register to
8545 determine whether we are inside display or not.
8547 * tmac/doc-common: Removed `Or' and `Sf' registers.
8548 Moved obsolete `Ds' macro to doc.tmac.
8550 * tmac/groff_mdoc.man: Bump document date.
8551 Document `.Vt' under ``Variable Types''.
8552 Removed documentation for obsolete `.Or' macro.
8554 2001-04-10 Werner LEMBERG <wl@gnu.org>
8557 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
8559 2001-04-10 Bruno Haible <haible@clisp.cons.org>
8561 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
8562 (usage): Add stream argument. Don't exit.
8563 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
8564 Write --version output to stdout, not stderr.
8565 (usage): Add stream argument. Don't exit.
8566 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
8567 (usage): Add stream argument. Don't exit.
8568 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
8570 (usage): Add stream argument. Don't exit.
8571 (main): Write --help output to stdout, not stderr.
8572 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
8573 (usage): Add stream argument. Don't exit.
8574 * src/devices/grops/ps.cc (main): Accept --help and --version.
8575 (usage): Add stream argument. Don't exit.
8576 * src/devices/grotty/tty.cc (main): Accept --help and --version.
8577 (usage): Add stream argument. Don't exit.
8578 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
8579 (main): Accept --help and --version.
8580 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
8581 (main): Accept --help and --version.
8582 * src/preproc/html/pre-html.cc (usage): Add stream argument.
8583 (scanArguments): Accept --help and --version.
8584 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
8585 (main): Accept --help and --version.
8586 * src/preproc/refer/refer.cc (main): Accept --help and --version.
8587 (usage): Add stream argument. Don't exit.
8588 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
8590 (main): Accept --help and --version.
8591 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
8592 (main): Accept --help and --version.
8593 * src/roff/groff/groff.cc (main): Accept --help and --version.
8594 (synopsis): Add stream argument.
8595 (help): Write --help output to stdout, not stderr.
8596 (usage): Add stream argument. Don't exit.
8597 * src/roff/grog/grog.pl: Accept --help and --version.
8599 * src/roff/grog/grog.sh: Accept --help and --version.
8600 * src/roff/nroff/nroff.sh: Accept --help and --version.
8601 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
8602 (usage): Add stream argument. Don't exit.
8603 (main): Accept --help and --version.
8604 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
8605 (usage): New function with stream argument, doesn't exit.
8606 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
8607 (usage): New function with stream argument, doesn't exit.
8608 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
8609 (usage): Add stream argument. Don't exit.
8610 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
8611 (main): Accept --help and --version.
8612 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
8614 (main): Accept --help and --version.
8615 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
8616 (main): Accept --help and --version.
8617 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
8618 (usage): Add stream argument. Don't exit.
8620 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
8622 Fix indentation in SYNOPSIS.
8624 Updated to include changes of latest BSD mdoc version (basically,
8625 the only change is that `.Fn' and `.Fc' put a final semicolon after
8626 a function declaration in the SYNOPSIS section).
8628 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
8629 (doc-in-synopsis-section): New variable. Updated all related
8631 (doc-indent-synopsis-active): New register.
8632 (Nd, Fn, Fo): Use it.
8633 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
8634 `.Cd' with long argument line produces indented wrapped lines.
8635 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
8636 undesirable line break to be output.
8637 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
8639 (Fn, Fc): Add final `;' to output.
8640 (doc-save-global-vars, doc-restore-global-vars): Updated.
8641 * tmac/doc-common: Remove `Ex' register.
8643 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
8646 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
8648 * tmac/doc.tmac (Cd): Simplify code.
8649 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
8651 2001-04-06 Werner LEMBERG <wl@gnu.org>
8653 Implement continuous underlining for nroff mode. To do that, a new
8654 request in the ditroff language has been added: `x u N' (N is 0
8657 \X and \Y are now transparent to end-of-sentence recognition.
8659 * src/include/printer.h (printer): Add `type' parameter to `special'
8661 * src/libs/libdriver/printer.cc (printer::special): Updated.
8662 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
8664 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
8665 specials of type `p'.
8666 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
8667 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
8668 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
8669 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
8670 (glyph::order): New method.
8671 (tty_printer::add_char): Use it.
8672 (tty_printer::special): New method.
8673 (tty_printer::end_page): Implement it.
8675 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
8676 * src/roff/troff/node.cc (special_node::special_node): Add parameter
8677 to set `no_init_string'.
8678 (special_node::tprint_start): Use it.
8679 (special_node::same, special_node::copy): Updated.
8680 (special_node::ends_sentence): New method.
8681 (troff_output_file::start_special): Add parameter to include
8682 inititialization of special conditionally.
8684 * src/roff/troff/env.h (environment): New member `underline_spaces'.
8685 * src/roff/troff/env.cc (do_underline_special): New function.
8686 (environment::set_font): Use it.
8687 (do_underline): Use it. This was `underline()'.
8688 (underline): Call `do_underline()'.
8689 (continuous_underline): New function which calls `do_underline()'.
8690 (environment::newline): Use `do_underline_special()'.
8691 (init_env_requests): Updated.
8693 * NEWS, man/troff_out.man: Updated.
8695 2001-04-06 Bruno Haible <haible@clisp.cons.org>
8697 * font/devutf8/R.proto: Fix code of 'shc'.
8699 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
8701 Many fixes. Diag lists can now be nested also; additionally,
8702 `-compact' and `-offset' are supported.
8704 * tmac/doc.tmac (doc-have-indent): Replaced with ...
8705 (doc-list-have-indent-stackXXX): A new register stack.
8706 (doc-have-diag-list): Removed.
8707 (Bl): Use `doc-list-have-indent-stackXXX'.
8709 (doc-diag-list): Use `doc-compact-list-stackXXX'.
8710 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
8711 (doc-set-vertical-and-indent): Ditto.
8712 (doc-next-list-depth): Removed.
8713 (doc-increment-list-stack): Updated.
8714 (doc-decrement-list-stack): Use `doc-list-depth' instead of
8715 `doc-next-list-depth'.
8716 (doc-end-list, doc-end-column-list): Don't use
8717 `doc-increment-list-stack'.
8718 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
8719 (doc-save-global-vars, doc-restore-global-vars): Updated.
8720 * tmac/doc-common: Updated.
8721 * tmac/groff_mdoc.man: Updated.
8724 2001-04-02 Werner LEMBERG <wl@gnu.org>
8726 * src/devices/grotty/grotty.man: Fix grammatical error.
8728 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
8730 Remove .Ld from mdoc package; replace it with special handling of
8733 * tmac/doc-common: Remove `Ld' register.
8734 Uncomment `doc-volume-ds-*' strings.
8735 Remove `doc-operating-system-default'.
8737 * tmac/doc-syms (Ld): Removed.
8738 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
8742 * tmac/groff_mdoc.man: Many fixes and updates.
8744 2001-03-29 Werner LEMBERG <wl@gnu.org>
8746 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
8747 Bond <tkb@tkb.mpl.com>.
8748 * tmac/www.tmac: Save compatibility mode.
8750 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
8752 * tmac/groff_mdoc.man: Many fixes.
8754 2001-03-28 Werner LEMBERG <wl@gnu.org>
8756 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
8759 2001-03-27 Werner LEMBERG <wl@gnu.org>
8761 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
8762 diversion. This fixes overlong tags.
8764 2001-03-26 Werner LEMBERG <wl@gnu.org>
8766 * doc/groff.texinfo: Fixed and improved documentation of fonts.
8767 * tmac/doc-syms: Fix error messages.
8768 * tmac/an-old.tmac: Remove incorrect double backslashes.
8770 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
8772 * tmac/Makefile.sub: Strip mdoc.local also
8773 * tmac/strip.sed: Fixed.
8775 2001-03-24 Werner LEMBERG <wl@gnu.org>
8777 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
8778 selecting the font size.
8779 * tmac/groff_mdoc.man, NEWS: Document it.
8781 2001-03-23 Werner LEMBERG <wl@gnu.org>
8783 * src/roff/troff/div.cc (save_vertical_space): Add default argument
8785 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
8786 argument to restore previous font family.
8787 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
8789 * doc/groff.texinfo: More fixes and additions (mainly for font
8790 manipulating commands).
8792 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
8793 * tmac/groff_mdoc.man: This. The quick reference has been removed.
8794 * tmac/Makefile.sub, NEWS: Updated.
8796 2001-03-23 Werner LEMBERG <wl@gnu.org>
8798 Replaced mdoc implementation. The new version is `state of the
8799 art', using almost all new features of groff 1.17 -- it won't run
8800 with older versions.
8802 * tmac/doc.tmac: Completely rewritten.
8803 * tmac/doc-common: Ditto.
8804 * tmac/doc-nroff: Ditto.
8805 * tmac/doc-ditroff: Ditto.
8806 * tmac/doc-syms: Ditto.
8807 * tmac/mdoc.local: New file.
8808 * tmac/groff_mdoc.samples.man: Replaced with ...
8809 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
8810 * tmac/strip.sed: Updated.
8811 * tmac/Makefile.sub: Updated.
8814 * tmac/groff_man.man: Add `man.local' to the FILES section.
8816 2001-03-22 Werner LEMBERG <wl@gnu.org>
8818 * doc/groff.texinfo: Added many @noindent.
8819 Replaced @end_Example -> @endExample.
8820 Added info whether registers are r/o.
8821 Many other additions and fixes.
8823 2001-03-21 Werner LEMBERG <wl@gnu.org>
8825 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
8826 in makeinfo of texinfo 4.0) to be used in @Def* macros.
8827 Improved @Def* macros: Now the exact syntax of request, register,
8828 and escapes is shown.
8829 Added macros for parentheses and brackets to be used in @Def*.
8830 Many fixes and improvements of the documentation.
8832 2001-03-20 Werner LEMBERG <wl@gnu.org>
8834 * doc/groff.texinfo: Added new index: `st' (for strings).
8835 Added macros @Defstr(x).
8836 Added macro @Example (adding @group).
8837 Other minor improvements.
8839 2001-03-19 Werner LEMBERG <wl@gnu.org>
8841 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
8842 `rq' for requests. `fn' is no longer used.
8843 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
8846 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
8847 number with name of man page.
8849 2001-03-19 Larry Kollar <kollar@alltel.net>
8851 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
8854 2001-03-19 Werner LEMBERG <wl@gnu.org>
8856 * man/groff_font.man: Document `prepro', `postpro', and `print'.
8857 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
8858 * src/devices/grohtml/grohtml.man: Fixing typos.
8860 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
8862 * tmac/s.tmac (@IP): Pass `.ip' html tag.
8863 * tmac/groff_mwww.man: Remove .LINE macro
8864 * tmac/www.tmac (LINE): Add `.ti'.
8866 * src/devices/grohtml/post-html.cc (html_printer): New member
8868 (html_printer::emit_raw): Use it.
8869 (html_printer::do_linelength): Ditto.
8870 (html_printer::do_pageoffset): Ditto.
8871 (html_printer::do_indentation): Ditto.
8872 (html_printer::do_tempindent): Ditto.
8873 (html_printer::do_break): Ditto.
8874 (html_printer::begin_page): Ditto.
8875 (html_printer::do_indentedparagraph): New function.
8876 (html_printer::troff_tag): Handle `.ip'.
8877 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
8878 Add `<td width=...>' handling.
8879 (html_text::do_table): Add parameter.
8880 (html_text::do_indent): Updated.
8881 * src/devices/groohtml/html-text.h: Updated.
8883 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
8885 Introduced simple html tables to implement indentation.
8887 * src/devices/grohtml/html.h (word, word_list): New structures.
8888 (simple_output): Use it.
8889 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
8890 (html_printer): Improve indentation handling.
8891 (html_printer::emit_raw): Set `in_table' element. Handle
8893 (html_printer::write_header): Move conditional downwards.
8894 Don't allow whitespace in tags.
8895 (html_printer::do_linelength): Handle line length and indentation
8897 (html_printer::do_pageoffset): Handle indentation conditionally.
8898 (html_printer::do_indentation): Ditto.
8899 (html_printer::do_tempindent): New function member.
8900 (html_printer::do_fill): Take care of indentation.
8901 (html_printer::do_flush): Finish table.
8902 (html_printer::do_links): Ditto.
8903 (html_printer::do_break): New function for handling `.br' and `.ti'.
8904 (html_printer::troff_tag): Use it.
8906 (html_printer::flush_globs): Fix.
8907 (html_printer::flush_page): Finish table.
8908 (html_printer::html_printer): Fix error message. Set up
8910 (html_printer::add_to_sbuf): Remove special handling of character
8912 (to_unicode): Remove `stop()'.
8913 (html_printer::write_title): Cleanup.
8914 (html_printer::begin_page): Use `put_string()'. Handle indentation.
8915 (html_printer::~html_printer): Flush text and end the line.
8917 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
8918 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
8920 (html_text::start_tag): Disable newlines.
8921 (html_text::table_is_void): New function.
8922 (html_text::issue_table_begin): Ditto.
8923 (html_text::issue_table_end): Ditto.
8924 (html_text::push_para): Better table handling.
8925 (html_text::do_indent): New function.
8926 (html_text::do_table): Ditto.
8927 (html_text::done_table): Ditto.
8928 (html_text::do_tt): Handle PRE_TAG.
8929 (html_text::is_in_table): New function.
8930 (html_text::check_emit_text): Handle tables.
8931 (html_text::do_emittext): Use `nl()'.
8932 (html_text::do_para): Handle table.
8933 (html_text::remove_def): New function.
8934 * src/devices/grohtml/output.cc (word, word_list): Implement
8936 (simple_output::end_line): Flush last word.
8937 (simple_output::simple_comment): Ditto.
8938 (simple_output::begin_comment): Recoded.
8939 (simple_output::end_comment): Ditto.
8940 (simple_output::comment_arg): Removed.
8941 (simple_output::check_newline): Improve test and flush last word.
8942 (simple_output::space_or_newline): Improved.
8943 (simple_output::write_newline): Replaced with...
8944 (simple_output::nl): This.
8945 (simple_output::put_raw_char): Flush last word.
8946 (simple_output::check_space): Removed.
8947 (simple_output::put_translated_string): Ditto.
8948 (simple_output::put_string): Simplified.
8949 (simple_output::put_number): Updated.
8950 (simple_output::put_float): Ditto.
8951 (simple_output::put_symbol): Removed.
8952 (simple_output::enable_newlines): Add `check_newline()'.
8953 (simple_output::flush_last_word): New function.
8955 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
8956 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
8958 * tmac/s.tmac (@PP, @IP): Add html conditional code.
8959 * tmac/an-old.tmac (TP): Ditto.
8961 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
8963 * mdate.sh: Make it POSIX compliant.
8965 2001-03-09 Werner LEMBERG <wl@gnu.org>
8967 Added the `return' request to end a macro immediately. It simply
8968 pops iterators from the input stack until a macro iterator is found.
8970 * src/roff/troff/input.cc (input_iterator::is_macro,
8971 macro_iterator::is_macro): New member.
8972 (input_return_boundary): New class to signal an immediate return
8974 (input_stack::add_return_boundary, input_stack::is_return_boundary):
8976 (input_stack::clear): Use it.
8977 (input_stack::pop_macro): New function.
8978 (while_request): Use `is_return_boundary()'.
8979 (return_macro_request): New function.
8980 (init_input_requests): Use it.
8982 * src/roff/troff/TODO: Updated.
8983 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8985 2001-03-08 Werner LEMBERG <wl@gnu.org>
8987 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
8990 2001-03-07 Werner LEMBERG <wl@gnu.org>
8992 Make `\B' more rigid.
8994 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
8996 (get_number_rigidly): New function.
8997 * src/roff/troff/input.cc (do_expr_test): Use it.
8998 * src/roff/troff/token.h: Updated.
9000 * src/roff/troff/request.h: Fix typo (init_html_request ->
9001 init_markup_request).
9003 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
9005 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
9006 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
9007 are now `.begin', `.end', `.image'.
9009 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
9010 (html_printer::add_to_sbuf): Changing type of `code' parameter.
9011 Use add_char_to_sbuf().
9012 (to_unicode): New function.
9013 (char_translate_to_html): Changing type of `ch' parameter.
9015 (html_printer::~html_printer): Comment out doctype string.
9016 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
9017 instead of `.html-end'.
9018 (write_start_image): Use `.begin' and `.image' instead of
9019 `.html-begin' and `.html-image'.
9020 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
9021 (html_begin): Renamed to ...
9023 (html_end): Renamed to ...
9025 (html_image): Renamed to ...
9027 (init_html_requests): Renamed to ...
9028 (init_markup_requests): This.
9029 * tmac/www.tmac: Updated.
9031 2001-02-28 Bram <bram@avontuur.org>
9033 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
9036 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
9038 * doc/meref.me: Fixing some typos.
9040 2001-02-16 Werner LEMBERG <wl@gnu.org>
9042 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
9043 method. Return `HYPHEN_MIDDLE' if it was `\:'.
9044 * src/roff/troff/node.h: Updated.
9046 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
9048 * tmac/groff_tmac.man: Fix typo.
9050 2001-02-16 Werner LEMBERG <wl@gnu.org>
9052 Fixing a bug which prevented proper end-of-sentence recognition
9053 between an `unformatted' box and the following text. As a
9054 consequence, vertical line distances are no longer preserved in
9055 boxes after a call to `.unformat' -- because boxes aren't
9056 line-oriented (contrary to diversions), this doesn't make sense
9059 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
9061 (vertical_size_node::set_unformat_flag): New method.
9062 * src/roff/troff/node.hh: Updated.
9063 * src/roff/troff/input.cc (word_space_node::reread,
9064 hmotion_node::reread): Reset `unformat' flag after usage.
9065 (unformat_macro): Append only if `set_unformat_flag()' returns
9067 * src/roff/troff/troff.man: Updated.
9069 2001-02-15 Werner LEMBERG <wl@gnu.org>
9071 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
9072 documentation of `asciify' and `unformat' requests.
9074 2001-02-13 Werner LEMBERG <wl@gnu.org>
9076 Redesigned the `unformat' request. It is no longer connected with
9077 `asciify' but rather uses new `reread()' methods if the `unformat'
9078 flag is set. Additionally, the handling of space characters after
9079 unformatting has been fixed so that they retain their width.
9081 * src/roff/troff/node.h (width_list): New structure to store
9082 original widths of spaces.
9083 (node): Added `unformat' member.
9084 Replaced `num_spaces' variable with `orig_width' list.
9085 * src/roff/troff/node.cc (*node::asciify,
9086 asciify_reverse_node_list): Removed `unformat_only' flag and related
9088 (word_space_node::asciify, word_space_node::word_space_node): Use
9090 (word_space_node::~word_space_node): New destructor.
9091 (word_space_node::copy): Updated to handle `orig_width'.
9092 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
9093 (*node::merge_space): Update `orig_width' list if necessary.
9094 (*node::set_unformat_flag): New methods to set the `unformat' flag.
9095 * src/roff/troff/enc.cc (environment::space_newline): Use
9097 (environment::space): Added method to handle space width and
9098 sentence space width as parameters. Use `width_list'.
9099 (environment::make_tab_node): Updated.
9100 * src/roff/troff/env.h: Updated.
9101 * src/roff/troff/input.cc (word_space_node::reread,
9102 unbreakable_space_node::reread, hmotion_node::reread): New methods
9103 to handle nodes specially if `unformat' flag is set.
9104 (do_asciify_macro): Renamed back to ...
9105 (asciify_macro): This.
9106 (unformat_macro): New implementation to simply set the `unformat'
9109 * MORE.STUFF: Added more info about deroff.
9111 2001-02-08 Werner LEMBERG <wl@gnu.org>
9113 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9114 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
9115 and `add_self()' methods to avoid hyphenation. For example, the
9116 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
9117 soft hyphen after `foo'. Now the hyphen list is correctly
9118 `foo<ignore><ignore>bar'.
9120 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
9122 * tmac/groff_tmac.man: Fix `BIR' macro.
9124 2001-02-04 Werner LEMBERG <wl@gnu.org>
9126 A new escape sequence `\:', inserting a zero-width break point.
9128 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
9129 * src/roff/troff/input.cc (get_copy, token::next, asciify):
9131 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
9133 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
9134 and `asciify()' methods.
9135 * src/roff/troff/node.cc (space_node::space_node): Updated.
9136 (space_node::asciify): Handle `was_escape_colon'.
9137 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9139 Handle `\~' similar to other comparable requests.
9141 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
9143 (token::next): Move creation of an unbreakable_space_node to...
9144 (token::add_to_node_list): Here.
9146 Fix a bug which sometimes prevented hyphenation of words connected
9147 with `\~' or `\ ' (and other escape sequences handled as
9148 TOKEN_NODE). This also fixes a hyphenation problem with boxes
9149 (after a call to the `unformat' request).
9151 * src/roff/troff/env.h (environment::possibly_break_line,
9152 environment::hyphenate_line): Introducing `start_here' parameter.
9153 * src/roff/troff/env.cc (environment::space_newline,
9154 environment::space): Use it.
9155 (environment::possibly_break_line, environment::hyphenate_line):
9157 * src/roff/troff/input.cc (process_input_stack): Use it.
9158 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9159 space_char_hmotion_node, overstrike_node): Add
9160 `get_hyphenation_type()' method.
9161 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
9162 if `unformat_only' is active.
9164 2001-01-30 Werner LEMBERG <wl@gnu.org>
9166 Implemented new read-only number register `.linetabs' which
9167 returns 1 if in line-tabs mode, 0 otherwise.
9169 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
9170 * src/roff/troff/env.cc (get_line_tabs): New function.
9171 (init_env_requests): Use it.
9172 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9174 * VERSION, REVISION: Changing to 1.17.0.
9176 2001-01-28 Werner LEMBERG <wl@gnu.org>
9178 Fixed a bug which prevented hyphenation of words which are finished
9181 * src/roff/troff/token.h (token): Add enum type
9182 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
9183 * src/roff/troff/input.cc (token::next, token::description,
9184 get_line_arg, token::add_to_node_list, token::process): Use it.
9186 2001-01-27 Werner LEMBERG <wl@gnu.org>
9188 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
9189 * src/roff/troff/div.cc (do_divert): Use it.
9191 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
9193 2001-01-25 Werner LEMBERG <wl@gnu.org>
9195 Adding the `linetabs' request. If set, tab distances are not
9196 computed relative to the input line but relative to the output line.
9198 * src/roff/troff/env.h (environment): New member `line_tabs'.
9199 * src/roff/troff/env.cc (line_tabs_request): Implement request.
9200 (environment::environment, environment::copy): Updated.
9201 (environment::distance_to_next_tab): Use `line_tabs'.
9202 (init_env_requests): Register request.
9203 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
9206 2001-01-24 Werner LEMBERG <wl@gnu.org>
9208 Introducing a new read-only register `.int' which is set to a
9209 positive value if the last output line is interrupted (i.e., if it
9212 * src/roff/troff/env.cc (init_env_requests): Add it.
9213 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9215 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
9217 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
9218 * src/preproc/html/pre-html.cc (findPrefix): New function which
9219 generates the troff executable name via the system prefix.
9220 * src/preproc/eqn/main.cc: Modified warning message.
9222 2001-01-23 Werner LEMBERG <wl@gnu.org>
9224 troff's `box' and `boxa' requests didn't preserve temporary
9227 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
9228 `saved_target_text_length' members.
9229 * src/roff/troff/div.cc (do_divert): Use them.
9231 Tabs (but not yet leaders and fields) are now handled correctly by
9234 * node.h (hmotion_node): Add field `was_tab'.
9235 * env.cc (environment::make_tab_node): Set it.
9236 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
9238 Added new request `unformat' which will, contrary to `asciify',
9239 preserve font information after unformatting (i.e., only nodes
9240 dealing with horizontal space are converted back to input
9243 * input.cc (asciify_macro): Renamed to ...
9244 (do_asciify_macro): this, having a new parameter `unformat_only'.
9245 (asciify_macro, unformat_macro): New; using do_asciify_macro.
9246 (init_input_requests): Added `unformat'.
9247 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
9248 parameter to control asciification process.
9249 * node.h (*_node::asciify): Ditto.
9250 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9252 2001-01-20 Werner LEMBERG <wl@gnu.org>
9254 * doc/groff.texinfo: Minor improvement of `.in' documentation.
9256 2001-01-18 Werner LEMBERG <wl@gnu.org>
9258 * tmac/ps.tmac: Remove call of psold.tmac.
9259 * tmac/psold.tmac: Comment updated.
9260 * tmac/psnew.tmac: Removed since no longer needed.
9261 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
9263 * font/devutf8/R.proto: Adding `shc' glyph.
9264 * font/devutf8/NOTES: Updated.
9266 * test-groff: Updated.
9268 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
9270 First cut of the new html device driver. Changes to pre-html and
9271 the new grohtml are too numerous to be documented here.
9273 Stuff related to `html' has been renamed to `html-old' and `html2'
9274 stuff has been renamed to `html' (including directories). The new
9275 html device driver is therefore invoked as `-Thtml'.
9277 Added new `\O' escape to suppress output (needed by html driver).
9279 Added functions and code to pass info about input-level commands
9280 (`.in', `.fl', etc.) to html driver.
9282 Three new functions (.html-begin, .html-end, and .html-image) for
9283 better html handling: `html-begin' will execute the remaining line
9284 if at the outermost nesting level, increasing an internal counter.
9285 `html-end' does the same but decreases the internal counter.
9286 `html_image' puts its arguments into a special node (suppress_node)
9287 to define an image region.
9289 The `output' request has been removed.
9291 * tmac/html-tags.tmac: Removed.
9292 * tmac/arkup.tmac: Updated and renamed to ...
9293 * tmac/www.tmac: New file.
9294 * tmac/markup.tmac Updated and renamed to ...
9295 * tmac/mwww.tmac: New file.
9296 * tmac/Makefile.sub: Updated.
9297 * tmac/an-old.tmac: Updated.
9298 * tmac/eqnrc: Updated.
9299 * tmac/groff_man.man
9300 * tmac/groff_markup.man: Updated and renamed to ...
9301 * tmac/groff_mwww.man: New file.
9302 * tmac/groff_tmac.man: Updated.
9303 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
9304 * tmac/html.tmac: Updated and renamed from html2.tmac.
9305 * tmac/pspic.tmac: Updated html support.
9306 * tmac/s.tmac: Added html output support.
9307 * tmac/troffrc, tmac/troffrc-end: Updated.
9309 * Makefile.in, doc/Makefile: Updated.
9310 * doc/groff.texinfo: Added info about new `\O' escape.
9311 * doc/homepage.ms: Use `MAILTO' macro.
9313 * font/devhtml/DESC.proto: Add `C' font.
9314 * font/devhtml/Makefile.sub: Updated.
9315 * font/devhtml/R.proto: Minor fixes.
9316 * font/devhtml-old/Makefile.sub: Updated.
9318 * src/devices/grohtml-old/Makefile.sub: Updated.
9320 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
9322 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
9323 graphic_start): Add `inline' parameter. Update.
9324 (html_end_suppress, graphic_end): Update.
9326 * src/include/html-strings.h: New file.
9327 * src/include/htmlindicate.h: Comments updated.
9328 * src/include/printer.h: Updated.
9330 * src/preproc/eqn/main.cc (do_file, main): Updated.
9331 * src/preproc/pic/troff.cc (troff_output::start_picture,
9332 troff_output::finish_picture): Updated.
9333 * src/preproc/tbl/main.cc (process_input_file): Updated.
9335 * src/roff/groff/groff.cc (main): Updated.
9336 Pass device arguments to predrivers also.
9337 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
9338 * src/roff/troff/env.h (environment): Updated.
9339 New elements `need_eol' and `ignore_next_eol' (for html output).
9340 * src/roff/troff/env.cc (environment::environment): Add initializers
9341 for `need_eol' and `ignore_next_eol'.
9342 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
9344 (point_size, fill, no_fill, center, right_justify, line_length,
9345 indent, temporary_indent, break_request, handle_tab): Use
9347 (set_tabs): Use `add_html_tag_tabs()'.
9348 (environment::add_html_tag): Updated.
9349 (environment::do_break): Updated.
9350 * src/roff/troff/div.cc (space_request, flush_output): Use
9351 `environment::add_html_tag()'.
9352 * src/roff/troff/input.cc: Updated.
9353 New variable `html_level' to indicate nested `html-begin' requests.
9354 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
9355 (non_interpreted_char_node, token_node, non_interpreted_node): Add
9356 `force_tprint()' method.
9357 (token::next): Handle `\O'.
9358 (do_suppress): Implement it.
9359 (html_begin, html_end, html_image): New functions.
9360 (init_output_requests): Renamed to ...
9361 (init_html_requests): this.
9363 (macro::append_str, macro::append_unsigned, macro::append_int): New
9365 New variable `output_low_mark_miny' to limit minimal value of y.
9366 (reset_output_registers): Use it.
9367 (output_request): Removed.
9368 (get_output_registers): New function.
9369 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
9370 (*_node): Added `force_tprint()' if necessary.
9371 (special_node): New elements `tf' and `get_tfont()'.
9372 (suppress_node): New class.
9373 * src/roff/troff/node.cc:
9374 New global variables `image_no' and `suppress_start_page'.
9375 (real_output_file): New method `is_on()'.
9376 (troff_output_file): New method `start_special(tfont)'.
9377 (troff_output_file::really_print_line): Use `tprint' conditionally.
9378 (real_output_file::print_line): Updated.
9379 (real_output_file::on): Updated.
9380 (*_node): Added `force_tprint()'.
9381 (special_node::special_node): Initializer updated.
9382 (special_node::same, special_node::copy, special_node::tprint_start):
9384 (get_reg_int, get_reg_str): New functions.
9385 (suppress_node::*): New methods.
9386 New global variables last_position, last_image_filename;
9387 (min): New inline function.
9388 * src/roff/troff/reg.h, src/roff/troff/request.h,
9389 src/roff/troff/troff.h: Updated.
9391 2001-01-13 Werner LEMBERG <wl@gnu.org>
9393 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
9394 documentation of `asciify' request.
9396 2001-01-12 Werner LEMBERG <wl@gnu.org>
9398 * src/roff/troff/input.cc: Move definition of special characters
9399 like `ESCAPE_TILDE' to ...
9400 * src/roff/troff/input.h: New file.
9401 * src/roff/troff/Makefile.sub (HDRS): Add it.
9403 Extending the .asciify request to `unformat' space characters also.
9405 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
9406 to count input space characters.
9407 Update constructors to take care of it.
9408 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
9409 `ESCAPE_SPACE' instead of normal space.
9410 (word_space_node::asciify): New method.
9411 (unbreakable_space_node::asciify): New method.
9412 (word_space_node::merge_space): New method.
9413 * src/roff/troff/env.cc (environment::space_newline,
9414 environment::space): Add code to initialize `num_spaces' (using the
9415 constructor of `word_space_node').
9416 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
9419 2001-01-09 Werner LEMBERG <wl@gnu.org>
9421 * man/groff_char.man: Use table header traps only conditionally.
9423 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
9425 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
9427 2001-01-08 Werner LEMBERG <wl@gnu.org>
9429 Introducing the `box' and `boxa' requests which are similar to
9430 `di' resp. `da' but omitting a partially filled line (which is
9431 restored after ending the diversion).
9433 * src/roff/troff/div.h (diversion): Add elements to save partially
9435 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
9436 partially filled line.
9437 (divert, divert_append): Updated.
9438 (box, box_append): New functions.
9439 (init_div_requests): Use them.
9440 * src/roff/troff/env.h (environment): do_divert() is now a friend.
9441 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9443 * doc/groff.texinfo: Fix documentation of `lf' request.
9445 2000-12-25 Werner LEMBERG <wl@gnu.org>
9447 * src/roff/troff/troff.man, NEWS: Document `writem' request.
9449 2000-12-21 Werner LEMBERG <wl@gnu.org>
9451 Ignore `ss' request if in compatibility mode.
9453 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
9454 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
9455 * src/roff/troff/env.cc (space_size): Use it.
9457 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
9458 `ss' request in nroff mode.
9460 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
9463 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
9465 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
9467 2000-12-13 Werner LEMBERG <wl@gnu.org>
9469 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
9470 * src/preproc/eqn/neqn.man: Small fixes and additions.
9472 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
9474 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
9477 * src/preproc/eqn/neqn.man: New file.
9479 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
9482 * tmac/e.tmac: Add `T&' macro.
9483 Fix `indent cannot be negative' warning.
9484 * tmac/s.tmac: Fix `indent cannot be negative' warning.
9486 2000-12-07 Werner LEMBERG <wl@gnu.org>
9488 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
9490 2000-12-06 Werner LEMBERG <wl@gnu.org>
9492 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
9495 * MORE.STUFF: Added info about deroff for djgpp.
9497 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
9498 documentation of -rcR switch.
9500 2000-12-03 Werner LEMBERG <wl@gnu.org>
9502 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
9503 if -rcR=1 (which is now the default in nroff mode), a single, very
9504 long page is created instead of multiple pages: All `ne' and `wh'
9505 requests are put into conditionals; a new macro `an-end' is added to
9506 be called with `em'.
9508 Some other minor cleanups.
9510 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
9512 2000-12-02 Werner LEMBERG <wl@gnu.org>
9514 Fixing a bug which prevented hyphenation in words followed
9515 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
9517 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
9518 Adding possibly_break_line().
9519 * src/roff/troff/env.h (environment): Make possibly_break_line()
9522 Make `\~' usable in .tr request.
9524 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
9525 (token): Add stretchable_space().
9526 * src/roff/troff/input.cc (token::next, token::delimiter,
9527 token::description, process_input_stack, do_translate,
9528 add_to_node_list, token::process): Use it.
9529 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
9530 for adjusting the space.
9531 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
9532 for stretchable space.
9533 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
9534 (make_node): Add code for stretchable space.
9535 * src/roff/troff/env.cc (environment::add_char): Use it.
9536 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
9537 (get_copy, token::next, transparent_translate, asciify): Use it.
9539 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
9540 doc/groff.texinfo: Updated.
9541 * man/groff.man: Small reorderings.
9543 2000-11-23 Werner LEMBERG <wl@gnu.org>
9546 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
9548 * src/roff/troff/input.cc (main): Add `config_macro_path' and
9549 `safer_macro_path' to -M option.
9550 * src/roff/troff/troff.man: Fixes.
9552 2000-11-22 Werner LEMBERG <wl@gnu.org>
9554 Use safer path (except for config files) if -U isn't specified. Add
9555 a special macro path (without home and current directory) for config
9556 files. Add home directory to unsafe path for consistency. Don't
9557 include the home directory in the font path.
9559 * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
9561 * src/include/macropath.h: Add `config_macrp_path'.
9562 * src/libs/libgroff/fontfile.cc: Fix font path.
9563 * src/roff/troff/input.cc (process_startup_file): Use
9564 `config_macro_path'.
9565 (main): Select unsafe path if -U is given.
9567 * src/preproc/eqn/main.cc (main): Fixing search path for
9569 * src/preproc/eqn/eqn.man: Updated.
9571 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
9574 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
9575 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
9576 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9577 src/devices/grotty/grotty.man: Updated.
9579 * Makefile.in: Fix comments.
9581 2000-11-17 Werner LEMBERG <wl@gnu.org>
9583 * tmac/safer.tmac: Empty file added (again) for compatibility
9585 * tmac/Makefile.sub: Updated.
9587 2000-11-16 Werner LEMBERG <wl@gnu.org>
9589 * src/devices/grodvi/dvi.cc (main),
9590 src/devices/grohtml2/post-html.cc (main),
9591 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9592 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9593 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9594 (main), src/preproc/html2/pre-html.cc (main),
9595 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9596 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9597 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9598 (main), src/utils/hpftodit/hpftodit.cc (main),
9599 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
9600 (main), src/utils/lookbib/lookbib.cc (main),
9601 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
9602 (main): Use stdout for -v.
9603 * src/roff/groff/groff.cc (run_commands),
9604 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
9605 to make direct printing to stdout possible.
9606 * src/roff/groff/pipeline.h: Updated.
9608 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
9609 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
9610 * src/utils/afmtodit/afmtodit.man: Updated.
9612 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
9613 (version): New function.
9615 * src/utils/addftinfo/addftinfo.man: Updated.
9617 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
9618 Fixing copyright dates.
9620 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
9623 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
9626 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
9628 2000-11-15 Werner LEMBERG <wl@gnu.org>
9630 In all programs, make -v return immediately with exit status 0 to
9631 be compliant with the GNU standard.
9633 * src/devices/grodvi/dvi.cc (main),
9634 src/devices/grohtml2/post-html.cc (main),
9635 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
9636 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
9637 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
9638 (main), src/preproc/html2/pre-html.cc (main),
9639 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
9640 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
9641 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
9642 (main): Implement it.
9645 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
9646 and postprocessors to the -v option.
9648 * src/roff/grog/grog.pl: Implement -v.
9649 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
9650 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9652 * src/roff/nroff/nroff.sh: Implement -v.
9653 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
9654 * src/roff/nroff/nroff.man: Updated.
9656 * src/preproc/eqn/main.cc (main): Fix comment typo.
9658 * MORE.STUFF: Added info about djgpp port of grap.
9660 2000-11-14 Werner LEMBERG <wl@gnu.org>
9662 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
9663 mode (or rather, implemented non-compatibility mode).
9664 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
9666 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
9667 replacing it -- we don't find gxditview otherwise.
9668 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
9670 * src/preproc/pic/depend: Removed. Unnecessary.
9672 Implemented dummy keyword `solid' in pic for compatibility with
9675 * lex.cc (lookup_keyword): Added `solid'.
9676 * pic.y: Added SOLID with dummy rule.
9677 * pic.cc, pic_tab.h: Regenerated.
9678 * doc/pic.ms: Updated.
9680 2000-11-13 Werner LEMBERG <wl@gnu.org>
9682 For security reasons, don't use the current directory but the home
9683 directory while searching and scanning troffrc and troffrc-end.
9684 Similarly, replace the current directory with the home directory
9687 * Makefile.in (fontpath, tmacpath): Remove current directory.
9689 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
9690 two parameters `add_home' and `add_current'.
9691 (search_path::~search_path, search_path::command_line_dir,
9692 search_path::open_file): Remove tests for `dirs' being zero.
9693 * src/include/searchpath.h: Adjust.
9694 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
9696 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
9698 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
9699 * src/roff/troff/input.cc: Use `mac_path', initialized with
9701 (process_startup_file): Set `mac_path' to `safer_macro_path'.
9702 * src/roff/troff/env.cc: Use `mac_path'.
9704 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
9706 * NEWS, man/roff.man, src/roff/troff/troff.man,
9707 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
9710 2000-11-12 Werner LEMBERG <wl@gnu.org>
9712 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
9714 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
9715 * configure.in: Fix typo in comment.
9716 * configure: Regenerated.
9718 * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
9721 2000-11-08 Werner LEMBERG <wl@gnu.org>
9723 Add system tmac directory (/usr/local/lib/groff/site-tmac).
9725 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
9726 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
9729 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
9730 * tmac/Makefile.sub (install_data): Create
9731 $(systemtmacdir) and $(localtmacdir).
9732 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
9733 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
9734 NEWS, doc/groff.texinfo: Updated and minor fixes.
9736 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
9737 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
9738 $(systemtmacdir) since the wrapper files are platform-dependent.
9740 2000-11-01 Werner LEMBERG <wl@gnu.org>
9742 * doc/groff.texinfo: Fix typo.
9744 2000-10-26 Werner LEMBERG <wl@gnu.org>
9746 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
9747 tmac.doc.old -> doc-old.tmac
9748 tmac.an.old -> an-old.tmac
9750 * tmac/tmac.*: Moved to ...
9751 * tmac/*.tmac: this.
9752 * tmac/man.local: Fix comment.
9753 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
9754 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
9755 Added some `FILES' sections. More use of @...@ directives. Other
9757 * arch/djgpp/README, font/devutf8/NOTES: Updated.
9758 * doc/homepage.ms, doc/groff.texinfo: Updated.
9759 * man/groff.man, man/roff.man: Updated.
9760 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
9761 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
9762 src/devices/grotty/grotty.man: Updated.
9763 * src/preproc/pic/pic.man: Updated.
9764 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
9765 instead of -mdoc.old.
9766 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
9767 * src/roff/nroff/nroff.man: Updated.
9770 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
9772 * tmac/mm.diff: Removed -- it has no use now since the mm package
9775 * tmac/*: Removed trailing spaces.
9777 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
9778 the tmac subdirectory also).
9780 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
9781 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
9782 stuff since it is no longer needed.
9784 * README, PROBLEMS: Updated.
9786 2000-10-25 Werner LEMBERG <wl@gnu.org>
9788 Invert current behaviour: Search first FOOBAR.tmac, then
9791 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
9792 (open_mac_file, macro_source): Implement it.
9793 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
9794 doc/groff.texinfo, NEWS: Document it.
9796 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
9797 Small documentation improvements.
9799 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
9802 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
9804 2000-10-24 Werner LEMBERG <wl@gnu.org>
9806 Add local tmac directory (groff/site-tmac).
9808 * Makefile.in: Add $(localtmacdir).
9809 (uninstall_dirs): Add $(localtmacdir).
9810 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
9811 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
9812 in $(localtmacdir). Create $(localtmacdir).
9813 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
9814 Updated and minor fixes.
9816 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
9818 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
9820 2000-10-23 Werner LEMBERG <wl@gnu.org>
9822 Move hyphen.us to tmac directory.
9824 * src/roff/troff/hyphen.us: Removed.
9825 * src/tmac/hyphen.us: Added.
9826 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
9828 Change installation structure for data files from .../groff/... to
9829 .../groff/<version><revision>/... to be conform with other GNU
9832 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
9833 doc/Makefile: Implement it.
9834 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
9835 * configure: Updated.
9836 * arch/djgpp/README, font/devutf8/NOTES: Use it.
9837 * NEWS: Document it.
9838 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
9839 @MACRODIR@ instead of hard-coded directories.
9841 2000-10-22 Werner LEMBERG <wl@gnu.org>
9843 Implement $GROFF_BIN_PATH environment variable (which defaults to
9844 $bindir) used for child programs of groff and similar wrappers.
9846 * gendefs.sh: Improve documentation.
9847 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
9848 src/preproc/eqn/Makefile.sub (neqn),
9849 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
9850 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
9852 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
9853 $GROFF_PATH__ (the latter for communication with troff).
9854 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
9856 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
9857 doc/groff.texinfo: Document it.
9859 * doc/groff.texinfo: Improve documentation of troff's -a option.
9861 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
9863 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
9864 non-intrusive eol marker.
9865 (troff_output_file::determine_line_limits): New function.
9866 (troff_output_file::draw): Use it.
9867 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
9868 output_pending_lines() instead of output_line().
9869 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
9870 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
9871 createImage): Small fixes.
9873 2000-10-14 Werner LEMBERG <wl@gnu.org>
9875 Replace tmac.safer with a real secure solution.
9877 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
9878 system_request, pipe_output): Disable requests if in safer mode.
9879 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
9880 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
9881 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
9882 doc/groff.texinfo, src/roff/groff/groff.man,
9883 src/roff/troff/troff.man, arch/djgpp/README: Updated.
9885 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
9886 (resource_manager::output_prolog): Replace setenv() with putenv().
9888 2000-10-09 Werner LEMBERG <wl@gnu.org>
9890 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
9891 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
9892 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
9893 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
9894 compilation errors with some compilers. It seems that this code
9895 is no longer necessary -- if yes, it is easy to add some #ifdef's
9896 for that particular old-fashioned compiler.
9898 * MORE.STUFF: Added info about Meta-tbl.
9900 * doc/groff.texinfo: Added more info about `.if "..."..."'.
9902 2000-10-07 Werner LEMBERG <wl@gnu.org>
9904 Adding a new escape sequence \B'...': If the string between
9905 the delimiters is a valid numeric expression, return the character
9906 `1', and `0' otherwise. This is an analogon to \A.
9908 * src/roff/troff/input.cc (do_expr_test): Implement it.
9909 (token::next): Use it.
9910 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
9912 * tmac/tmac.trace: Made independent from escape character.
9914 2000-10-06 Werner LEMBERG <wl@gnu.org>
9916 Adding a new request .dei: define indirect. The first and second
9917 parameter of .dei are taken from string registers instead directly;
9918 this very special request is needed to make tmac.trace independent
9919 from the escape character (which might even be disabled).
9921 * src/roff/troff/input.cc (do_define_macro): Implement it.
9922 (define_macro_indirect): New function.
9923 (init_input_requests): Use it.
9925 Adding two requests .ecs and .ecr: Save and restore the escape
9926 character. These two requests are needed to make tmac.trace
9927 independent from the escape character (which might even be
9930 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
9932 (init_input_requests): Use it.
9934 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9936 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
9938 Adding a new option -P and new environment variable GROPS_PROLOGUE
9939 to grops, selecting a different prologue file (minor modifications
9942 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
9943 src/devices/grops/ps.cc (main): Implement it.
9944 * src/devices/grops/grops.man, NEWS: Document it.
9946 2000-09-22 Werner LEMBERG <wl@gnu.org>
9948 * INSTALL: Add info about selecting paper format.
9950 2000-09-21 Werner LEMBERG <wl@gnu.org>
9952 * src/roff/troff/input.cc (main): Fixing compiler warning.
9953 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
9954 strings.h from the former to the latter.
9955 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
9956 stuff from the former to the latter.
9958 2000-09-11 Werner LEMBERG <wl@gnu.org>
9960 Implementing two new requests .tm1 and .tmc: The former is similar
9961 to .tm but can output leading spaces; its syntax is similar to
9962 defining a string, i.e., a `"' can be used to mark the beginning of
9963 the string to be written to stderr: `.tm1 " test'. The latter is
9964 similar to .tm1 but doesn't write out a final newline character.
9966 * src/roff/troff/input.cc (terminal1, terminal_continue,
9967 do_terminal): New functions.
9968 (init_input_requests): Use them.
9969 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9971 2000-09-09 Werner LEMBERG <wl@gnu.org>
9973 * tmac/groff_mdoc.samples.man: Small fixes.
9975 2000-09-08 Werner LEMBERG <wl@gnu.org>
9977 * tmac/groff_mdoc.man: Fixing typo.
9979 2000-09-02 Werner LEMBERG <wl@gnu.org>
9981 Implementing a .nop request which does nothing.
9983 * src/roff/troff/input.cc (nop_request): New function.
9984 (init_input_requests): Use it.
9985 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
9987 2000-09-01 Werner LEMBERG <wl@gnu.org>
9989 * doc/groff.texinfo: Added some comments.
9991 2000-08-30 Werner LEMBERG <wl@gnu.org>
9993 * src/roff/troff/TODO: Updated.
9995 2000-08-25 Werner LEMBERG <wl@gnu.org>
9997 * doc/groff.texinfo: Fix comment how to compile the DVI file.
9999 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
10001 * font/devps/generate/Makefile (SHELL): Define explicitly to
10002 "/bin/sh", for non-Unix platforms.
10003 (extraclean): Use a more portable "" quoting instead of a
10004 backslash (which doesn't work on DOS/Windows).
10006 * font/devlj4/generate/Makefile (extraclean): Ditto.
10008 * font/devdvi/generate/Makefile (extraclean): Ditto.
10010 2000-08-25 Werner LEMBERG <wl@gnu.org>
10012 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
10013 src/roff/troff/troff.man: Document Eli's latest changes.
10015 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
10017 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
10018 macro file names of the form NAME.tmac as well as tmac.NAME.
10020 2000-08-25 Werner LEMBERG <wl@gnu.org>
10022 * src/include/posix.h: Remove definition of FILENAME_MAX.
10024 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
10025 `sys_fatal' and `stop' function().
10027 * test-groff: Updated.
10029 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
10031 Added the new troff command .output <arg> to suppress output (while
10032 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
10033 registers (for passing the output dimensions to the output device).
10035 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
10037 * src/roff/troff/node.h, src/roff/troff/node.cc
10038 (troff_output_file::really_print_line,
10039 ascii_output_file::really_print_line,
10040 supress_output_file::really_print_line): Use `width' parameter.
10041 (troff_output_file::really_on, troff_output_file::really_off,
10042 output_file::on, output_file::off, real_output_file::on,
10043 real_output_file::off, real_output_file::really_on,
10044 real_output_file::really_off): New functions.
10045 (real_output_file:public output_file): New variable `output_on'.
10046 (real_output_file::begin_page, real_output_file::copy_file,
10047 real_output_file::transparent_char, real_output_file::print_line):
10049 (real_output_file::print_line): Use check_output_limits.
10050 * src/roff/troff/reg.h, src/roff/troff/request.h,
10051 src/roff/troff/input.cc (assign_registers): New function to remove
10053 (do_ps_file): Use it.
10054 (check_output_limits, reset_output_registers, output_request,
10055 init_output_requests): New functions.
10056 (init_input_requests): Updated.
10058 Added new grohtml2 device and html2 preprocessor (coding
10059 not yet finished) which will eventually replace grohtml.
10061 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
10063 * src/include/htmlindicate.h, src/include/htmlindicate
10064 (html_begin_suppress, html_end_suppress): New functions.
10065 * src/preproc/tbl/main.cc: Use it.
10066 * src/roff/groff/groff.cc: Add support for html2 device (which will
10067 automatically invoke the html2 preprocessor).
10068 * src/roff/troff/input.cc (is_html2): New variable.
10069 * src/roff/troff/troff.h, src/roff/troff/env.h,
10070 src/roff/troff/env.cc (environment::add_html_tag): New function
10072 (environment::do_break): Use it.
10073 * font/devhtml2/*: New files.
10074 * src/devices/grohtml2: New device.
10075 * src/preproc/html2: New preprocessor.
10076 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
10078 2000-08-23 Werner LEMBERG <wl@gnu.org>
10080 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
10082 2000-08-22 Werner LEMBERG <wl@gnu.org>
10084 * src/include/lib.h: Provide a fix for IRIX to not include
10087 2000-08-18 Werner LEMBERG <wl@gnu.org>
10089 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
10090 since some non-GNU sed programs can't handle null regexps.
10091 * configure, src/preproc/eqn/Makefile.sub,
10092 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
10094 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
10095 bug (string.h and strings.h are both needed according to latest
10098 * MORE.STUFF: Added info about unroff and troffcvt.
10100 2000-08-08 Werner LEMBERG <wl@gnu.org>
10102 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
10105 * tmac/tmac.man.old: Remove unused number register.
10107 * tmac.doc: Minor documentation fix.
10109 2000-08-07 Paul Eggert <eggert@twinsun.com>
10111 * src/roff/groff/pipeline.c (is_system_shell):
10112 Fix typo: "monocased_shell" no longer exists.
10114 2000-08-07 Paul Eggert <eggert@twinsun.com>
10116 Remove FILENAME_MAX limits.
10118 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
10119 that the argument length is less than FILENAME_MAX.
10120 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
10121 Use struct hack to allocate and free file name.
10122 (struct xtmpfile_list): fname is now part of the structure,
10123 not a pointer to another string.
10125 2000-08-07 Tom Schmidt <tschmidt@micron.com>
10127 * src/include/posix.h: Add a default value for FILENAME_MAX.
10129 2000-08-06 Paul Eggert <eggert@twinsun.com>
10131 Add support for new BSD-style man pages (with ".Dd" instead of
10132 ".TH"), so that "groff -man" understands both styles, even
10133 when running "groff -man" on a host whose system man page
10134 macros don't support ".Dd".
10136 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
10137 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
10138 in case the system man macros don't define Dd or TH.
10140 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
10141 * tmac/tmac.an: New one-line file.
10142 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
10144 2000-08-06 Werner LEMBERG <wl@gnu.org>
10146 * src/roff/troff/troff.man: Fixing typos.
10148 Version 1.16.1 released
10149 =======================
10151 2000-07-31 Werner LEMBERG <wl@gnu.org>
10153 Preparing release 1.16.1.
10155 * REVISION: Revision number set to 1.
10156 * MORE.STUFF: Added info about port to DOS.
10157 * NEWS, win32-diffs: Updated.
10159 * src/include/nonposix.h: Remove first line -- this file is used
10162 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
10165 2000-07-30 Werner LEMBERG <wl@gnu.org>
10167 * doc/texinfo.tex: Update to latest version.
10169 2000-06-28 Paul Eggert <eggert@twinsun.com>
10171 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
10172 commands that fail. Don't assume that "export a=b" is valid shell
10173 syntax. This is needed for Solaris 2.5.1.
10175 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
10176 comment about missing Solaris headers.
10178 * PROBLEMS: Add section about problems with Sun Make and VPATH.
10180 2000-06-25 Werner LEMBERG <wl@gnu.org>
10182 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
10185 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
10187 * win32-diffs: Updated.
10188 * README.WIN32: Added CRs to make all Windows editors happy.
10190 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
10191 src/roff/groff/pipeline.c).
10193 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
10195 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
10196 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
10198 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
10200 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
10201 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
10203 (main): Support non-Posix systems with several different styles of
10204 slash characters in file names.
10206 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
10207 (main) [SET_BINARY]: Switch stdin into binary mode.
10209 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
10210 (main): Support file names with several possible slash-type
10211 characters, as given by DIR_SEPS[] in nonposix.h.
10212 (main) [__MSDOS__]: If renaming the temporary index file fails
10213 because it has more than one dot in its trunk, replace the dot
10214 with an underscore and try again.
10215 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
10217 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
10219 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
10220 (File::File): Open the input file in binary mode. Strip CR
10221 characters from each CR-LF pair.
10222 (xbasename): Support file names with several possible slash-type
10223 characters, as given by DIR_SEPS[] in nonposix.h.
10225 * src/include/Makefile.sub (HDRS): Add nonposix.h.
10227 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
10228 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
10229 [!_POSIX_VERSION]: Define for traditional Unix systems.
10230 (real_output_file::real_output_file): Remove the MSVC-specific
10231 call to popen, use instead POPEN_WT, appropriately defined on
10232 nonposix.h. #include nonposix.h.
10233 (real_output_file::~real_output_file): Remove the MSVC-specific
10234 call to pclose, a suitable macro is now defined on nonposix.h.
10235 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
10236 and WEXITSTATUS instead of assuming traditional Unix
10237 interpretation of the status returned by pclose.
10239 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
10240 call to popen, use POPEN_RT instead (appropriately defined on
10241 nonposix.h). #include nonposix.h.
10242 (ps_bbox_request): Open the PostScript file in binary mode.
10243 Close the file after processing it.
10244 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
10247 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
10248 A version of run_pipeline that doesn't use `fork'.
10249 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
10250 (system_shell_name, system_shell_dash_c)
10251 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
10252 the ugliness of testing DOS/Windows file names for equality, and
10253 support both stock shells and ports of Unix shells.
10255 * src/roff/groff/groff.cc: #include nonposix.h.
10256 (BSHELL): Definition moved to nonposix.h.
10257 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
10258 instead of a literal "-c".
10259 (xbasename): Support file names with several possible slash-type
10260 characters, as given by DIR_SEPS[] in nonposix.h.
10261 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
10262 of literal strings.
10264 * src/preproc/soelim/soelim.cc: #include nonposix.h.
10265 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
10267 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
10270 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
10272 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
10275 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
10277 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
10278 P_tmpdir is defined, use it instead of the literal "/tmp".
10279 (remove_tmp_files, add_tmp_file): New functions.
10280 (xtmpfile): Record temporary files and register an atexit function
10281 to delete them explicitly, instead of relying on the OS to do
10282 that, which doesn't work on non-Unix systems.
10284 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
10285 (search_path::search_path): Use PATH_SEP instead of a literal
10287 (search_path::command_line_dir): Ditto.
10288 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
10289 to support non-Posix systems.
10291 * src/libs/libbib/search.cc: #include nonposix.h.
10292 (search_list::add_file): Open the file in binary mode.
10294 * src/libs/libbib/linear.cc: #include nonposix.h.
10295 (file_buffer::load): Remove \r characters preceding \n from the
10298 * src/libs/libbib/index.cc: #include nonposix.h.
10299 (make_index_search_item): Open index_filename in O_BINARY mode.
10300 (index_search_item_iterator::get_tag): Ditto. Remove \r
10301 characters before \n characters.
10302 (index_search_item::check_files): Open files in binary mode.
10303 (index_search_item::munge_filename): Support DOS-style file names
10304 with backslashes and drive letters, use IS_ABSOLUTE.
10306 * src/devices/grops/ps.cc: #include nonposix.h.
10307 (main) [SET_BINARY]: Switch stdout to binary mode.
10309 * src/devices/grolj4/lj4.cc: #include nonposix.h.
10310 (main) [SET_BINARY]: Switch stdout to binary mode.
10312 * src/devices/grolbp/lbp.cc: #include nonposix.h
10313 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
10315 * src/devices/grodvi/dvi.cc: #include nonposix.h.
10316 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
10318 (main) [SET_BINARY]: Switch stdout to binary mode.
10319 [_MSC_VER]: Remove an explicit call to _setmode.
10321 * src/include/nonposix.h: New file.
10323 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
10324 operation when building with DJGPP.
10325 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
10326 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
10329 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
10331 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
10332 etc. can include a semi-colon on DOS/Windows.
10333 (depend.temp): Use depend1.temp instead of depend.temp1, to
10334 prevent files from overerwiting each other on 8+3 filesystems.
10336 * gendef.sh (t): Change definition to work with DOS/Windows.
10338 doc/groff.texinfo: Apart of some typo corrections, I also changed
10339 some index entris, to make them more non-ambiguous, and also put
10340 @ignore around some parts that are not yet written, to allow the
10341 Info output be readable.
10343 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
10345 Replaced specific checks for function declarations with a generic
10346 routine taken from GNU bfd.
10348 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
10349 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
10350 * configure.in: Use it.
10351 * src/devices/grolbp/lbp.cc, src/include/lib.h,
10352 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
10353 src/roff/groff/groff.cc: Use it.
10354 * Makefile.in, configure: Updated.
10356 2000-06-07 Paco Andrés Verdú <pandres@dragonet.es>
10358 * src/devides/grolbp/lbp.h: Removed unused variables.
10360 2000-05-31 Keith Thompson <kst@sdsc.edu>
10362 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
10365 2000-05-31 Werner LEMBERG <wl@gnu.org>
10367 * aclocal.m4 (GROFF_SRAND): New function to test the return value
10368 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
10369 * configure.in: Use it.
10370 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
10371 * configure, Makefile.in: Updated.
10373 * configure.in: Add test for strncasecmp().
10374 * src/include/lib.h: Use it.
10376 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
10378 * src/preproc/grn/Makefile.sub: Add MLIB.
10380 2000-05-29 Nix <nix@esperi.demon.co.uk>
10382 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
10384 2000-05-29 Werner LEMBERG <wl@gnu.org>
10386 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
10388 * PROBLEMS: Small update.
10390 * src/devices/grolbp/lbp.cc: Various small fixes.
10392 2000-05-28 Keith Thompson <kst@sdsc.edu>
10394 * src/roff/nroff/nroff.sh: Fix main loop syntax.
10396 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
10398 2000-05-25 Werner LEMBERG <wl@gnu.org>
10400 * man/roff.man: Removed unused macro.
10402 2000-05-24 Werner LEMBERG <wl@gnu.org>
10404 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
10405 This is needed e.g. if you do
10406 `make distclean; ./configure; make dist'.
10408 Version 1.16 released
10409 =====================
10411 2000-05-23 Werner LEMBERG <wl@gnu.org>
10413 Adding font CWI (constant width italic) to devdvi.
10415 * font/devdvi/CWI: New file.
10416 * font/devdvi/generate/Makefile: Add generating rule.
10417 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
10418 tmac/tmac.dvi: Use it.
10419 * NEWS: Announce it.
10421 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
10422 * font/devlj4/generate/Makefile: Cosmetic changes only.
10424 * man/groff.man: Removed most of the redundant description of
10425 special characters (which is in groff_char.man). Added font
10426 translation CB->CR for devdvi. Other minor fixes.
10428 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
10429 (registered) symbols.
10431 2000-05-22 Werner LEMBERG <wl@gnu.org>
10433 * doc/Makefile: Added rule for creating info files.
10435 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
10437 * font/devdvi/generate/Makefile: Fixed dependencies.
10439 * font/devps/*: Regenerated. Heavy changes for Bookman and
10440 NewCentury Schoolbook!
10441 * font/devps/generate/afmname: Will now run with GNU awk.
10442 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
10443 * font/devps/generate/Makefile: Cosmetic changes only.
10445 2000-05-21 Werner LEMBERG <wl@gnu.org>
10447 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
10448 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
10449 `.SS' now produces a heading with a smaller size than `.SH'.
10450 Completely formatted.
10451 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
10453 * man/groff.man: Improved table appearance. Use of `eo' request
10454 to reduce number of doubled backslashes in macro definitions.
10455 Replacing `\e' with `\(rs'. Other minor fixes.
10457 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
10458 to have correct line number.
10460 * INSTALL: Small improvement.
10462 2000-05-20 Bernd Warken <bwarken@mayn.de>
10464 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
10467 2000-05-19 Bernd Warken <bwarken@mayn.de>
10469 * man/groff.man: Complete update (with a lot of corrections by WL).
10471 2000-05-18 Werner LEMBERG <wl@gnu.org>
10473 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
10475 * font/*/*: Implement it.
10476 * man/groff_char.man, NEWS: Document it.
10478 * src/include/unix.h: Removed. It isn't used.
10480 * doc/groff.texinfo: Slight improvements.
10482 2000-05-17 Werner LEMBERG <wl@gnu.org>
10484 * README, win32-diffs: Small fixes and improvements.
10486 2000-05-16 Werner LEMBERG <wl@gnu.org>
10488 * FDL: New file (the Free Documentation License version 1.1).
10490 * doc/groff.texinfo: Added many start-up values for gtroff.
10491 Some structural improvements of the source code.
10493 2000-05-15 Werner LEMBERG <wl@gnu.org>
10495 * src/roff/troff/input.cc: Added small comment about troffrc-end.
10496 * src/roff/troff/troff.man: Added info about troffrc-end.
10498 2000-05-14 Werner LEMBERG <wl@gnu.org>
10500 * Makefile.in (EXTRADIRS): Fix typos.
10501 (dist): Handle deletion of old .tar.gz file correctly.
10502 (DISTDIRS): Include all tty output devices.
10504 * doc/groff.texinfo: Adding more cross references; countless other
10507 2000-05-13 Werner LEMBERG <wl@gnu.org>
10509 * MORE.STUFF: Added Robert Marks's utilities.
10511 2000-05-12 Werner LEMBERG <wl@gnu.org>
10513 Added win32 port contributed by Blake McBride
10514 <blake@florida-software.com>.
10516 * README.WIN32, win32-diffs: New files.
10519 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
10520 (tmove, tmove2): Added parentheses to avoid compiler warnings.
10521 (change): Removed unused variables.
10523 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
10524 (savebounds): Changed return value from `int' to `void'.
10525 * src/preproc/grn/hdb.cc: Ditto.
10527 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
10528 final backslash in comment to avoid compiler warning.
10530 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
10532 * doc/groff.texinfo: More fixes.
10534 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
10536 * tmac/tmac.doc: Documentation fix.
10538 2000-05-11 Werner LEMBERG <wl@gnu.org>
10540 * doc/groff.texinfo: Reading the source code shows up a lot of
10541 omissions and incorrect data... More conversion to @Deffn macros.
10543 2000-05-10 Werner LEMBERG <wl@gnu.org>
10545 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
10548 * src/roff/troff/request.h: Removing unused `no_break_flag'.
10550 2000-05-09 Werner LEMBERG <wl@gnu.org>
10552 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
10555 * doc/groff.texinfo: Extended history section. More conversion to
10556 @Deffn macros. More .tr documentation.
10558 2000-05-07 Werner LEMBERG <wl@gnu.org>
10560 * doc/groff.texinfo: Completed tab section. Added info about
10563 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
10565 * PROBLEMS: Describe configure script fix for OS/390 Unix.
10567 2000-05-05 Werner LEMBERG <wl@gnu.org>
10569 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
10571 * NEWS: Document it.
10573 * man/troff.man: Minor optical improvements.
10575 2000-05-03 Werner LEMBERG <wl@gnu.org>
10577 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
10579 * font/*/*: Implement it.
10580 * man/groff_char.man, NEWS: Document it.
10582 2000-05-02 Werner LEMBERG <wl@gnu.org>
10584 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
10586 * NEWS: Document the three new man pages.
10588 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
10589 * configure: Updated.
10591 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
10593 2000-05-01 Werner LEMBERG <wl@gnu.org>
10595 Added grap support to grog.
10597 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
10598 * src/roff/grog/grog.man: Document it.
10600 * doc/groff.texinfo, NEWS: Add info about grap support.
10602 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
10603 (with slight fixes by me).
10605 * tmac/groff_tmac.man: New file documenting tmac mechanism.
10606 * tmac/Makefile.sub: Add groff_tmac.man.
10607 * man/roff.man: New file giving overview of roff system.
10608 * man/troff.man: A short reference of troff.
10609 * man/Makefile.sub: Add roff.man and troff.man.
10611 2000-04-30 Werner LEMBERG <wl@gnu.org>
10613 Added grap support to groff.
10615 * src/roff/groff/groff.cc: Implement it.
10616 * src/roff/groff/groff.man: Document it.
10618 * src/devices/grotty/grotty.man: Add cp1047 device.
10619 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
10621 * src/roff/groff/groff.man: Ditto.
10622 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
10623 * doc/groff.texinfo: Ditto.
10625 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
10628 2000-04-29 Werner LEMBERG <wl@gnu.org>
10630 * man/groff_char.man: Add `pc' glyph.
10631 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
10632 * tmac/tmac.tty: Add `pc' glyph.
10633 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
10634 we use cp1047 output device.
10636 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
10637 there are still hardcoded latin1->unicode values in utf8's font
10639 * configure: Updated.
10640 * NEWS: Minor clarification. Updated.
10642 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
10645 2000-04-28 Werner LEMBERG <wl@gnu.org>
10647 Adding EBCDIC code page 1047.
10649 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
10650 font/devcp1047/DESC.proto: New files.
10652 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
10653 either ascii/latin1 or cp1047.
10654 * Makefile.in: Use it.
10655 * configure: Updated.
10657 Replacing and/or adding `md' (mathdot) glyph with `pc'
10658 (periodcentered) in all text fonts.
10660 * font/*/*: Change it.
10662 2000-04-27 Werner LEMBERG <wl@gnu.org>
10664 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
10666 * configure.in: Add check for strings.h.
10667 * src/include/driver.h: Use HAVE_STRINGS_H.
10668 * src/devices/grolbp/lpb.cc: Remove string.h.
10670 * src/include/groff-getopt.h: New file. It will be used instead of
10671 getopt.h (to be included in lib.h) to avoid endless problems with
10672 picky C++ compilers.
10673 * src/include/lib.h: Use groff-getopt.h.
10674 * src/include/Makefile.sub: Updated.
10676 * configure: Updated.
10677 * Makefile.in: Updated.
10679 * NEWS: Mention EBCDIC support.
10681 2000-04-26 Werner LEMBERG <wl@gnu.org>
10683 * TODO: Some additions.
10685 2000-04-25 Werner LEMBERG <wl@gnu.org>
10687 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
10690 2000-04-23 Werner LEMBERG <wl@gnu.org>
10692 * src/roff/troff/troff.man: Minor fixes.
10694 2000-04-22 Werner LEMBERG <wl@gnu.org>
10696 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
10697 `.T' string register and the incompatible definition of the `.T'
10698 number register (compared to Unix troff).
10700 * man/groff_char.man: Add some missing characters.
10701 * font/devutf8/NOTES: Update.
10703 2000-04-21 Werner LEMBERG <wl@gnu.org>
10705 * src/include/htmlindicate.h, src/include/lib.h,
10706 src/include/posix.h: Fix copyright.
10708 * src/include/Makefile.sub: Update.
10710 2000-04-20 Werner LEMBERG <wl@gnu.org>
10712 * src/roff/troff/input.cc (input_char_description): Removing
10713 superfluous space char.
10715 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
10717 * doc/groff.texinfo: Document EBCDIC.
10719 2000-04-19 Werner LEMBERG <wl@gnu.org>
10721 Introducing `shc' as the glyph name for the soft hyphen character.
10723 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
10724 font/devlatin1/R.proto: Use it.
10728 2000-04-18 Werner LEMBERG <wl@gnu.org>
10730 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
10731 dependency on ASCII order.
10733 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
10735 * src/libs/libgroff/illegal.c: Added EBCDIC table.
10736 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
10738 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
10739 to increase portability.
10741 2000-04-15 Werner LEMBERG <wl@gnu.org>
10743 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
10744 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
10745 the generic `\n' if under OS/390 Unix.
10747 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
10749 * configure: Regenerated.
10751 2000-04-14 Werner LEMBERG <wl@gnu.org>
10753 * doc/groff.texinfo: More conversions to @Deffn.
10755 2000-04-12 Werner LEMBERG <wl@gnu.org>
10757 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
10760 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
10762 2000-04-10 Werner LEMBERG <wl@gnu.org>
10764 * doc/groff.texinfo: More conversions to @Deffn.
10766 2000-04-08 Werner LEMBERG <wl@gnu.org>
10768 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
10769 Updated to latest version (glibc 2.1.3).
10771 2000-04-07 Werner LEMBERG <wl@gnu.org>
10773 * doc/Makefile (clean): Include more index files.
10774 Add rule texinfo->dvi.
10776 2000-04-05 Werner LEMBERG <wl@gnu.org>
10778 * doc/groff.texinfo: Added new index `op' for operators. More
10779 info on end of sentence characters. More use of @Deffn.
10781 2000-03-30 Werner LEMBERG <wl@gnu.org>
10783 * */*.man: Adding a note that a whitespace can be inserted between
10784 a command line option and its parameter -- we are using GNU getopt.
10786 * src/roff/groff/groff.man: Add example of `-m mandoc'.
10788 2000-03-28 Werner LEMBERG <wl@gnu.org>
10790 Correct anachronism of calling the man macro file with `-man'
10791 instead of `-m man' etc.
10793 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
10794 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
10795 load tmac.<package>.
10797 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
10801 * doc/groff.texinfo: Updated.
10803 * tmac/groff_man.man: Copyright added.
10805 2000-03-27 Werner LEMBERG <wl@gnu.org>
10807 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
10808 typeset the request resp. escape name with a tt font -- due to a
10809 bug in texinfo.tex it is necessary to use the `-e' switch with
10812 Improving info about usage of groff units.
10816 2000-03-20 Werner LEMBERG <wl@gnu.org>
10818 * doc/groff.texinfo: Added section about man macro package
10819 (I've basically taken groff_man.man). Introducing new indices `ma'
10820 for macros/strings and `gl' for glyph names. Other minor fixes.
10822 * tmac/groff_man.man: Fixed some typos.
10824 2000-03-19 Werner LEMBERG <wl@gnu.org>
10826 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
10829 * doc/texinfo.tex: New file.
10831 2000-03-18 Werner LEMBERG <wl@gnu.org>
10833 * doc/groff.texinfo: Improved section on number registers. Other
10836 2000-03-16 Werner LEMBERG <wl@gnu.org>
10838 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
10841 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
10842 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
10843 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
10844 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
10846 * src/preproc/grn/grn.man: Better synopsis; added copyright.
10848 * src/roff/grog/grog.man: Updated copyright date.
10850 2000-03-14 Francisco Andrés Verdú <pandres@dragonet.es>
10852 * configure.in: Added test for strdup.
10854 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
10857 Replaced dynamic allocation of arrays `[...]' with `new' operator.
10861 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
10863 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
10865 2000-03-11 Werner LEMBERG <wl@gnu.org>
10867 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
10869 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
10870 * src/include/lib.h: Remove some spaces.
10872 2000-03-10 Werner LEMBERG <wl@gnu.org>
10874 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
10875 initializers from arguments (some compilers don't like this).
10877 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
10879 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
10880 used by pic and eqn to tell grohtml where the graphic regions start
10882 * src/libs/libgroff/Makefile.sub: Use it.
10883 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
10884 graphic_start() and graphic_end() from htmlindicate.cc.
10886 2000-03-09 Werner LEMBERG <wl@gnu.org>
10888 * tmac/tmac.safer: Will now work correctly in compatibility mode.
10889 * tmac/groff_man.man: More fixes.
10891 2000-03-08 Werner LEMBERG <wl@gnu.org>
10893 * doc/Makefile: Added texput.log to the `clean' target.
10894 * doc/groff.texinfo: Added info about delimiters for escapes.
10896 2000-03-08 Bernd Warken <bwarken@mayn.de>
10898 * src/preproc/pic/pic.man: Add info on conversion of pic images to
10899 other graphic formats.
10901 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
10903 * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
10904 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
10905 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
10908 2000-03-07 Werner LEMBERG <wl@gnu.org>
10910 * doc/groff.texinfo: Spelling fixes.
10912 2000-03-06 Werner LEMBERG <wl@gnu.org>
10914 * tmac/groff_man.man: Completely revised to cover everything in
10917 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
10918 Other minor fixings.
10919 * src/roff/troff/env.cc (environment_copy): Improve error message and
10921 * src/roff/troff/TODO: Updated.
10923 * doc/Makefile: Bug fixes -- this is still provisional, though...
10925 * tmac/eqnrc: Small fixes.
10927 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
10929 Adding a request `evc' to copy environments.
10931 * src/roff/troff/env.cc (environment::copy, environment_copy):
10933 * src/roff/troff/env.h: Add prototype.
10935 2000-03-05 Francisco Andrés Verdú <pandres@dragonet.es>
10937 Adding strsep() -- Solaris 8 doesn't have it.
10939 * configure.in: Test it.
10940 * src/devices/grolbp/lbp.cc: Add code.
10942 2000-03-05 Werner LEMBERG <wl@gnu.org>
10944 * src/roff/troff/div.cc (macro_diversion::output,
10945 top_level_diversion::output): Fixing an incompatibility with
10946 original troff: \x'0' updates the .a register also. Thanks to
10947 <Andries.Brouwer@cwi.nl> for pointing this out.
10948 * doc/groff.texinfo: Document it.
10950 * Makefile.in: Create Makefile.dep if necessary before calling the
10951 submake process to avoid warning about nonexistent file.
10953 * NEWS, PROJECTS: Updated.
10955 2000-03-04 Werner LEMBERG <wl@gnu.org>
10957 * tmac/troffrc: Add tmac.lbp.
10959 2000-03-03 Francisco Andrés Verdú <pandres@dragonet.es>
10961 * tmac/tmac.lbp: New file.
10962 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
10965 2000-03-03 Werner LEMBERG <wl@gnu.org>
10967 * Makefile.in: Fixing $(subdir).
10969 * README, NEWS: Small fixes.
10971 * test-groff: Adding path to grolbp.
10973 * configure.in: The (new) file src/xditview/Imakefile.in will be
10974 also configured -- it is now possible to build gxditview in a
10975 directory different from $srcdir.
10977 2000-03-02 Blake McBride <blake@florida-software.com>
10979 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
10981 * MORE.STUFF: Added website of bell labs and info about plot2dev.
10983 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
10985 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
10988 2000-02-29 Werner LEMBERG <wl@gnu.org>
10990 Adding GNU getopt to the groff distribution.
10992 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
10994 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
10995 * aclocal.a4: Remove GROFF_GETOPT function.
10996 * configure.in, Makefile.in, PROBLEMS: Update.
10997 * src/include/lib.h: Replace getopt tests with getopt.h.
10998 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
11000 * doc/groff.texinfo: Further checking/updating. Adding more index
11003 * man/groff_out.man: Fix nroff mode activation (for emacs).
11004 * man/groff_font.man: Add missing ligature.
11006 2000-02-28 Werner LEMBERG <wl@gnu.org>
11008 * doc/groff.texinfo: Further checking/updating. Adding more index
11011 * src/devices/grolbp/grolbp.man: Added a comment line at the
11012 beginning of the file (similar to shell scripts) which indicates
11013 that `tbl' should be used as a preprocessor.
11015 2000-02-27 Blake McBride <blake@florida-software.com>
11017 Adapting groff to MS Visual C++ 6.0 compiler (tested with
11018 Windows NT 4.0). Uses _MSC_VER define where necessary.
11020 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
11021 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
11022 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
11023 src/include/lib.h, src/libs/libgroff/errarg.cc,
11024 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
11025 src/preproc/refer/label.y, src/preproc/refer/label.cc,
11026 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
11027 src/roff/troff/div.cc, src/roff/troff/env.cc,
11028 src/roff/troff/input.cc, src/roff/troff/node.cc,
11029 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
11030 if_to_a() to avoid name clashes.
11031 * src/include/posix.h: Don't use unistd.h.
11032 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
11033 clause for integrating non-Unix xtmpfile() code.
11034 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
11035 structure; use "rt" for popen() in pipe_source(); add getpid()
11037 * src/roff/troff/node.cc: Use special versions of popen() in
11038 real_output_file() and pclose() in ~real_output_file().
11040 2000-02-27 Werner LEMBERG <wl@gnu.org>
11042 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
11043 LBP-8 series laser printers). This code has been contributed by
11044 Francisco Andrés Verdú <pandres@dragonet.es>.
11046 * src/devices/grolbp/*: The grolbp output device.
11047 * font/devlpb/*: The font description files.
11048 * Makefile.in: Add grolpb and devlbp subdirectories.
11050 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
11051 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
11054 * doc/groff.texinfo: Further checking/updating. Adding more index
11059 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
11061 * man/groff_font.man: Adding info about obsolete DESC keywords.
11062 * src/devices/grolj4/grolj4.man: Documenting additional DESC
11065 2000-02-26 Werner LEMBERG <wl@gnu.org>
11067 * src/preproc/grn/grn.man: Added info about the gremlin file format
11068 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
11070 2000-02-25 Werner LEMBERG <wl@gnu.org>
11072 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
11073 friends to be non-integer.
11075 * src/preproc/grn/grn.man: Document it.
11077 * doc/groff.texinfo: Further checking/updating. Adding more index
11080 2000-02-24 Werner LEMBERG <wl@gnu.org>
11082 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
11083 line thicknesses to be integer multiples of this value.
11085 * src/preproc/grn/grn.man: Commenting out the -s option -- the
11086 corresponding code doesn't work (yet).
11088 * doc/groff.texinfo: Further checking/updating. Adding more index
11091 2000-02-23 Werner LEMBERG <wl@gnu.org>
11093 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
11094 specify line thickness instead of base units. The new default
11095 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
11096 thick lines respectively.
11098 Removed unused variable `prevval'.
11100 * src/preproc/grn/grn.man: Updated.
11102 2000-02-22 Werner LEMBERG <wl@gnu.org>
11104 * src/preproc/grn/main.cc: Slight formatting.
11106 * src/roff/groff/groff.man: Formatting fix.
11107 * src/preproc/grn/grn.man: Ditto.
11109 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
11111 * doc/groff.texinfo: Further checking/updating.
11113 2000-02-21 Werner LEMBERG <wl@gnu.org>
11115 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
11117 * test-groff: Added grn subdir to path.
11119 * doc/groff.texinfo: Some restructing and other small improvements.
11121 * src/roff/groff/groff.cc (help): Fixed info string.
11123 2000-02-20 Werner LEMBERG <wl@gnu.org>
11125 * doc/meref.me: Fix description of .GS request.
11127 * src/roff/troff/troff.man: Fixing typo.
11129 Adding the `grn' preprocessor for gremlin graphic files.
11131 * src/preproc/grn/*: This is the Berkeley distribution written by
11132 David Slattengren and Barry Roitblat, adapted to groff by Daniel
11133 Senderowicz and Werner Lemberg.
11135 * doc/grnexampl.{me,g}: A sample for grn.
11137 * Makefile.in: Added subdirectory entry for grn.
11139 * src/roff/groff/groff.cc: Added support for grn. It can be now
11140 called with the switch `-g'.
11142 * src/roff/groff/groff.man: Updated.
11144 * src/roff/grog/grog.{man,pl,sh}: Updated.
11148 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
11150 * src/include/lib.h: Added xtmptemplate and made xtmpfile
11151 parametrically polymorphic.
11153 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
11154 and the alterations to xtmpfile.
11155 xtmpfile can be requested to return the filename created
11156 and asked not to unlink the temp file. The default behaviour
11157 if parameters are absent is exactly the same as before.
11159 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
11161 A new request `length' is available which returns the length of a
11162 string in a number register:
11164 * src/roff/troff/input.cc (length_macro): Implement it.
11165 * src/roff/troff/input.cc (init_input_requests): Register it.
11167 2000-02-11 Werner LEMBERG <wl@gnu.org>
11169 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
11170 of the `substring' request.
11172 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
11175 * src/roff/troff/TODO, NEWS: Updated.
11177 2000-02-09 Werner LEMBERG <wl@gnu.org>
11179 * src/roff/groff/groff.man: Added an example.
11181 2000-02-06 Werner LEMBERG <wl@gnu.org>
11183 I've considerably modified the directory structure of the
11184 distribution to get a more vertical layout. For example, the number
11185 of top level directories has been reduced from 42 to 6.
11187 As a consequence, many changes, especially to the makefiles, were
11190 * The makefile variables `top_builddir' and `top_srcdir' have been
11191 introduced. Virtually all relative paths have been replaced with
11192 absolute ones using these two variables.
11194 * Dependencies (in the files `Makefile.dep') are no longer part of
11195 the distribution. Instead, they are created during a `make install'
11196 in the build directory.
11198 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
11199 make `top_srcdir' and `top_builddir' absolute.
11201 Some other changes:
11203 * Man pages now depend on the files `VERSION' and `REVISION'.
11205 * The added shell script `mkinstalldirs' will replace `mkdir' in
11208 * VERSION: Version number increased to 1.16.
11210 2000-02-04 Werner LEMBERG <wl@gnu.org>
11212 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
11214 * Makefile.in: Removed $(tmac_m) since it is no longer needed
11215 (after an update of the mm stuff).
11217 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
11219 2000-02-03 Werner LEMBERG <wl@gnu.org>
11221 The .psbb request will now also accept Mac PS images (i.e. using LF
11222 as the EOL character).
11224 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
11225 (with slight modifications).
11226 * troff/input.cc (do_ps_file): Use it.
11228 * test-groff: Add grohtml and grolj4 output devices to PATH.
11230 2000-01-30 Werner LEMBERG <wl@gnu.org>
11232 * NEWS, MORE.STUFF: Updated.
11234 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
11236 Add the `srand' command to pic.
11238 * pic/lex.cc, pic/pic.y: Implement it.
11239 * pic/pic.man: Document it.
11240 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
11242 2000-01-30 Werner LEMBERG <wl@gnu.org>
11244 Add a new request `.psbb'. This does exactly what the external
11245 program psbb did. It scans a PostScript image file for a
11246 %%BoundingBox comment and extracts the bounding box values (in
11247 PostScript units) which are then stored in the four new (read-only)
11248 number registers `llx', `lly', `urx', and `ury'.
11250 This will allow the usage of the .PSPIC macro without worrying
11251 about unsafe behaviour of groff, i.e., it will work without the
11252 `-U' switch of groff.
11254 * troff/input.cc: Implement it.
11255 * tmac/tmac.pspic: Use it.
11256 * troff/troff.man, grops/grops.man, NEWS: Document it.
11257 * psbb/*, Makefile.in: Remove it since it is no longer needed.
11259 This is bloody C code simply adapted from psbb.c! Any improvements
11262 2000-01-29 Werner LEMBERG <wl@gnu.org>
11264 * man/groff_font.man: Minor clarifications.
11268 2000-01-28 Werner LEMBERG <wl@gnu.org>
11270 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
11272 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
11274 * man/groff_font.man: Brought up to date regarding tcommand
11276 * libgroff/font.cc: Handle everything after `--' as a comment
11278 * devps/*: Added comment delimiter inside devps font files.
11280 2000-01-28 Werner LEMBERG <wl@gnu.org>
11282 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
11283 \fC...\fP (which now works as expected).
11285 * troff/troff.man: Fix typo.
11287 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
11289 Completed the pass_filenames implementation in troff.
11291 * libdriver/input.cc: Will read the new `F' tcommand.
11292 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
11293 * troff/input.cc: Use it.
11295 2000-01-26 Werner LEMBERG <wl@gnu.org>
11297 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
11298 font will now be updated even if an invalid font is selected.
11300 2000-01-24 Werner LEMBERG <wl@gnu.org>
11302 * doc/homepage.ms: Updated for new tmac.arkup.
11304 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
11306 * tmac/tmac.arkup: Cleanup.
11308 Added `\&' to .HTML macro to `leave vertical mode', so to say.
11310 Removed obsolete .LINK macro completely.
11312 The macros .URL, .FTP, and .MAILTO now accept a third argument which
11313 will be immediately appended to the second argument (to be used with
11314 punctuation, for example).
11316 Disabled .CDFTP macro temporarily for security reasons.
11318 * tmac/groff_markup.man: Complete revision for latest changes in
11319 tmac.arkup -- note that it does not yet format correctly with
11322 2000-01-23 Bruno Haible <haible@clisp.cons.org>
11324 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
11325 * devutf8/R.proto: Add mappings for wp, lh, rh.
11326 * devutf8/NOTES: Updated.
11328 2000-01-23 Werner LEMBERG <wl@gnu.org>
11330 * doc/groff.texinfo: Updated version/copyright info.
11332 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
11334 Added support for two new directives in device descriptions:
11335 `pass_filenames' (to pass the input file name to the output device)
11336 and `use_charnames_in_special' (to support e.g. accented characters
11337 in the `X' request).
11339 * include/font.h, troff/charinfo.h: Declare it.
11341 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
11343 * devhtml/DESC: Use it.
11345 * troff/input.cc: New function encoded_char.
11347 * troff/token.h: Add test for `specialness'.
11349 2000-01-21 Werner LEMBERG <wl@gnu.org>
11351 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
11352 mistake from the list of files to be installed.
11354 2000-01-18 Werner LEMBERG <wl@gnu.org>
11356 * README: Added info how to apply patches.
11358 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
11360 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
11362 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
11364 * troff/input.cc: Add support for troffrc-end.
11366 * tbl/main.cc: Altered to issue table-start and table-end special
11367 characters if using the html device.
11369 * devhtml/*: Modified font files to incorporate html encoding of
11372 * tmac/groff_markup.man: New file documenting tmac.arkup.
11374 * tmac/troffrc-end: New file. This is invoked after all user
11375 specified macros. Currently used by the html device to include
11376 tmac.html. Thus no need for users to specify -mhtml anymore.
11378 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
11379 (MAN7): Add groff_markup.man.
11381 * tmac/tmac.an, tmac/tmac.html: Small html updates.
11383 * tmac/troffrc: tmac.arkup will now be called for the html device.
11385 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
11386 extra device specific information about fonts.
11388 * doc/homepage.ms: New file. It is an example how an HTML home page
11389 could look like with grohtml.
11391 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
11393 2000-01-12 Bruno Haible <haible@clisp.cons.org>
11395 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
11398 * devutf8/NOTES: Updated.
11400 2000-01-08 Bruno Haible <haible@clisp.cons.org>
11402 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
11403 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
11404 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
11405 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
11406 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
11407 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
11408 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
11409 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
11412 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
11414 2000-01-12 Fabrizio Polacco <fab@prosa.it>
11416 grolj4: Paper size will be searched case-insensitively.
11418 * include/lib.h: Add check for strcasecmp().
11419 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
11420 * configure.in: Check for strcasecmp().
11422 2000-01-11 Werner LEMBERG <wl@gnu.org>
11424 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
11427 2000-01-10 Werner LEMBERG <wl@gnu.org>
11429 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
11432 Add a new read-only register, `.Y', which contains the groff
11435 * troff/input.cc (init_input_requests): Define it.
11436 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
11437 * doc/groff.texinfo, troff/troff.man: Document it.
11439 * libgroff/Makefile.sub (version.cc): Add definition of
11440 `Version_string[]', consisting of `<major>.<minor>.<revision>'
11441 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
11442 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
11443 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
11444 troff/input.cc, pfbtops/pfbtops.c: Use it.
11446 2000-01-10 Fabrizio Polacco <fab@prosa.it>
11448 Add a revision scheme to the groff package.
11450 * REVISION: New file.
11451 * libgroff/Makefile.sub (version.cc): Use it to define
11452 `revision_string[]'.
11453 * grops/psrm.cc: Use revision_string (converted to an unsigned
11454 integer) in constructor of resource_manager.
11456 2000-01-10 Bruno Haible <haible@clisp.cons.org>
11458 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
11460 * Makefile.in (DEVDIRS): Add devutf8.
11461 * grotty/tty.cc: Include device.h.
11462 (glyph): Change type of `code' to `unsigned int'.
11463 (tty_printer): New field is_utf8. Constructor takes device argument.
11464 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
11465 (tty_printer::add_char): Change type of first arg to `unsigned int'.
11466 (tty_printer::put_char): New function.
11467 (tty_printer::end_page): Use put_char() instead of ::putchar().
11468 (make_printer): Pass device to tty_printer constructor.
11469 * nroff.sh: Determine default device by calling 'locale'. As a
11470 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
11471 Recognize UTF-8 locales.
11472 * tmac/eqnrc: Recognize utf8 like latin1.
11473 * tmac/troffrc: Device utf8 needs tmac.tty.
11475 2000-01-07 Werner LEMBERG <wl@gnu.org>
11477 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
11479 2000-01-07 Paul Eggert <eggert@twinsun.com>
11481 Add a new predefined writeable number register, `year',
11482 which contains the current year.
11484 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
11485 * tmac/tmac.s: Use it.
11486 * troff/input.cc (init_registers): Initialize it.
11488 2000-01-06 Werner LEMBERG <wl@gnu.org>
11490 * PROBLEMS: Fixed typo.
11492 2000-01-04 Paul Eggert <eggert@twinsun.com>
11494 * PROBLEMS: Add Y2k advice for the yr number register.
11496 2000-01-03 Paul Eggert <eggert@twinsun.com>
11498 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
11500 2000-01-02 Werner LEMBERG <wl@gnu.org>
11502 * tmac/tmac.arkup: Slight modification of macros to provide better
11503 appearance for non-HTML formats.
11505 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
11507 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
11508 does not automatically translate to malloc(n) on all OSes
11509 (e.g., SunOS) so do it explicitly. Also, check the returned
11512 2000-01-01 Werner LEMBERG <wl@gnu.org>
11514 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
11516 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
11517 expects this variable
11519 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
11521 * doc/Makefile: Added instructions to create HTML and text
11522 versions of some files.
11524 1999-12-31 Werner LEMBERG <wl@gnu.org>
11526 * Updated INSTALL.gen.
11528 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
11529 better resp. correctly with non-HTML devices.
11531 Version 1.15 released
11532 =====================
11534 1999-12-28 Werner LEMBERG <wl@gnu.org>
11536 * NEWS, VERSION: Changed to 1.15
11538 1999-12-27 Paul Eggert <eggert@twinsun.com>
11540 * nroff/nroff.man: -S is safer, not safe.
11542 * groff/groff.cc (main): Use `safer', not `safe', in variable
11543 names. This does not change the behavior.
11545 * troff/input.cc (main): Likewise.
11547 * nroff/nroff.sh: Likewise.
11549 * troff/input.cc (prepend_string): New function.
11550 (main): Prepend -msafer, so that we check macro libraries for
11553 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
11555 Version 1.14 released
11556 =====================
11558 1999-12-26 Werner LEMBERG <wl@gnu.org>
11560 * NEWS, VERSION: Changed to 1.14.
11562 1999-12-24 Werner LEMBERG <wl@gnu.org>
11564 * refer/refer.cc: Fixing the last fix.
11566 Version 1.13 released
11567 =====================
11569 1999-12-23 Werner LEMBERG <wl@gnu.org>
11571 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
11576 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
11578 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
11579 document conventions, the version number must be a real.
11581 Version 1.12.1 released
11582 =======================
11584 1999-12-22 Werner LEMBERG <wl@gnu.org>
11586 * VERSION: Changed to 1.12.1.
11588 1999-12-22 Alan Rooks <arooks@istar.ca>
11590 * refer/refer.cc (do_file): Slight modification to satisfy the
11591 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
11594 1999-12-20 Werner LEMBERG <wl@gnu.org>
11596 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
11599 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
11600 list of unsafe requests.
11602 * pic/pic.man: Fixed a typo.
11604 * man/groff_out.man: Fixed a typo.
11606 1999-12-18 Werner LEMBERG <wl@gnu.org>
11608 * Makefile.in: Doc fixes.
11610 1999-12-17 Fabrizio Polacco <fab@prosa.it>
11612 * groff/groff.cc: Missing `U' option added to getopt().
11614 * troff/troff.man: Missing `U' option added to synopsis.
11616 Version 1.12 released
11617 =====================
11619 1999-12-14 Werner LEMBERG <wl@gnu.org>
11621 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
11624 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
11625 with the more appropriate terms `safer' and `unsafe'.
11627 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
11628 sys_nerr and sys_errlist[].
11630 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
11632 * pic/pic.y, pic/pic.cc: Added check for fmod().
11634 1999-12-13 Werner LEMBERG <wl@gnu.org>
11636 * VERSION: Changed to 1.12.
11638 Here some patches from various sources; most of them taken from
11639 the Debian distribution.
11641 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
11642 tmac/Makefile.sub: New files copied directly from the NetBSD
11643 distribution. Probably, some additional adaptation later on is
11646 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
11647 of unsafe requests.
11649 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
11650 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
11651 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
11652 (`-S') is now the default.
11654 * README, NEWS: Updated.
11656 1999-12-09 Werner LEMBERG <wl@gnu.org>
11658 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
11660 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
11662 1999-12-06 Werner LEMBERG <wl@gnu.org>
11664 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
11665 grief than relief today. Additionally, it is against the GNU
11668 * configure: Recreated.
11670 1999-12-05 Werner LEMBERG <wl@gnu.org>
11672 * configure.in: Added GROFF_LIBM.
11674 * configure: Recreated.
11676 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
11679 * Makefile.in: Added definition of $(LIBM).
11681 * Makefile.comm (LIBM): Removed.
11683 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
11685 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
11687 * doc/Makefile: Added rule for generation pic.html.
11689 (clean): Files produced by grohtml will be removed also.
11691 * doc/pic.ms: Small fix.
11693 * tmac/tmac.html: Fixed suppression of headers.
11695 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
11697 * tmac/tmac.html: Fixing horizontal arrows.
11699 Turning off hyphenation.
11701 * tmac/tmac.an: Improved support for grohtml; better indentation,
11702 no footers/headers.
11704 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
11706 * tmac/tmac.arkup: Added CDFTP macro
11708 * tmac/tmac.html: All headers are turned off for ms, me, and mm
11711 * tmac/troffrc: Some additions for HTML stuff.
11713 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
11715 * tmac/tmac.html: Small changes.
11717 1999-09-26 Werner LEMBERG <wl@gnu.org>
11719 * doc/groff.texinfo: Minor fixes.
11721 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
11723 * devhtml/TR: Changed spacewidth to 3.
11725 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
11727 * tmac/tmac.html: Moved markup macros to tmap.arkup.
11729 * tmac/tmac.arkup: New file.
11731 * grohtml/ChangeLog: New file.
11733 1999-09-16 Werner LEMBERG <wl@gnu.org>
11735 * doc/groff.texinfo (Common Features): Added Copying chapter.
11736 Changed format to @smallbook.
11738 1999-09-15 Werner LEMBERG <wl@gnu.org>
11740 * NEWS: Added info about groff.texinfo.
11742 * doc/groff.texinfo: Will now compile (using texi2dvi) without
11745 1999-09-14 Werner LEMBERG <wl@gnu.org>
11747 * groff/groff.man: More updates.
11749 1999-09-13 Werner LEMBERG <wl@gnu.org>
11751 * doc/groff.texinfo: New file. This manual is still very
11752 rudimentary. It has been originally contributed by Trent
11753 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
11756 * INSTALL: Added information about the `doc' subdir
11758 * troff/troff.man: Minor fixes.
11760 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
11763 * troff/input.cc (usage): Added missing `-ffam' to usage message.
11765 * Makefile.in (dist): groff-$(version).tar.gz must be removed
11766 also, otherwise it is included itself in another call of `make
11769 * groff/groff.cc (synopsis): Removed superfluous space.
11771 * PROJECTS, PROBLEMS, NEWS: Updated.
11773 * VERSION: Updated to 1.12beta.
11775 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
11777 * README: Updated: Included documentation about CVS repository,
11778 mailing lists, and daily snapshots.
11780 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
11782 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
11784 * tmac/tmac.an: If the tag didn't fit into the space that the
11785 macro `TP' specifies, the rest of the tag went into the space for
11788 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
11790 * grolj4/lj4.cc: Added duplex printing (option `-d').
11792 * grolj4/grolj4.man: Document duplex printing.
11794 1999-09-12 Werner LEMBERG <wl@gnu.org>
11796 * doc/Makefile (pic.ps): Fixed rule which caused problems with
11797 non-GNUish sed programs.
11799 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
11802 * configure.in (LIBS): Added `-lc'
11804 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
11806 * pic/tex.cc (solid_arc): Casting M_PI to double.
11808 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
11810 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
11811 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
11812 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
11814 * groff/groff_man.man: New file. This manual page was originally
11815 written for the Debian GNU/Linux system by Susan G. Kleinmann
11818 * eqn/list.cc (list_box::compute_metrics,
11819 list_box::compute_sublist_width): Removed variable declaration to
11820 avoid shadowing warnings.
11822 * grops/psrm.cc (resource_manager::process_file): Ditto.
11824 * tfmtodit/tfmtodit.cc (main): Ditto.
11826 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
11827 to avoid shadowing warnings.
11829 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
11830 shadowing loop variable.
11832 * groff/groff.man, troff/troff.man: Added doc about grohtml.
11834 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
11836 New grohtml frontend to convert groff input to html.
11838 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
11840 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
11842 * tmac/eqnrc: Added html device.
11844 * tmac/tmac.html: New file.
11846 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
11847 (troff_output::start_picture, troff_output::finish_picture),
11848 tbl/main.cc (process_input_file):
11849 Surrounded output with `graphics_start' and `graphics_end' so that
11850 the html driver can identify non-text portions.
11852 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
11853 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
11854 grotty/tty.ps (tty_printer::set_char): Additional parameter
11857 * include/printer.h: Class printer: New function
11858 set_char_and_width; new variables (is_char_named, is_named_set,
11859 named_command, named_char_s, named_char_n) to hold information
11860 about named characters -- needed by the html driver.
11862 * libdriver/printer.cc (printer::set_ascii_char,
11863 printer::set_special_char): Use set_char_and_width.
11865 * devhtml/*: New device files for html driver.
11867 * grohtml/*: New driver grohtml.
11869 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
11871 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
11874 1999-09-11 Luke Mewburn <lukem@netbsd.org>
11876 * libgroff/string.cc (search): Small fix to test against NULL
11879 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
11881 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
11882 \b'abc') were stacked in reverse order when processed in a
11885 * troff/node.h: Added `*last' to struct `node' to make the above
11888 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
11889 The default scale for the 'f' and 't' graphics functions were 'm'
11890 rather than 'u' (i.e., no scaling).
11892 1999-09-11 Peter Miller <peterm@jna.com.au>
11894 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
11895 do_file), soelim/soelim.man: Added `-I file' option to soelim,
11896 defining include paths.
11898 * soelim/soelim.cc (include_path_append): New function.
11900 1999-09-11 Larry Jones <larry.jones@sdrc.com>
11902 * tbl/main.cc (process_options): Unix (at least Documenter's
11903 Workbench) tbl allows arbitrary non-alpha characters between
11906 1999-09-11 Paul Eggert <eggert@twinsun.com>
11908 Y2k fixes. Don't assume that the current year precedes 2000.
11910 * doc/meref.me: Add \n(y2, \n(y4.
11912 * tmac/doc-common (Yr): New number register.
11913 (Dd): Don't assume current year precedes 2000.
11915 * tmac/tmac.e (td): Likewise.
11916 (y2, y4): New number registers.
11918 * pic/pic.man: Update reference for pic paper to May, 1991
11921 1999-09-11 Werner LEMBERG <wl@gnu.org>
11923 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
11924 Removed quotation marks which prevented correct expansion of
11927 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
11929 1999-09-10 Werner LEMBERG <wl@gnu.org>
11931 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
11934 * Removed configure.old.
11936 1999-08-31 Werner LEMBERG <wl@gnu.org>
11938 * VERSION: Updated to 1.11.1
11940 1999-05-27 Werner LEMBERG <wl@gnu.org>
11942 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
11944 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
11945 added quotations around $(tmac_wrap) to avoid syntax error if
11948 * configure: Newly generated using autoconf 2.13.
11950 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
11952 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
11954 * README, PROJECTS, NEWS, INSTALL, VERSION,
11955 doc/Makefile. doc/pic.ms, groff/groff.man:
11956 Prepare for 1.11 release. No code changes.
11957 Documentation for pic added (doc/pic.ms).
11959 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
11961 * Version 1.10 released.
11963 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
11965 * afmtodit/afmtodit.pl: Avoid comment on first line.
11967 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
11969 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
11970 * configure.in: Call it.
11972 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
11973 (distfiles): Doesn't depend on config.log or config.cache.
11975 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
11977 * grog/grog.sh: Use print "" rather than print in END rule.
11979 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
11981 * tbl/main.cc (process_data): Don't give error for excess data
11982 entries that are comments.
11984 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
11986 * tbl/main.cc (process_data): Fix case where new for-scope rules
11987 silently change meaning of code.
11989 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
11991 * troff/env.cc (hyphenate): Loop over all consecutive sequences
11992 of non-zero hyphenation codes.
11994 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
11996 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
11998 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
12000 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
12002 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
12004 * tmac/tmac.andoc: Make it work in compatibility mode.
12006 * refer/token.h (token_info::is_range_sep): New function.
12007 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
12008 * refer/ref.cc (reference::output): More sophisticated check for
12011 * devps/prologue.ps (MANUAL): New procedure.
12012 * grops/ps.cc (main): New -m option.
12013 (usage): Include -m.
12014 (ps_printer::~ps_printer): Implement -m.
12016 * aclocal.m4 (GROFF_G): New macro.
12017 * configure.in: Call it.
12018 * Makefile.in (g): Provided by configure.
12020 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
12022 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
12025 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
12026 (tmac_m, tmac_s): Deleted.
12027 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
12028 tmac_s_prefix): New variables.
12029 (MDEFINES): Change accordingly.
12030 * Makefile.comm (.man.n): Use new TMAC_* variables.
12031 * configure.in (GROFF_TMAC): Call.
12032 * aclocal.m4 (GROFF_TMAC): Define.
12033 * tmac/Makefile.sub (stamp_wrap): New target.
12034 (install_data, uninstall_sub): Handle macro wrapping.
12036 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
12038 * tbl/main.cc (main): Ignore -T option.
12040 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
12042 * devlj4/generate/special.map: Add definition of \(nb.
12044 * tmac/tmac.dvi: Add definition of \(nb.
12046 * troff/dictionary.c (dictionary::dictionary): association::v gets
12047 initialized by association::association.
12049 * tmac/Makefile.sub: Avoid using temporary files when installing.
12051 * troff/env.cc (environment::set_font): Make bad font number a
12054 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
12056 * Makefile.in (datadir): Use share rather than lib.
12058 * groff/groff.cc (basename): Rename to xbasename.
12060 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
12062 * Makefile (CCLIBS): Don't use.
12063 * Makefile.ccpg: Likewise.
12065 * acgroff.m4: Rename to...
12066 * aclocal.m4: Modify extensively for autoconf 2.
12067 * configure.in: Likewise.
12068 * Makefile.in: Likewise.
12070 * groff/pipeline.c (const): Declare as empty if __STDC__ not
12072 (xstrsignal): Check for definition of NSIG. Conditionalize
12073 on SYS_SIGLIST_DECLARED. Make return type const.
12075 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
12077 * troff/input.cc (interpolate_macro): Rephrase missing space
12080 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
12082 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
12083 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
12084 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
12085 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12086 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
12087 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
12088 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
12089 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
12090 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
12091 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
12092 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
12095 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
12097 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
12099 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
12101 (macro_iterator::macro_iterator): Add additional argument.
12103 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
12105 * troff/div.cc (vertical_size::vertical_size): In place of integer
12106 specifying line spacing use cunits specifying post vertical
12108 (macro_diversion::output, top_level_diversion::output): Likewise.
12109 * troff/div.h: Change declarations accordingly.
12110 * troff/env.cc (pending_output_line): Replace ls field by post_vs
12112 (pending_output_line::pending_output_line,
12113 pending_output_line::output, environment::output,
12114 environment::output_line, environment::output_title,
12115 environment::hyphenate_line): In place of
12116 integer specifying line spacing use cunits specifying post vertical
12118 (environment::environment): Add post_vertical_spacing and
12119 prev_post_vertical_spacing arguments.
12120 (environment::get_post_vertical_spacing): New function.
12121 (environment::total_post_vertical_spacing): New function.
12122 (environment::post_vertical_spacing): New function.
12123 (init_env_requests): Initialize pvs request and .pvs register.
12124 * troff/env.h: Change declarations.
12126 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
12128 * tmac/tmac.pspic: Immediately remove the temporary file.
12130 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
12132 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
12133 height is specified.
12135 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
12137 * tbl/table.c (struct vertical rule, class table_entry): Use int
12138 not short for start_row and end_row.
12140 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
12142 * troff/input.cc (trapping_blank_line, blank_line_macro): New
12144 (diverted_space_node::reread, process_input_stack): Call
12145 trapping_blank_line() rather than blank_line().
12146 (init_input_requests): Bind "blm" to blank_line_macro().
12148 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
12150 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
12152 * troff/env.cc (environment::possibly_break_line): Require that
12153 width total excluding width of final space node be greater than
12154 the target text length.
12156 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
12158 * troff/node.cc (kern_pair_node::vertical_extent): New function.
12160 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
12162 * troff/node.cc (charinfo_node): New class.
12163 (glyph_node, composite_node): Derive from charinfo_node. Change
12164 member functions accordingly.
12166 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
12168 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
12170 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
12172 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
12174 * devps/generate/textmap (notsubset): Add.
12176 * tmac/tmac.a4: New file.
12178 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
12180 * pic/main.cc (had_parse_error): New variable.
12181 (do_picture, do_whole_file): Set had_parse_error if yyparse()
12183 (main): Return 1 if had_parse_error is true.
12185 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
12187 * grolj4/lj4.cc (main): Avoid use of strtoul.
12189 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
12191 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
12192 iso_8859_1 or $LESSCHARSET is latin1.
12194 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
12196 * hpftodit: New directory.
12197 * Makefile.in (CCPROGDIRS): Add hpftodit.
12198 * devlj4/generate: New directory.
12200 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
12202 * configure.in: Don't use AC_VFORK.
12203 * groff/pipeline.c (run_pipeline): Use fork() always.
12205 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
12207 * grops/ps.cc (main): Use %1 not %s in error message for -w.
12209 * Makefile.in (CCPROGDIRS): Add grolj4.
12210 (DEVDIRS): Add devlj4.
12211 * grolj4, devlj4: New directories.
12212 * tmac/troffrc: Handle lj4.
12213 * tmac/tmac.lj4: New file.
12215 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
12217 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
12219 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
12221 * troff/input.cc (do_if_request): At end of second string, switch
12222 environments before getting next token.
12224 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
12226 * devps/psstrip.sed: Split rule that strips whitespace on either
12227 side of delimiters.
12229 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
12231 * troff/node.h (font_family::make_definition): Add return value to
12232 declaration. * troff/symbol.h (symbol::operator==,
12233 symbol::operator!=): Likewise.
12235 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
12237 * groff/groff.cc (main, help, synopsis): Handle -S.
12238 (possible_command::insert_arg): New function.
12240 * tmac/tmac.safer: New file.
12241 * tmac/msafer.man: New file.
12242 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
12244 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
12246 * pic/pic.h, pic/main.cc (safer_flag): New variable.
12247 * pic/pic.y (placeless_element): Avoid unsafe operations if
12248 `safer_flag' is set.
12249 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
12251 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
12253 * eqn/lex.cc (get_token): Put call to add_context() in block to
12254 work around Sun C++ 4.0 bug.
12256 * include/stringclass.h (operator +): Use ?: instead of `if' to
12257 work around Sun C++ 4.0 bug.
12259 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
12261 * tbl/main.cc (process_format): Accept - as a synonym for the _
12264 * libbib/index.cc (minus_one): Don't declare as const.
12266 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
12268 * troff/input.cc (get_char_for_escape_name): Push back a newline.
12270 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
12272 * troff/input.cc (write_macro_request): New function.
12273 (init_input_requests): Bind write_macro_request to writem.
12275 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
12277 * tmac/tmac.s (@EN): Turn filling back on even if there was no
12280 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
12282 * tmac/tmac.s (@TS): Renamed from TS.
12283 (TS): Call LP then TS again.
12284 (cov*ab-init): Alias @TS to TS.
12286 * tmac/tmac.s: Allow QP or RS to initialize.
12288 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
12289 Move initializations of PS and LL here.
12290 (par@init): Don't initialize HY. Avoid changing environment 0.
12291 (par*env-init): Don't all par@reset.
12293 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
12295 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
12297 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
12299 * Makefile.in (MDEFINES): Add LDFLAGS.
12300 (LDFLAGS): Add definition line.
12302 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
12304 * troff/input.cc (get_optional_char): Split off error check into...
12305 (check_missing_character): New function.
12306 * troff/token.h: Declare it.
12307 * troff/env.cc (margin_character): Don't call get_optional_char.
12308 Only call tok.next() after making the node.
12310 * include/lib.h (getopt): Make 2nd argument char *const *.
12312 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
12314 * nroff/conftest.sh: Deleted.
12316 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
12318 * pic/make-dos-dist: Deleted.
12320 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
12322 * devps/psstrip.sed: Strip comments before stripping trailing
12325 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
12327 * Version 1.09 released.
12329 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
12331 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
12333 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
12335 * libgroff/font.cc (font::load_desc): Fix typo in error message.
12337 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
12339 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
12340 about returning without a value.
12342 * troff/charinfo.h (charinfo::get_special_translation): Cast
12343 TRANSLATE_NONE to int.
12345 * refer/token.cc (lookup_token, store_token): Remove bogus loop
12346 test. Fix test so that it works with n unsigned.
12348 * pic/pic.y (defaults_table): Fully bracket initializer.
12349 * pic/lex.cc (lookup_keyword): Likewise.
12350 * eqn/lex.cc (token_table, def_table): Likewise.
12351 * eqn/box.cc (param_table): Likewise.
12352 * troff/input.cc (warning_table): Likewise.
12353 * libgroff/font.cc (table): Likewise.
12354 * grops/ps.cc (ps_printer::special): Likewise.
12355 * grops/psrm.cc (resource_manager::process_file): Likewise.
12356 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
12357 * refer/command.cc (command_table): Likewise.
12358 * addftinfo/addftinfo.cc (param_table): Likewise.
12360 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
12361 about temp's being unused.
12362 (unused): New function.
12364 * groff/pipeline.cc: Declare c_fatal.
12366 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
12369 * libbib/index.cc (index_search_item::load): Prevent compiler
12370 warnings about fd_closer's being unused.
12371 (unused): New function.
12373 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
12375 * troff/input.cc (copy_mode_error): Make `prefix' static.
12378 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
12380 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
12381 HAVE_CC_OSFCN_H and modify accordingly.
12383 * troff/input.cc (init_charset_table): radicalex overlaps
12386 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
12387 udodo!hans@relay.NL.net).
12388 * groff/configure.in: Call it.
12390 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
12391 * groff/configure.in: Call it.
12392 * include/lib.h: Conditionalize declaration of pclose.
12394 * troff/div.cc (last_page_number): New global variable.
12395 (top_level_diversion::begin_page): Exit if we just printed the
12397 * troff/div.h (last_page_number): Declare it.
12398 * troff/input.cc (parse_output_page_list): Set last_page_number.
12400 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
12401 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
12402 tmac/tmac.X: Likewise.
12403 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
12404 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
12406 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
12408 * tmac/doc-ditroff (hK): Remove groff specific code which
12409 prevented page-breaks between separate manual entries. If this is
12410 the first page, don't set the page number to 1.
12412 * acgroff.m4 (GROFF_POSIX): New macro.
12413 * configure.in: Use it.
12415 * troff/node.cc (class real_output_file,
12416 real_output_file::real_output_file,
12417 real_output_file::~real_output_file): Conditionalize use of
12418 popen/pclose on POPEN_MISSING.
12419 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
12420 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
12421 (pipe_source): Similarily.
12423 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
12425 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
12426 presence of declarations by trying to compile example with
12427 conflicting declarations. (gcc only gives a warning for missing
12430 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
12432 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
12433 (from Ulrich Lauther).
12435 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
12437 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
12439 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
12441 * indxbib/indxbib.cc (write_hash_table): Add code for case where
12442 pointers and ints have different sizes.
12444 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
12446 * tmac/tmac.s (par*env-init): Call par@reset.
12448 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
12450 * tmac/tmac.s (@IP): Switch to a new environment when diverting
12452 (par*push-tag-env, par*pop-tag-env): New macros.
12454 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
12456 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
12457 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
12459 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
12460 comment. Include <time.h>.
12462 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
12464 * grops/ps.cc (is_small_h, is_small_v): Deleted.
12465 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
12468 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
12470 * troff/input.cc (read_request): Only print a prompt if reading
12471 from the terminal. Also clearerr on EOF if reading from the
12472 terminal. Declare isatty.
12474 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
12476 * refer/label.y: Rename map_t to map_func and extractor_t to
12479 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
12481 * include/assert.h: Don't use volatile.
12482 * libgroff/assert.cc: Likewise.
12484 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
12486 * troff/input.cc (abort_request): Look at character in tok before
12487 calling get_copy().
12489 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
12491 * troff/troff.h (NO_RETURN): Deleted.
12492 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
12493 * troff/input.cc (exit_troff): Likewise
12495 * Makefile.in: Remove `Making ...' messages since GNU make now
12498 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
12500 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
12502 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
12503 to constant 1 inch.
12505 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
12507 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
12509 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
12511 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
12512 MARK_REG if there was no left delimiter.
12514 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
12516 * pic/troff.cc (troff_output::text): Set line thickness to
12517 relative before outputting text.
12519 * tmac/tmac.e (@k): Don't zero ?T.
12522 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
12524 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
12526 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
12528 * troff/input.cc (decode_args): Warn about unquoted tabs (from
12531 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
12533 * troff/input.cc (ignoring): New variable.
12534 (ignore): Set ignoring during call to do_define_macro.
12535 (do_define_macro): Clear ignoring before interpolating terminating
12537 (copy_mode_error): New function.
12538 (get_char_for_escape_name, read_long_escape_name,
12539 interpolate_arg): Use copy_mode_error.
12540 (warning_table): Add WARN_IG.
12541 * troff/troff.h (WARN_IG): Declare.
12542 (WARN_TOTAL): Change accordingly.
12544 * groff/pipeline.c (strsignal): Rename to xstrsignal.
12545 * groff/groff.cc (strsignal): Delete declaration.
12547 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
12549 * troff/div.cc (page_offset): Use 'm' as default scaling.
12551 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
12553 * nroff/nroff.sh: Ignore -u.
12555 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
12557 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
12559 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
12561 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
12563 (B2): With -Tascii, leave additional vertical space before
12564 and after. Ensure that the left and right indent is restored to
12565 what it was even if the point size changes. Don't call
12566 par@finish. Change the indent, line length and title length
12567 directly. With -Tascii, make the width of the box 1n less.
12568 (B1): Remember 1n at the current point size. Don't call
12569 par@reset. Change the indent, line length and title length
12570 directly. Ensure that the temporary indent is preserved.
12571 (par*box-mark-top): Turn off no spacing mode.
12573 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
12575 * Makefile.in (dist): Use .gz suffix.
12577 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
12579 * troff/input.cc (main): Add return 0.
12580 * pic/main.cc (main): Use return instead of exit.
12581 * tbl/main.cc (main): Likewise.
12582 * eqn/main.cc (main): Likewise.
12583 * grops/ps.cc (main): Likewise.
12584 * grotty/tty.cc (main): Likewise.
12585 * groff/groff.cc (main): Likewise.
12586 * grodvi/dvi.cc (main): Likewise.
12587 * refer/refer.cc (main): Likewise.
12588 * indxbib/indxbib.cc (main): Likewise.
12589 * lkbib/lkbib.cc (main): Likewise.
12590 * soelim/soelim.cc (main): Likewise.
12591 * addftinfo/addftinfo.cc (main): Likewise.
12592 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
12593 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
12595 * troff/token.h (process_input_stack): Don't declare as static.
12596 * troff/input.cc: Likewise.
12598 * troff/node.c (invalidate_fontno): Make it a static member of
12599 class font_family. Change callers.
12600 * troff/node.c: Change declaration.
12602 * tbl/main.cc (struct input_entry_format): Add explicit public
12604 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
12605 struct double_hline_stuff): Likewise.
12606 * tbl/table.h (struct entry_format): Likewise.
12607 * pic/object.h (struct saved_state): Likewise.
12609 * include/stringclass.h: Add forward declarations of friend
12610 functions that are later declared as inline. Don't include inline
12611 specifier in friend declaration.
12613 * libgroff/lib.h: Declare popen and pclose.
12614 * acgroff.m4 (GROFF_POPEN): New macro.
12615 * configure.in: Call it.
12617 * include/lib.h (PI): New constant. Undef first if necessary.
12618 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
12619 * grops/ps.cc (degrees, radians): Likewise.
12620 * libgroff/font.cc (font::get_skew): Likewise.
12622 * grops/ps.cc (is_ascii): New function.
12623 (ps_output::put_string): Use is_ascii. Use csprint rather than
12625 (ps_printer::define_encoding): Use csspace.
12626 * libgroff/strtol.c (ISASCII): New macro.
12627 (strtol): Cast arguments to is*() and tolower() to unsigned char.
12628 Use ISASCII rather than isascii.
12629 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
12630 * libgroff/cset.cc: Likewise.
12631 * libdriver/input.cc: Include cset.h.
12632 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
12635 * refer/refer.cc (main): Use %ld rather than %d for longs.
12637 * libbib/index.cc (index_search_item_iterator::get_tag): Use
12640 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
12642 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
12644 * troff/input.cc (hyphenation_code): Skip white space between
12647 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
12649 * tbl/table.h (table::entry_list_tailp): New member.
12650 (table::table): Initialize it.
12651 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
12654 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
12656 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
12657 with negative horizontal positions. Remove casts of glyph::hpos to
12659 (USHRT_MAX): Delete definition.
12660 (SHRT_MAX, SHRT_MIN): New definitions.
12661 (glyph::hpos): Change type to short.
12662 (tty_printer::end_page): Output multiple backspaces if necessary.
12663 Remove casts of glyph::hpos to int.
12665 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
12667 * tmac/tmac.s (@RT): New definition.
12669 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
12671 * refer/refer.cc (do_file): Make sure current_filename is set when
12674 * pic/common.cc (common_output::dot_line): Handle zero length
12677 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
12679 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
12680 (par@init): Initialize \n[HY].
12682 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
12684 * troff/dictionary.cc (dictionary::remove): Continue when
12687 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
12689 * Makefile.com (.y.cc): Avoid ending up with two versions of
12692 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
12694 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
12695 (\(,C): Likewise. Also fix typo.
12697 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
12699 * lib.h: Delete extraneous semi-colon.
12701 * Add pso request: `so' from a pipe.
12702 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
12703 (file_iterator::close): New function.
12704 (file_iterator::~file_iterator, file_iterator::next_file): Use
12705 file_iterator::close.
12706 (file_iterator::backtrace): Say `process' rather than `file' when
12707 the stream is popened.
12708 (pipe_source): New function.
12709 (init_input_requests): Bind ".pso" to pipe_source.
12711 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
12713 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
12715 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
12716 digits in lower case.
12718 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
12720 * Version 1.08 released.
12722 * Makefile.in (dist): Insert || true after ln -s commands that
12725 * mm: Update to mm 1.16.
12727 * acgroff.m4 (GROFF_CSH_HACK): New macro.
12728 * configure.in: Call GROFF_CSH_HACK. Substitute for
12730 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
12732 * nroff/Makefile.sub (nroff): New target.
12733 (install_data): Install nroff.
12734 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
12735 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
12737 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
12739 * eqn/Makefile.sub (neqn): Add chmod +x.
12741 * grog/Makefile.sub (grog): Remove spurious semi-colon.
12743 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
12745 * troff/input.cc (string_iterator::string_iterator()): Initialize
12748 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
12750 * troff/div.cc (macro_diversion::space,
12751 top_level_diversion::space): Don't set high_water_mark.
12752 (macro_diversion::output, top_level_diversion::output): Don't
12753 include post line space in high water mark.
12755 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
12757 * eqn/eqn.y: Don't define YYDEBUG.
12758 * pic/pic.y: Likewise.
12760 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
12762 * tmac/tmac.e ([3): Add space after comma following editors.
12763 Change double spaces to single spaces.
12764 ([4): Change double spaces to single spaces.
12766 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
12767 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
12768 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
12769 after %!PS-Adobe- (for Newsprint).
12771 * troff/div.cc (top_level_diversion::begin_page): When
12772 before_first_page is 1, set page_number to 1.
12774 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
12776 * eqn/box.cc (box::top_level): Protect equation with \&.
12778 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
12780 * groff/groff.cc (possible_command::set_name): Delete old name.
12782 * groff/groff.cc (possible_command::~possible_command): Use
12785 * troff/node.cc (troff_output_file::begun_page): New member.
12786 (troff_output_file::troff_output_file): Initialize it.
12787 (troff_output_file::really_begin_page): Only output V command if a
12788 page has been begun.
12790 * pic/pic.y (placeless_element): Delete argument to PRINT after
12793 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
12795 * Make wrapman work.
12796 * troff/div.h (class top_level_diversion): Replace
12797 first_page_begun by before_first_page (with opposite sense).
12798 * Change first_page_begun to before_first_page inverting sense.
12799 * troff/div.cc (class nl_reg): New class.
12800 (init_div_requests): Use class nl_reg for \n(nl.
12801 (top_level_diversion::begin_page): Don't call
12802 output_file::begin_page if before_first_page is 2;
12803 reset before_first_page afterwards. If have_next_page_number is
12804 false, then always increment page_number.
12805 * tmac/tmac.an: Set traps within TH rather than at the top-level.
12806 Restore compatibility mode after loading, and then disable
12807 compatibility mode in TH.
12809 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
12811 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
12813 * troff/node.h (output_file::trailer): Declare.
12814 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
12815 * troff/node.cc (output_file::trailer): New function.
12816 (troff_output_file::~troff_output_file): Move most code into...
12817 (troff_output_file::trailer): New function.
12818 (class troff_output_file): Delete page_length member. Declare
12820 (troff_output_file::really_begin_page): Use current page length
12821 for final V command.
12823 * tbl/main.cc (struct options): New decimal_point_char member.
12824 (options::options): Initialize this.
12825 (process_options): Implement decimalpoint option.
12826 (process_data): Pass decimal_point_char option to table::table.
12827 * tbl/table.h (class table): New decimal_point_char member.
12828 (table::table): Add additional argument.
12829 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
12830 second argument specifying decimal point character. Use this
12832 (table::table): Initialize decimal_point_char.
12833 (table::add_entry): Change call to find_dot.
12835 * troff/input.cc (get_copy, token::next): Implement \V.
12836 (interpolate_environment_variable): New function.
12838 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
12840 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
12841 * pic/pic.y: Likewise.
12843 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
12845 * refer/ref.cc (reference::insert_field, reference::delete_field):
12847 * troff/number.cc (parse_term): Likewise.
12849 * acgroff.m4 (GROFF_PROG_YACC): New macro.
12850 * configure.in: Use GROFF_PROG_YACC.
12852 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
12854 * Makefile.in (OPTIMIZE): New define.
12855 (DEBUG): Empty by default.
12856 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
12858 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
12859 (GROFF_ARRAY_DELETE): Likewise.
12860 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
12862 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
12864 * devps/psstrip.sed: Use different delimiter on last line (so that
12865 it works with BSD 4.4 sed.)
12867 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
12869 * devps/psstrip.sed: Delete comments.
12871 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
12872 optind, opterr, optarg.
12873 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
12876 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
12878 * Makefile.in (check): Dummy target.
12880 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
12882 * Version 1.07 released.
12884 * Integrate mm 1.11.
12886 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
12887 where start_col was meant.
12889 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
12891 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
12893 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
12895 * troff/input.cc (token::next): Make \z\o'...' and similar things
12898 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
12900 (environment): Add margin_character_flags member.
12901 * env.cc (environment::environment(symbol),
12902 environment::environment(const environment *): Initialize
12903 margin_character_flags.
12904 (margin_character): Rewrite.
12905 (environment::output_line): Add a margin character if
12906 margin_character_flags is non-zero. Turn off the
12907 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
12908 zero, use margin_character_node without copying and then set
12909 margin_character_node to 0.
12911 * devps/DESC.in: Change minimum size to 1000.
12913 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
12915 * troff/symbol.h (symbol::hash): Change return type to unsigned
12917 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
12920 * test-groff: Use -r rather than -x.
12922 * grops/psfig.diff: Include in distribution again.
12924 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
12926 * Makefile.in (dist): Use gzip.
12928 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
12930 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
12931 unistd.h as well as in stdlib.h.
12932 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
12933 defined; otherwise include <sys/types.h> and <unistd.h> if
12934 UNISTD_H_DECLARES_GETOPT is defined.
12936 * configure.in: use builtin(include, ... rather than include(...
12937 * configure: Regenerate with autoconf 1.3.
12939 * libdriver/print.cc (printer::adjust_arc_center): Use new
12940 algorithm suggested by Andy Fyfe.
12942 * libdriver/printer.cc (printer::adjust_arc_center): New function.
12943 * include/printer.h: Declare this.
12944 * grops/ps.cc (ps_printer::draw): Use it.
12945 * grodvi/dvi.cc (dvi_printer::draw): Use it.
12947 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
12949 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
12951 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
12953 * eqn/main.cc (main): Handle "eqn -".
12955 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
12957 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
12959 * mm: Integrate version 1.08.
12961 * pic/troff.cc (troff_output::finish_picture): Set
12962 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
12963 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
12964 if it's not defined. Check whether the register is non-zero rather
12965 than whether it's not defined.
12966 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
12968 * indxbib/indxbib.cc: Move all signal handling into...
12969 * indxbib/signal.c: New file.
12970 * configure.in: Call AC_RETSIGTYPE.
12972 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
12973 * configure.in: Call GROFF_STRUCT_EXCEPTION.
12974 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
12976 * troff/input.cc (token::token, token::operator=): Work round SGI
12978 * pic/object.cc (position::position): Likewise.
12980 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
12982 * pic/pic.h: Move declaration of hypot().
12984 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
12986 * pic/pic.h: Declare hypot().
12988 * pic/pic.h: Define M_PI if necessary.
12990 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
12992 * tmac/tmac.e (re): Add alternative version that doesn't use groff
12995 * devps/prologue.ps (RE): Handle the possibility that the old font
12996 doesn't have a FontName entry.
12998 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
13000 * tmac/tmac.e (fam): Redefine to set family in environment 2.
13001 (@C): Use @fam not fam.
13003 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
13005 * lookbib/lookbib.cc (main): Change type of start to const char *.
13006 * lkbib/lkbib.cc (main): Likewise.
13008 * eqn/lex.cc (definition::definition): Don't use member
13009 initializer syntax for members of anonymous unions.
13011 * troff/input.cc (input_stack::backtrace): Change type of to const
13014 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
13016 * include/stringclass.h (class string): Declare inline friend
13017 functions as inline in class declaration.
13018 * troff/hvunits.h (class hunits, class vunits): Likewise.
13019 * include/refid.h (class reference_id): Likewise
13020 * troff/troff.h (points_to_units(units), scale(units, double)):
13021 Delete declarations.
13022 * libdriver/input.cc (get_char): Delete declaration.
13023 * include/lib.h: Change 2nd argument of getopt from const char **
13025 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
13026 char **' before assigning to a `const char **'.
13027 * tbl/table.cc: Delete extra declarations of prints().
13029 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
13031 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
13032 char **' before assigning to a `const char **'.
13034 * libgroff/errarg.cc (errarg::errarg): Don't use member
13035 initializer syntax for members of anonymous unions.
13037 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
13039 * mm: Integrate version 1.07.
13041 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
13043 * troff/input.c (translate2): Rename to
13044 (translate_no_transparent).
13045 (init_input_requests): Rename tr2 to trnt.
13047 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
13049 * troff/charinfo.h (class charinfo): Add transparent_translate field.
13050 (charinfo::set_translation, charinfo::set_special_translation):
13051 Add second argument that specifies value for
13052 transparent_translate.
13053 (charinfo::get_translation, charinfo::get_special_translation):
13054 Add optional second argument that specifies whether translation is
13055 being used for transparent throughput.
13056 * troff/input.cc (charinfo::set_translation,
13057 charinfo::set_special_translation): Handle second argument.
13058 (charinfo::charinfo): Initialize transparent_translate.
13059 (translate): Split main part off into
13060 (do_translate): New function. Pass argument saying whether
13061 translation applies to transparent throughput.
13062 (translate2): New request.
13063 (init_input_requests): Bind translate2 to `tr2'.
13065 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
13067 * tbl/table.h (class table): Add `nokeep' flag.
13068 * tbl/main.cc (process_options): Handle `nokeep' option.
13069 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
13070 table::do_bottom): Don't output keep/release macro definitions or
13071 calls when `nokeep' option has been specified.
13073 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
13075 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
13077 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
13079 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
13080 block_entry::divert, alphabetic_block_entry::divert): Add extra
13081 argument giving column separation.
13082 (table::compute_widths): Pass column separation to
13083 table_entry::divert().
13084 (block_entry::do_divert): If an entry spans multiple columns and a
13085 minimumum width has been specified for each column, then set the
13086 line length to the sum of the widths (plus possibly the column
13089 * troff/input.cc (set_escape_char): Don't set the escape_char
13090 until after calling has_arg().
13092 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
13094 * tbl/table.cc (table::do_top): Add missing \s0 for double box
13097 * tbl/table.cc (table::print_double_hline): Avoid extra new line
13098 in case where r > nrows - 1.
13100 * tbl/table.cc (BODY_HEIGHT): Deleted.
13101 (LINE_SEP): New definition.
13102 (table::print_single_hline, table::print_double_hline,
13103 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
13104 table::do_row, table::do_top): Use LINE_SEP space before a line
13105 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
13107 * tbl/table.cc (text_entry::print_contents): New function.
13108 (text_string_name, right_text_string_name): Deleted.
13109 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
13110 (simple_text_entry::do_width, numeric_text_entry::do_width,
13111 alphabetic_text_entry::do_width): Don't store the contents of the
13113 (left_text_entry::simple_print, right_text_entry::simple_print,
13114 center_text_entry::simple_print,
13115 alphabetic_text_entry::simple_print,
13116 numeric_text_entry::simple_print): Print the entry directly
13117 instead of using the stored string.
13119 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
13121 * devps/Makefile: Strip PostScript files.
13122 * devps/prologue: Rename to...
13123 * devps/prologue.ps.
13124 * devps/psstrip.sed: New file.
13125 * devps/download: Use .pfa rather than .ps for installed versions
13128 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
13130 * troff/env.cc (input_trap): Give a warning if the argument is out
13133 * troff/env.cc (adjust): Treat negative argument as missing. Round
13134 argument > 5 down to 5.
13136 * troff/env.cc (center, right_justify): Make negative argument zero.
13138 * troff/div.cc (page_offset, vertical_position_traps): Treat
13139 invalid argument as missing.
13140 * troff/env.cc (line_spacing, line_length, title_length, indent,
13141 underline, hyphen_line_max_request, control_char,
13142 no_break_control_char, widow_control_request, adjust, input_trap,
13143 point_size): Likewise.
13144 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
13145 constant_space): Likewise.
13146 * troff/input.cc (compatible, shift, warn_request,
13147 set_escape_char): Likewise.
13149 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
13150 * tbl/table.cc (table::table): Likewise.
13152 * Makefile.dev (install_dev): depends on $(DEVFILES).
13154 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
13156 * devX75, devX75-12, devX100, devX100-12: New directories.
13157 * Makefile.in: Add these to DEVDIRS.
13159 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
13160 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
13161 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
13162 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
13164 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
13165 (uninstall): New target.
13166 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
13167 uninstall_prog, uninstall_dev): New targets.
13169 * troff/div.cc (return_request): Treat an invalid argument as
13172 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
13174 * tmac/tmac.e ((f): Set up the environment even when there's a
13175 current diversion. Transperently throughput a call to @N.
13178 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
13180 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
13181 up to vertical resolution.
13183 * tbl/table.cc (table::do_row): Change row number after printing
13186 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
13188 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
13190 * Rename CHANGES to NEWS.
13192 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
13194 * libgroff/new.cc (operator new): Avoid calling malloc(0).
13196 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
13198 * man.ultrix: Removed.
13200 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
13202 * Makefile.comm (extraclean): Delete files whose names begin with
13205 * pic/troff.cc (troff_output::text): Fix typo in implementation of
13208 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
13210 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
13211 * troff/div.cc (page_length, need_space, space_request): Treat
13212 invalid optional argument as missing.
13213 * troff/env.cc (number_lines): If the first argument is present
13214 but not a number, turn on line numbering, don't change the next
13215 line number and parse the remaining arguments.
13217 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
13219 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
13221 * eqn/box.h: Change declaration accordingly.
13222 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
13223 the specified size was bad but don't give an error. Check for
13225 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
13226 * eqn/lex (do_size): Likewise.
13228 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
13230 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
13231 compatible headers.
13233 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
13235 * tbl/table.cc (table::init_output): Improve error message when
13236 table won't fit on one page.
13238 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
13240 * pic/troff.cc (troff_output::start_picture): Generate line
13241 containing a horizontal motion equal to the width of the picture.
13243 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
13244 using GROFF_COMMAND_PREFIX environment variable.
13246 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
13248 * mdate.sh: Use $NF rather than $(NF).
13250 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
13252 * pic/main.cc (main): Use %1 not %c in argument to warning.
13254 * eqn/main.cc (main): Output code to check that geqn was given the
13257 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
13259 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
13260 `ln -s ../Makefile .; make; rm -f Makefile'.
13262 * troff/hyphen: Rename to...
13264 * troff/input.cc (main): Delete -H option. Don't call
13265 read_hyphen_file().
13266 * troff/env.cc: Include searchpath.h and macropath.h.
13267 (exception_dictionary): Deleted.
13269 (read_hyphen_file): Deleted.
13270 (hyphenation_language): New struct.
13271 (class trie, class hyphen_trie): Move declarations up.
13272 (trie_node::~trie_node): Deleted.
13273 (trie::delete_trie_node): New function.
13274 (trie::do_delete): New pure virtual function.
13275 (hyphen_trie::do_delete): New function.
13276 (trie::~trie): New function.
13277 (hyphen_trie::~hyphen_trie): New function.
13278 (trie::clear): No need to chcek that tp is not 0.
13279 (current_language, language_dictionary): New variables.
13280 (hyphen_word): Give an error if no current language. Use
13281 exceptions dictionary in current language.
13282 (hyphen_trie::read_patterns_file): Find file using macro_path.
13283 Allow comments (starting with %) in patterns file. Don't make it
13284 a fatal error if the file can't be found.
13285 (hyphenate): Return if no current language. Get the exceptions
13286 dictionary and the hyphenation patterns from the current language.
13287 (set_hyphenation_language): New variable.
13288 (hyphenation_patterns_file): New function.
13289 (hyphenation_language_reg): New class.
13290 (hyphenation_language_reg::get_string): New function.
13291 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
13292 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
13294 * groff/groff.cc (main, help, synopsis): Delete -H option.
13295 * include/Makefile.sub: Don't define HYPHENFILE.
13296 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
13297 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
13298 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
13299 hyphenation patterns.
13301 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
13303 * eqn/neqn.sh: New file.
13304 * eqn/Makefile.sub: Handle neqn.sh.
13306 * eqn/eqn.h: Declare `nroff' variable.
13307 * eqn/box.cc (param_table): Add `nroff' param.
13308 (nroff): Define it.
13309 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
13311 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
13313 * troff/troff.h (WARN_FONT): New warning.
13314 (WARN_TOTAL): Change accordingly.
13315 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
13316 (warning_table): Add WARN_FONT.
13317 * troff/node.cc (mount_font_no_translate): Pass argument to
13318 font::load_font. If this is non-zero, give a warning.
13319 Don't give an error message when accessing a font that has already
13320 been found to be invalid.
13321 * include/font.h (font::load, font::load_font): Add additional
13322 optional argument which suppresses error message if the font is
13324 * libgroff/font.cc (font::load_font): Handle additional argument.
13325 (font::load): Add additional argument. If this is non-null, set it
13326 to 1 and don't give error message.
13328 * include/printer.h (printer::end_page): Add argument giving
13330 * libdriver/input.cc (do_file): Pass this.
13331 * grops/ps.cc (ps_printer::end_page): Add argument.
13332 * grodvi/dvi.cc (dvi_printer::end_page,
13333 draw_dvi_printer::end_page): Add argument.
13334 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
13335 columns_per_page members. New member nlines.
13336 (DEFAULT_LINES_PER_PAGE): Deleted.
13337 (tty_printer::tty_printer): Don't compute lines_per_page from
13338 font::paperlength. Don't compute columns_per_page from
13340 (tty_printer::add_char): Don't check horizontal position against
13341 columns_per_page. Grow glyphs vector if neccessary.
13342 (tty_printer::end_page): Add argument giving page_length in units.
13343 Discard lines past end of page.
13345 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
13347 * tmac/tmac.tty-char: Fix definition of \(/l.
13349 * tmac/tmac.X: Define \(en.
13351 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
13353 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
13354 lpq, then use lp rather than lpr.
13356 * tmac/tmac.s (par@reset): Don't call `ad'.
13357 (par*env-init): Call `ad'.
13359 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
13361 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
13364 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
13365 * indxbib/indxbib.cc: Likewise.
13367 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
13369 * libgroff/putenv.c: New file.
13370 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
13371 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
13372 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
13373 stdlib.h with AC_HAVE_HEADERS.
13375 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
13377 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
13380 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
13382 * eqn/box.cc (gsize): Make it an int.
13383 (set_gsize): Parse argument handling increment or decrement.
13384 (box::top_level): Convert gsize to a string.
13386 * troff/input.cc (exit_troff): Make buf unsigned char [].
13387 Call to make_temp_iterator casts buf to char*.
13389 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
13391 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
13392 * Makefile.cpg (depend.temp): Likewise.
13394 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
13396 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
13398 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
13400 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
13402 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
13404 * Version 1.06 released.
13406 * Integrate mm 1.04.
13408 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
13410 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
13412 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
13414 * afmtodit/afmtodit.pl: Add -n option that disables generation of
13416 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
13417 afmtodit. Regenerate.
13419 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
13420 @f back past the current position.
13422 * tmac/tmac.e: Change calls to @R so that comments are not part of
13425 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
13427 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
13429 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
13430 check that we can link a call to a function declared in <stdio.h>.
13431 (GROFF_UNISTD_H): New macro.
13432 * configure.in: Call it.
13433 * Makefile.in: Document it.
13434 * include/posix.h: New file.
13435 * troff/troff.h: Don't include <osfcn.h>
13436 * troff/input.cc: Include posix.h.
13437 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
13439 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
13440 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
13442 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
13443 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
13444 * libbib/search.cc (O_RDONLY): Delete definition.
13445 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
13446 Don't include <osfcn.h>.
13448 * acgroff.m4 (GROFF_TIME_T): New macro.
13449 * configure.in: Call it.
13450 * Makefile.in: Document it.
13452 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
13453 * configure.in: Call it.
13454 * Makefile.in: Document -DTRADITIONAL_CPP.
13455 * include/ptable.h: Don't include generic.h.
13456 (name2): Define it.
13458 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
13459 Afterwards remove [T1 and [T2.
13460 (ref*spec!0, ref*spec!2): Use T1 rather than T.
13461 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
13462 (ref*add-T2): Renamed from ref*add-T.
13463 (ref*add-T1): New macro.
13465 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
13467 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
13469 * libbib/index.cc: Include <fcntl.h>.
13470 (O_RDONLY): Define if necessary.
13471 (make_index_search_item, index_search_item_iterator::get_tag,
13472 index_search_item::check_files): Use O_RDONLY.
13473 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
13474 (O_RDONLY): Define if necessary.
13475 (search_list::add_file): Use O_RDONLY.
13476 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
13478 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
13481 * libbib/index.cc (S_ISREG): Define it if necessary.
13482 (index_search_item::load): Use S_ISREG.
13484 * include/driver.h: Include <errno.h>.
13486 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
13488 * eqn/box.cc (body_height): Increase default value to 85.
13489 (body_depth): Increase default value to 35.
13491 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
13493 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
13494 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
13495 protected from expansion with \E.
13497 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
13499 * Makefile (Makefile): New target.
13501 * Makefile.sub (configure, distfiles): New targets.
13503 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
13506 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
13508 * eqn/box.cc (param_table): Add body_height and body_depth.
13510 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
13512 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
13514 * psbb/Makefile.sub: Don't link with libgroff.a.
13516 * acgroff.m4 (GROFF_PUTENV): New macro.
13517 * configure.in: Call GROFF_PUTENV.
13518 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
13519 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
13522 * troff/env.cc (distribute_space): Rename force_forward argument
13523 to force_reverse. Reverse the list if force_reverse is true.
13525 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
13527 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
13529 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
13530 height or depth to be negative. Guard against SUP_RAISE quantity
13533 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
13535 * devps/generate/textmap: Add `an' (arrowhorizex).
13536 * tmac/tmac.ps: \(an overlaps horizontally.
13537 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
13539 * devps/symbolchars: Add arrowverttp, arrowvertbt.
13540 * devps/textmap: Add arrowvertex.
13541 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
13542 updownarrow delimiters.
13543 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
13545 * tbl/table.cc (simple_entry::position_vertically,
13546 block_entry::position_vertically): For a centered entry, perform
13547 the motion in two stages.
13549 * refer/refer.cc (split_punct): Don't call lookup_token if there
13552 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
13554 * troff/input.cc (token::next): Delete token_node after copying
13557 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
13560 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
13562 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
13564 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
13566 * grops/ps.cc (usage): -b option takes an argument.
13568 * devps/prologue (PLG): New procedure.
13569 * grops/ps.cc (main, usage): New -g option.
13570 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
13573 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
13575 * include/cset.h: Include <limits.h> if we have it.
13577 * libgroff/illegal.cc: New file.
13578 * include/lib.h (illegal_input_char): Use table.
13579 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
13580 * pic/lex.cc (ARG1): Renumber to 14.
13581 * eqn/lex.cc (ARG1): Likewise.
13583 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
13584 (eg 1.05.90) correctly.
13586 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
13588 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
13589 Rename $r and $R registers to $v and $V.
13590 ($r, $R): Initialize to 0.
13591 (@v, @V): New macros.
13595 * troff/input.cc (main, usage): Add -R option that says not to
13597 * eqn/main.cc (main, usage): Rename -n to -R.
13599 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
13601 * devps/DESC.in: Leave font positions 5-9 blank.
13602 * devdvi/DESC.in: Likewise.
13604 * grog/grog.pl: Handle `.PS <file' correctly.
13606 * troff/input.cc (input_stack::push): Improve error message when
13607 input stack limit exceeded.
13609 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
13611 * refer/refer.cc (main): Fix typo in handling of `a' option.
13613 * refer/refer.cc (do_bib): In state START after a newline remain
13616 * groff/groff.sh: Deleted.
13617 * groff/Makefile.sub: Delete handling of groff.sh.
13619 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
13620 to determine whether to use \X'ps:...'.
13621 * tmac/troffrc: Set 0p register to 0.
13622 * tmac/tmac.ps: Set 0p register to 1.
13624 * groff/groff.cc: Support -X option. Give warning for -TXps and
13625 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
13626 * tmac/troffrc: Support -r.X=1.
13628 * pic/troff.cc (troff_output::dot): Don't test
13629 zero_length_line_flag.
13631 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
13633 * include/lib.h: Declare getopt() and friends unless
13634 STDLIB_H_DECLARES_GETOPT is defined.
13636 * doc/chars.tr: Delete.
13637 * man/groff_char.man: New file.
13639 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
13641 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
13642 user has changed register format.
13644 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
13646 * groff/groff.cc: Get rid of device_table. Get postprocessor from
13647 `postpro' command in DESC file. Get spooler command from `print'
13648 command in DESC file. Execute spooler command with /bin/sh.
13650 * groff/groff.cc: Split Unix-specific parts into...
13651 * groff/pipeline.c: New file.
13654 * COPYING: New file.
13655 * all files: Update copyright notices.
13657 * Rearrange files. Redo Makefiles. Use autoconf.
13659 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
13661 * troff/input.c (charinfo_to_node_list): Interpret character
13662 definition with escape_char of `\'.
13664 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
13666 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
13667 Define INT_DIGITS as big enough for 64-bit integer.
13668 * lib/strtol.c: Don't include lib.h.
13669 * lib/lib.h: Delete ifdef __cplusplus stuff.
13671 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
13673 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
13674 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
13675 get DESC from current directory.
13677 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
13679 * tbl/main.c (main): Always reset the line number when reading
13682 * tbl/table.c (table::print_single_hline, table::print_double_hline,
13683 table::define_bottom_macro, table::do_row, table::do_top): Round
13684 vertical spacing up to vertical resolution.
13686 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
13688 * ps/ps.h (enum resource_type): Avoid comma at end of
13690 * dvi/dvi.c (class dvi_printer): Likewise.
13691 * dvi/tfmtodit.c (gf::load): Likewise.
13692 * refer/label.y (struct expression): Likewise.
13693 * refer/refer.c (class label_processing_state): Likewise.
13694 * refer/indxbib.c (do_file): Likewise.
13695 * troff/troff.c (enum warning_type): Likewise.
13696 * tbl/main.c (process_data): Likewise.
13697 * troff/charinfo.h (class charinfo):
13699 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
13701 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
13703 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
13705 * groff.c: Move to new groff subdirectory.
13706 * groff/Makefile: New file.
13707 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
13709 * man/mdate.sh: Use ls -L if supported.
13711 * Consolidate all header files produced by gendef into lib/defs.h.
13712 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
13713 Don't include path.h.
13714 * lib/Makefile (path.h): Don't generate.
13715 * troff/input.c: Include defs.h. Don't include config.h.
13716 * troff/Makefile (config.h): Don't generate.
13717 * refer/index.h: Don't include suffix.h.
13718 * refer/index.c: Include defs.h.
13719 * refer/indxbib.c: Include defs.h.
13720 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
13722 * refer/Makefile (suffix.h, path.h): Don't generate.
13723 * groff.c: Don't include config.h. Include defs.h.
13724 * Makefile (config.h): Don't generate.
13725 (lib/defs.h): Generate.
13726 (topclean): Remove lib/defs.h.
13728 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
13730 * lib/malloc.c, lib/getpagesize.h: Deleted.
13731 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
13733 * lib/Makefile: Delete malloc-related stuff.
13734 * lib/new.c: Workaround COOKIE_BUG if necessary.
13736 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
13737 needed header files directly.
13738 * refer/refer.h: Omit definition of DEFAULT_INDEX.
13739 * Makefile: Include definition of DEFAULT_INDEX in path.h.
13741 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
13743 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
13745 * lib/font (font::load_desc, font::load): Don't split argument of
13747 (font::handle_unknown_font_command): Change type.
13748 * ps/ps.c (ps_font::handle_unknown_font_command,
13749 handle_unknown_desc_command): Change type.
13750 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
13752 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
13754 * lib/font.h (font::handle_unknown_font_command): Add file and
13756 * lib/font.c (font::handle_unknown_font_command):
13757 * ps/ps.c (ps_font::handle_unknown_font_command):
13758 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
13759 lineno arguments. Use _with_file_and_line functions for error
13762 * lib/fontfile.c (font::unknown_desc_command_handler): New static
13764 * lib/font.c (font::set_unknown_desc_command_handler): New
13766 (font::load_desc): For unknown commands, call
13767 unknown_desc_command_handler if not null.
13768 * lib/font.h (class font): Declare them.
13769 (FONT_COMMAND_HANDLER): New typedef.
13770 * ps/ps.c (handle_unknown_desc_command): New function.
13771 (main): Set bflag if we had a -b option. Call
13772 font::set_unknown_desc_command_handler.
13773 (broken.h): Don't include.
13774 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
13776 * ps/devps/Makefile: Add `broken' command to DESC file using
13777 BROKEN_SPOOLER_FLAGS.
13779 * macros/tmac.e ([, ]): Add as synonyms for { and }.
13781 * macros/tmac.e ($p): Only exdent if \$3 > 0.
13783 * macros/tmac.e (@R, @S): New macros.
13784 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
13785 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
13786 Declare $H, $[0-9], .. macros with @S.
13787 Declare |0, |1, |2, |3 strings with @S.
13789 * macros/tmac.e (@S): Rename to @U.
13791 * macros/tmac.e (@z): Define @b and bp as empty instead of
13794 * macros/tmac.e (@m): Deleted.
13795 (@h): Don't call @m.
13796 (@z): Don't set @m trap.
13798 * macros/tmac.e ($h, $f): Define |z as empty string.
13800 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
13803 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
13805 ()f): Likewise for * register.
13807 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
13808 argument is missing, don't change $R. Call sr with three
13809 arguments when initializing.
13811 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
13813 * macros/tmac.e (sr): New macro.
13814 Initialize $r and $R using sr.
13816 * macros/tmac.e (,): Delete \*(#[.
13818 * troff/env.c (set_tabs): Read the tab type even if the position
13819 is bad. Allow the position of the first tab stop to be negative.
13821 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
13823 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
13825 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
13826 rather than -DPATHCONF_MISSING.
13827 * Makefile: Get rid of PATHCONF_MISSING.
13829 * refer/map.c: New file.
13830 * refer/index.c: Interface to mmap through map.c. Rename map_size
13832 * refer/Makefile: Handle map.c.
13833 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
13835 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
13837 * Makefile: RANLIB should be `true' if there is no ranlib.
13838 * lib/Makefile (libgroff.a): Simplify.
13839 * driver/Makefile (libdriver.a): Simplify.
13841 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
13842 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
13845 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
13847 * troff/env.c (compare_ranges): Declare as extern "C".
13849 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
13851 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
13853 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
13855 * pic/troff.c (troff_output::text): Merge in grops_output::text,
13856 but conditionalize use of \X based on \*(.T.
13857 (grops_output::*): Deleted.
13858 * pic/output.h: Delete declaration of make_grops_output.
13859 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
13860 by default. -n sets it to 0.
13861 (usage): Corresponding changes.
13862 * groff.c (main): Don't pass -x or -p to pic.
13863 * groff.sh: Likewise.
13865 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
13868 * ps/devps/afmtodit: Change calculation of asc_boundary and
13869 desc_boundary. Make these bounds inclusive.
13870 * ps/devps: Regenerate font files.
13872 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
13874 * macros/tmac.latin1: New file.
13875 * macros/tmac.tty-char: Use tmac.latin1.
13876 (tmac.tty-tr): Deleted.
13877 * macros/Makefile: Install tmac.latin1.
13878 * macros/tmac.dvi: Use tmac.latin1.
13879 * macros/troffrc: Translate \[char160] onto no-break space here.
13880 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
13882 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
13884 * macros/tmac.Xps: Use `do' request.
13886 * macros/tmac.ps: Use `do' request.
13888 * macros/tmac.e (@C): Use `do' request.
13890 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
13891 * macros/Makefile: Install tmac.X*.
13893 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
13894 * tty/Makefile: Don't install tmac.tty*.
13895 * macros/Makefile: Install tmac.tty*.
13897 * dvi/tmac.dvi: Move to macros.
13898 * dvi/Makefile: Don't install tmac.dvi.
13899 * macros/Makefile: Install tmac.dvi.
13901 * ps/tmac.ps*: Move to macros.
13902 * ps/Makefile: Don't install tmac.ps*.
13903 * macros/Makefile: Install tmac.ps*.
13905 * eqn/box.c: Provide draw_lines parameter corresponding to -D
13907 * macros/eqnrc: Set draw_lines parameter based on device.
13908 * groff.c: Don't pass -D flag to eqn.
13909 * groff.sh: Likewise.
13910 * eqn/main.c: Warn about use of -D.
13912 * troff/input.c (process_startup_file): New function.
13913 (main): Call process_startup_file().
13914 * macros/troffrc: New file.
13915 * macros/Makefile: Install troffrc.
13916 * groff.c (main): Don't pass extra -m option to troff. For a
13917 pseudo device pass the name of the pseudo device to troff using
13919 * groff.sh: Likewise.
13920 * groff.c (possible_command::prepend_arg): Deleted.
13922 * troff/input.c (do_request): New function.
13923 (init_input_requests): Bind "do" to do_request.
13925 * eqn/main.c (main): Instead of loading eqnchar from device directory,
13926 load eqnrc from macro directory.
13927 * macros/eqnrc: New file.
13928 * macros/Makefile: Install eqnrc.
13929 * ps/devps/eqnchar: Deleted.
13930 * ps/devps/Makefile: Don't install eqnchar.
13931 * dvi/devdvi/eqnchar: Deleted.
13932 * dvi/devdvi/Makefile: Don't install eqnchar.
13933 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
13936 * lib/device.[ch]: New files.
13937 * lib/font.h (font::set_device_name, font::get_device_name):
13939 * lib/fontfile.c: Use device.h.
13940 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
13941 * troff/input.c: Delete definition of `device'.
13942 (main): Don't initialize device.
13943 * troff/troff.h: Include device.h rather than declaring device.
13944 * troff/Makefile: No need to handle DEVICE.
13945 * driver/input.c: Include device.h. Don't use
13946 font::{set,get}_device_name.
13947 * groff.c, Makefile: Rename device.h to config.h.
13948 * groff.c: Use library device variable.
13949 * eqn/main.c: Use library device variable.
13950 * eqn/Makefile: No need to handle DEVICE.
13952 * lib/searchpath.[ch]: New files.
13953 * lib/Makefile: Handle searchpath.[ch].
13954 * troff/input.c (open_file, init_dirs): Deleted.
13955 (macro_dirs): Deleted.
13956 (open_mac_file, macro_source): Use class search_path.
13957 (add_string, struct string_list): Move definition.
13958 (main): Change -M option to use macro_path. Delete call to
13960 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
13961 Rewrite to use class search_path.
13962 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
13963 * lib/Makefile: fontfile.c depends on searchpath.h.
13964 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
13966 * lib/macropath.[ch]: New files.
13967 * troff/Makefile: No need to handle MACROPATH.
13969 * troff/input.c: Delete DUMP code.
13970 * lib/fontfile.c, lib/font.h: Delete
13971 font::forget_command_line_font_dirs.
13973 * troff/input.c (push_token): New function.
13974 (handle_first_page_transition): Use push_token().
13975 (process_input_stack): Change handling of a space at the beginning
13978 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
13980 * troff/input.c (font_dirs): Delete unused variable.
13982 * eqn/lex.c (do_set): Correct error messages.
13984 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
13986 * troff/input.c (do_define_string): Allow the string name to be
13987 followed immediately by a tab.
13988 (define_character): Likewise.
13990 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
13992 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
13995 * troff/input.c (input_iterator::is_file): New virtual function.
13996 (file_iterator::is_file): New function.
13997 (input_stack::end_file): New function.
13998 (input_stack::next_file): Handle the situation where there is no
13999 file on the input stack correctly. Avoid making two passes over
14001 (next_file): Make the filename optional; in this case call
14002 input_stack::end_file().
14004 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
14006 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
14007 produce a real _ charater when the current font is CW and _
14010 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
14011 expression to work around gcc 2.2 bug.
14013 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
14015 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
14017 * troff/env.c (environment::add_padding): New function.
14018 (environment::add_char): Use add_padding().
14019 (environment::space): Likewise.
14020 (environment::wrap_up_field): Add some padding if there is none
14021 and there's no current tab.
14022 * troff/env.h: Declare environment::add_padding.
14024 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
14026 * pic/pic.y: undef fmod and rand before declaring them.
14028 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
14030 * troff/input.c (main): If the DESC file specifies a font name of
14031 0, then leave the corresponding font position empty.
14033 * nroff.sh: New file.
14034 * Makefile (install.nobin): Install nroff.sh.
14036 * tty/devlatin1/R.proto: Add ao as synonym for de.
14037 * tty/tmac.tty-char: Define ao as o.
14039 * tty/dev{ascii,latin1}/R.proto: Add aq.
14040 * tty/tmac.tty-char: Delete definition of aq.
14042 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
14044 * troff/input.c (init_charset_table): Don't translate 0240.
14045 * ps/tmac.ps: Translate char160 to space.
14046 * dvi/tmac.dvi: Likewise.
14047 * tty/tmac.tty: Likewise.
14049 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
14051 * dvi/tmac.dvi: Add support for all Latin-1 characters.
14053 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
14054 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
14057 * tty/tmac.tty-char: Add \(ah.
14059 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
14060 No need to define \(FM and \(!/. Conditionalize all character
14063 * ps/devps/lgreekmap: Add +h, +f, +p.
14065 * ps/tmac.psnew: New file.
14066 * ps/Makefile: Install tmac.psnew.
14068 * troff/input.c (charinfo_to_node_list): Don't ever interpret
14069 character definitions in compatible mode.
14071 * troff/input.c (remove_character): New function.
14072 (init_input_requests): Bind remove_character to "rchar".
14074 * ps/tmac.psold: New file.
14075 * ps/Makefile: Install tmac.psold.
14076 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
14077 characters into tmac.psold. Make these definitions unconditional.
14079 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
14081 * ps/tmac.ps: Don't define \('c and \('C.
14083 * ps/devps/textmap: Move Greek characters to...
14084 * ps/devps/symbolchars:
14086 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
14088 * ps/devps/text.enc: Add quotesingle.
14089 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
14090 * tty/tmac.tty-char: Likewise.
14091 * dvi/devdvi/texmi.map: Add +h, +f, +p.
14092 * dvi/devdvi/texi.map: Add Fn.
14093 * dvi/devdvi/msam.map: Add lz.
14094 * dvi/tmac.dvi: Handle Bq, bq, aq.
14096 * pic/lex.c (get_token): Recognize 'th.
14097 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
14099 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
14101 * ps/devps/textmap: Move di, mu, +- to...
14102 * ps/devps/symbolchars:
14104 * macros/tmac.s (@XS): Don't call par@reset or fi.
14105 (XA): Call LP. Turn off adjustment. Reduce line length.
14107 * macros/tmac.s: Initially alias XS to LP.
14108 (XS): Rename to @XS.
14109 (cov*ab-init): Alias XS to @XS.
14111 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
14113 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
14114 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
14115 (token::is_size, token::changes_env): Deleted.
14116 * troff/number.c (parse_term): No need to process \s explicitly.
14117 Call tok.next() only after scale indicator has been processed.
14118 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
14120 (token::next): Handle \s, \f, \S, \H immediately rather than
14121 returning them as tokens.
14122 (token::operator==, token::description, token::add_to_node_list,
14123 token::process): Remove handling of deleted tokens.
14125 * troff/env.c (environment::add_char): When adding padding
14126 indicator character, call start_line() if necessary.
14128 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
14130 * ps/devps/afmtodit: Don't output 0 kerns.
14132 * ps/devps/afmtodit: Remove directory from name of encoding in
14133 font description file.
14135 * ps/devps/afmtodit: Improve error messages.
14137 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
14139 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
14140 * ps/devps/FontMakefile: Deleted.
14141 * ps/devps/afmname: New file.
14143 * ps/devps/symbol.sed: New file.
14144 * ps/devps/symbol.diff: Deleted.
14145 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
14146 Generate zapfdr.afm from zapfd.afm.
14148 * tty/tmac.tty (tty-char): Prefix definition with ".
14150 * macros/tmac.an (TP): Don't start a diversion if one has already
14153 * tty/tmac.tty-char: Add Latin-1 characters.
14155 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
14157 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
14159 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
14160 Move declaration of struct horizontal_span.
14162 * tbl/table.c (table::table): Initialize span_list.
14163 (table::~table): Delete span_list.
14165 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
14167 * ps/devps/Makefile: Avoid dependency on GNU make.
14169 * ps/tmac.ps: Check that character does not already exist before
14172 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
14173 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
14174 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
14177 * tty/tmac.tty-char: New file.
14178 * tty/Makefile: Install tmac.tty-char.
14179 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
14182 * tty/tmac.tty: Fix definition of \(34.
14184 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
14185 bracket-drawing characters onto |. Add *o.
14187 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
14188 only if current_field.
14190 * troff/dictionary.c (dictionary::lookup): Free old_table after
14193 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
14195 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
14196 whose glyphs are identical to glyphs of some Roman character.
14198 * tty/devlatin1/R.proto (bu): Deleted.
14199 * tty/devascii/R.proto (bu): Deleted.
14200 * tty/tmac.tty: Add definition of \(bu.
14202 * eqn/main.c (do_file): Pass FILE as argument.
14203 (main): Automatically load eqnchar. New options -F and -n.
14204 Pass do_file an opened FILE.
14205 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
14206 No need to include font.h.
14207 * groff.sh: Likewise. Don't need to use - for standard input.
14208 Prefix files with -- if first file starts with -.
14210 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
14212 * troff/env.c (environment::possibly_break_line): Don't set line
14213 to 0 across call to output_line(). Don't call output_line() until
14214 after discarding nodes after break.
14216 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
14218 * request.h (macro::empty): Declare it.
14219 * input.c (macro::empty): New method.
14220 (interpolate_macro): Don't give a WARN_SPACE if the two-character
14223 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
14225 * troff/env.c (environment::start_field): Decrement space_total
14226 when a space is frozen.
14228 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
14230 * macros/tmac.an (R): Delete macro.
14232 * troff/input.c (get_copy, token::next): Support \# (like \" but
14233 newline is ignored).
14235 * troff/input.c (token::next): Fix error message in 'Y' case.
14237 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
14239 * eqn/delim.c (define_extensible_string): Recognize any prefix of
14242 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
14244 * c++test.c: Include <osfcn.h>.
14246 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
14249 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
14251 * tbl/table.c (table::divide_span): Don't count column separation
14252 if expand was specified.
14254 * tbl/main.c (process_format): Don't ignore width specs in
14255 continued format. Give warning for changing equal widths or
14256 column separation in continued format.
14257 (process_data): Set column separation, minimum width, equal
14258 columns at end of table.
14260 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
14262 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
14263 node::add_discretionary_hyphen): Use soft_hyphen_char.
14264 (set_soft_hyphen_char): New function.
14265 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
14267 * Makefile (c++tested): Give more helpful message if test fails.
14269 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
14271 * troff/input.c (init_charset_table): Translate 0240 to
14272 an unbreakable space.
14274 * troff/token.h (token::hyphen_indicator): New function.
14275 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
14277 * troff/input.c (translate): Allow translation to \%.
14278 * troff/node.c (node::add_char): Handle
14279 TRANSLATE_HYPHEN_INDICATOR.
14280 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
14282 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
14285 * tty/devlatin1/R.proto: \(hy and - should print as 055.
14287 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
14289 * groff.c (run_commands): If the last command gets a SIGPIPE send
14290 a SIGPIPE to all children than haven't yet terminated. When
14291 command terminates, set pid field to -1.
14293 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
14295 * groff.c (main): Pass an appropriate -filename option to gxditview.
14297 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
14299 * Makefile.bd (install): Remove existing program before copying.
14301 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
14302 programs which have Unix counterparts to be installed with
14303 user-specified prefix.
14305 * troff/input.c (exit_troff): Don't check if exit_started.
14306 (exit_request): Don't call exit_troff if exit_started.
14308 * Makefile.bd (install.mm): Rename to install.dwbmm.
14310 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
14312 * driver/input.c (do_file): Add missing break for '#' case.
14314 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
14316 * troff/input.c (input_stack::clear): Clear past any boundaries and
14317 then add the boundaries back.
14319 * troff/input.c (exit_troff): Return immediately if already
14322 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
14324 (pg*end-page): If the text has ended and there are no more
14325 footnotes or keeps, exit.
14327 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
14329 * troff/input.c (init_charset_table): Make \(rq transparent by
14332 * macros/tmac.an: Define lq and rq strings.
14334 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
14336 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
14338 * troff/env.c (environment::final_break): New function.
14339 (environment::newline): Set prev_line_interrupted to 2 if
14341 * troff/env.h: Declare environment::final_break.
14342 * troff/input.c (exit_troff): Call environment::final_break()
14343 instead of environment::do_break().
14345 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
14346 doesn't already exist.
14347 * macros/man.local: New file.
14348 * macros/tmac.an: Load man.local.
14349 * macros/man.ultrix: New file.
14351 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
14353 * troff/input.c (exit_groff): Rename to...
14354 (exit_troff): New function.
14356 * troff/div.c (exit_started, done_end_macro,
14357 seen_last_page_ejector): New global variables.
14358 (began_page_in_end_macro): New static variable.
14359 (exit_flag): Deleted.
14360 (top_level_diversion::top_level_diversion): Initialize
14362 (top_level_diversion): More elaborate test for whether
14363 cleanup_and_exit() should be called.
14364 Set began_page_in_end_macro if the end macro isn't yet finished.
14365 * troff/div.h (top_level_diversion::last_page_count): New data
14367 (top_level_diversion::set_last_page): New function.
14368 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
14369 * troff/env.c (do_break): Zero prev_line_interrupted.
14370 * troff/input.c (exit_flag): Delete declaration.
14371 (LAST_PAGE_EJECTOR): New magic cookie.
14372 (token::next): Handle LAST_PAGE_EJECTOR.
14373 (exit_groff): Set exit_started and done_end_macro instead of
14374 exit_flag. Call top_level_diversion::set_last_page. Push a
14375 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
14376 another ejection after setting seen_last_page_ejector.
14378 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
14380 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
14382 * macros/tmac.e (TH): Make sure there's room for the initial
14385 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
14386 Set FVS in points rather than units.
14388 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
14390 * troff/div.c (top_level_diversion::add_trap): Don't consider the
14391 position of empty slots.
14393 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
14395 * ps/devps/S: Fix height and depth of parenrightex.
14396 * ps/devps/symbol.diff: Regenerate.
14398 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
14400 * tmac.e (u): Do underlining as in -mgs.
14402 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
14404 * tty/tty.c (tty_printer::end_page): If overstriking is
14405 suppressed, still turn overstruck horizontal and vertical lines
14408 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
14411 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
14413 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
14415 * Version 1.05 released.
14417 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
14419 * tty/tty.c: Instead of keeping an array of glyphs and then
14420 sorting it, keep a ordered linked list of glyphs for each line.
14422 * driver/driver.h: Include stddef.h.
14424 * tty/tty.c (compare_glyph):
14425 * refer/refer.c (rcompare):
14426 * troff/env.c (compare_ranges): Arguments of qsort comparison
14427 function should be const void *.
14429 * troff/number.c (parse_term):
14430 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
14433 * refer/label.y (consider_authors): Don't access variables
14434 constructed under a condition outside that condition: put braces
14435 round for statement containing declaration; redeclare use of same
14438 * pic/pic.y (text_expr): Delete production that allows
14439 parenthesised text_expr.
14440 (expr): Allow a conditional_expr to appear in parentheses.
14441 (conditional_expr): Rename to any_expr.
14443 * mm: Install new version 1.01 from jh.
14445 * lib/font.c (font::get_width): Cache scaled widths.
14446 (font::font): Initialize widths_cache.
14447 (font::~font): Destroy widths_cache.
14448 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
14450 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
14452 * c++test.c, c++test.ref: New files.
14453 * Makefile: Check that the C++ compiler works.
14455 * ps/tmac.pspic (PSPIC): Do a break.
14457 * ps/tmac.ps: Move definition of PSPIC into...
14458 * ps/tmac.pspic: New file.
14459 (PSPIC): Draw box around picture, but make it invisible to grops.
14460 * ps/tmac.ps: Load tmac.pspic.
14461 * ps/Makefile: Install tmac.pspic.
14463 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
14465 * lib/font.c (scale_round): If n is negative,
14466 subtract .5 before truncating floating point result.
14468 * lib/fontfile.c: Include <errno.h>.
14470 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
14472 * driver/input.c (get_char): Inline. Don't update current_lineno.
14473 Change callers to up date current_lineno if necessary.
14474 Use get_char() instead of getc(current_file).
14476 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
14478 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
14480 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
14482 * tty/tty.c (tmac.tty): Define \(rg as (R).
14484 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
14486 * lib/lib.h: New define a_delete.
14487 * Use a_delete instead of delete when deleting an array of objects
14488 without destructors.
14490 * lib/lib.h: Rename adelete to ad_delete.
14491 * Change uses of adelete.
14493 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
14495 * eqn/eqn.y: Include lib.h.
14497 * troff/node.c (grow_font_table): Delete old_font_table.
14499 * mm: Install new version from jh.
14501 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
14503 * tbl/table.h (format_type): Make global instead of local to class
14504 entry_format. Prefix enumerators with FORMAT_.
14505 * tbl/table.c, tbl/main.c: Corresponding changes.
14506 * refer/token.h (token_type): Make global. Prefix enumerators
14508 * refer/token.[ch]: Corresponding changes.
14509 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
14511 * troff/div.c (node::set_vertical_size): Don't name argument.
14513 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
14515 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
14516 * lib/lib.h: Define adelete accordingly.
14517 * pic/object.c (graphic_object::graphic_object):
14518 * tbl/main.c (format::~format):
14519 * tbl/table.c (table::~table):
14520 * refer/ref.c (reference::~reference, reference::merge,
14521 reference::insert_field, reference::delete_field): Use adelete.
14523 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
14525 * tbl/table.h: Corresponding changes.
14527 * common.c (common_output::dashed_arc, common_output::dotted_arc):
14528 Ensure total_angle is positive.
14530 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
14532 * refer/ref.c (reference::merge, reference::insert_field,
14533 reference::delete_field): Avoid delete[0].
14535 * refer/token.c (init_special_chars): Move calls to cmupper
14536 outside calls to init_two_char_letter to work around bug in gcc
14539 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
14541 * lib/new.c (operator new): Use __builtin_new for g++.
14543 * pic/object.c (graphic_object::~graphic_object): Don't use
14546 * pic/object.c (output::compute_scale): Initialize max_width and
14549 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
14551 * troff/input.c (write_request): Call fflush.
14553 * troff/node.h (class composite_node): Move declaration to node.c
14554 * troff/input.c (charinfo_to_node): Rename to ...
14555 (charinfo_to_node_list): Return node list rather than composite
14557 * troff/node.c (make_composite_node): New function.
14558 (make_node, add_char): Call make_composite_node instead of
14560 (class composite_node): Add a tfont * member. Delete font_size
14562 (composite_node::composite_node, composite_node::copy,
14563 composite_node::size): Corresponding changes.
14564 (composite_node::tprint): Provide constant spacing, emboldening
14565 and track kerning as specified in tfont.
14566 (composite_node::width): Change width calculation accordingly.
14567 * troff/env.h (environment::composite): New member.
14568 (environment::is_composite, environment::set_composite): New
14570 * troff/env.c (environment::environment): Initialize composite.
14571 * troff/input.c (charinfo_to_node): Call
14572 environment::set_composite.
14573 * troff/node.c (make_composite_node, make_glyph_node): Use the
14574 plain version of the tfont if the environment is composite.
14576 * troff/node.c (font_info::get_space_width): Additional argument
14577 giving space_size. Handle constant space correctly. Scale by
14578 space_size unless constant spaced.
14579 (env_sentence_space_width): New function.
14580 * troff/node.h: Declare it.
14581 * troff/env.h (environment::get_space_size,
14582 environment::get_sentence_space_size,
14583 environment::get_narrow_space_width,
14584 environment::get_half_narrow_space_width): Make inline.
14585 (environment::get_space_width): Make inline. Just call
14587 * troff/env.c: Delete definitions for funtions made inline.
14588 (environment::space_newline, environment::space): Use
14589 env_sentence_space_width(). Don't scale by space_size.
14590 * troff/node.h: Move declarations of env*space_width() functions
14593 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
14595 * macros/tmac.s (PS): Don't try to set negative indent.
14597 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
14599 * pic/pic.y: Fix min function.
14601 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
14603 * man/mdate.sh: Clear LANGUAGE.
14605 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
14607 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
14608 * pic/lex.c: New COMMAND keyword.
14609 * pic/pic.y (print_args, print_arg): New rules.
14610 (placeless_element): Use print_args for PRINT.
14611 New COMMAND element.
14613 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
14615 * troff/input.c (terminal): Handle missing argument correctly.
14617 * pic/pic.y (text_expr): New rule.
14619 * pic/pic.y: Implement := operator.
14621 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
14623 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
14626 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
14628 * ps/devps/dingbatsrmap: Include this in the distribution.
14630 * macros/tmac.doc: Replace with new version from 2nd Networking
14631 Release. Fix loading of doc-* files.
14632 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
14633 * macros/tmac.doc.old: New file. Apply fixes that had been
14634 applied to old tmac.doc.
14635 * macros/tmac.andoc: Check that we're running under groff.
14636 * macros/Makefile: Rework.
14638 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
14640 * tbl/table.h (format_type):
14641 * refer/token.h (token_type): If NESTED_TYPES is defined, use
14642 typedef to make these types visible at file scope.
14643 * Makefile: Add NESTED_TYPES configuration option.
14645 * troff/div.c (mark): At the top level use the value of
14646 nl_reg_contents rather than the current vertical position.
14648 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
14650 * tty/tty.c: Implement \D for horizontal or vertical lines.
14651 (tty_printer::set_char): Use vec_used+2 as serial number.
14652 Don't allow size of vector to exceed USHRT_MAX-2.
14653 Split off part into...
14654 (tty_printer::add_char): New function.
14655 (tty_printer::draw): New function.
14656 (compare_glyph): Handle equal serial numbers.
14657 (tty_printer::end_page): Handle overstruck characters from \D.
14658 (main, usage): Implement -d option.
14660 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
14662 * tbl/main.c (process_format):
14663 * eqn/text.c (split_text):
14664 * troff/input.c (token::next): Use inner block for declarations
14665 with initializers in switch statement.
14667 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
14669 * pic/common.c (common_output::dash_line): Cope with zero-length
14672 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
14674 * Version 1.04 released.
14676 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
14678 * macros/tmac.an (TH): Define a macro an-init to define variables
14679 based on command line arguments.
14680 (an-header): Call it.
14682 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
14684 * Makefile (install.mm): Rename to install.dwbmm.
14686 * Makefile: Integrate mm.
14687 * mm: New directory.
14689 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
14691 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
14694 * pic/troff.c (troff_output::simple_spline,
14695 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
14696 shadowing parameter.
14698 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
14700 * lib/ptable.h: Add explicit casts when converting from unsigned
14703 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
14704 * dvi/devdvi/Makefile: Install SA, SB.
14706 * refer/indxbib.c: Add declaration of mktemp.
14708 * refer/lookbib.c: Add declaration of isatty.
14710 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
14712 * pic/lex.c (interpolate_macro_with_args): While collecting
14713 arguments, keep track of whether we're in a string.
14715 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
14717 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
14718 down with \v, so as to avoid problems with top of page trap
14719 setting no space mode.
14721 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
14723 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
14725 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
14727 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
14728 Improve error message.
14730 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
14732 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
14735 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
14737 * groff.c (possible_command::execp): Always use _exit() after a
14740 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
14741 NO_SYS_WAIT_H configuration options.
14742 * groff.c: Use these options. Use POSIX-style macros to extract
14743 fields from the status returned by wait().
14745 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
14747 * tbl/table.c (table::compute_separation_factor): Allow the
14748 separation factor to drop to 0.
14750 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
14752 * refer/search.c: Include <errno.h>.
14754 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
14756 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
14758 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
14761 * pic/lex.c (input_stack::bol): Move definition out of class body.
14763 * pic/main.c: On MSDOS munge argv[0].
14765 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
14767 * lib/ptable.c (hash_string): Use unsigned long rather than
14769 (next_ptable_size): Use unsigned rather than int. Give an error
14770 message if we've hit the largest table size.
14771 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
14774 * pic/object.h (object_spec): Make flags unsigned long. Declare
14775 flags as const unisgned long rather than as enums.
14777 * pic/output.c: Deleted.
14779 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
14781 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
14782 Add additional argument.
14783 (line_entry::note_double_vrule_on_{left,right}): Set value of
14784 douvle_vrule_on_{right,left} flag according to argument.
14785 (simple_line_entry::simple_print,
14786 simple_line_entry::double_line_print): If adjacent to double vrule
14787 on a corner extend rather than shorten the rule by half the double
14790 * troff/number.c (parse_term): In checking for overflow, handle the
14791 case where the current horizontal position is negative.
14793 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
14795 * pic/object.c (draw_arrow): Check for object having zero length.
14797 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
14799 * eqn/main.c (do_file): Split off inline equation handling into...
14800 (inline_equation): New function. Search for starting delimiter
14802 (delim_search): New function. Don't recognize a delimiter that
14803 occurs in the name of an escape sequence, number register, string
14806 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
14808 * eqn/delim.c (delim_box::compute_metrics): Don't call
14809 define_extensible_string if left is 0.
14810 (delim_box::output): Don't print the left delimiter if left is 0.
14811 (delim_box::debug_print): Check for left == 0 before calling printf.
14813 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
14815 * troff/Makefile (majorminor.c): Include only digits in
14818 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
14820 * refer/dirnamemax.c: new file.
14821 * refer/genlimits.c: Deleted.
14822 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
14823 Don't check path length.
14824 * refer/Makefile: Add dir_name_max.o; delete genlimits.
14825 * Makefile: Add PATHCONF_MISSING option.
14827 * refer/indxbib.c (get_cwd): New function.
14828 (main): Use get_cwd().
14829 * lib/getcwd.c: New file.
14830 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
14831 GETCWD in SUBFLAGS.
14832 * lib/Makefile: Compile getcwd.o.
14834 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
14837 * refer/indxbib.c (main): Check success of mktemp.
14839 * lib/tmpfile.c: New file.
14840 * lib/Makefile: Add tmpfile.c.
14841 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
14842 * ps/ps.h: Delete declaration of mktemp().
14843 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
14844 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
14845 * driver/driver.h: No need now to include errno.h.
14847 * everywhere: Set errno to 0 before calling fopen().
14849 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
14850 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
14851 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
14853 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
14855 * troff/env.h (translate_space_to_dummy): Declare it.
14856 * troff/env.c (environment::space_newline, environment::space):
14857 If translate_space_to_dummy is set then make the width of spaces 0.
14858 * troff/input.c (translate): If the second character of a
14859 translation is a space, translate to unbreakable space. If the
14860 first character is a space, set or clear translate_space_to_dummy
14861 according to whether the second character is \&. Weird!
14863 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
14865 * groff.c (run_commands): Don't use non-zero exit code because a
14866 command gets SIGPIPE.
14868 * groff.c, groff.sh: Use -mXps with -TXps.
14870 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
14871 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
14872 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
14873 (ps_printer::special): New specials invis and endinvis.
14874 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
14875 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
14876 (ps_printer::end_page): Check that invis_count == 0.
14877 (ps_printer::invis_count): New member.
14878 (ps_printer::ps_printer): Initialize invis_count to 0.
14880 * troff/env.c (environment::hyphenate_line): Hyphenation
14881 indicator at beginning of word inhibits splitting after -, \(em
14884 * pic/pic.y (element): Allow another element to follow } without
14885 any intervening separator.
14887 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
14889 * pic/lex.c (get_delimited): Allow tabs before delimiter.
14891 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
14893 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
14894 declaration of wait() in header files.
14895 * Makefile: Get rid of -DHAVE_UNION_WAIT.
14897 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
14899 * lib/lib.h: Declare return type of strerror as char *.
14901 * man/Makefile: Add g flag to sed substitutions.
14902 * Makefile (shgroff, bindist): Likewise.
14904 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
14906 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
14907 * ps/devps/prologue (PBEGIN): Define showpage after pushing
14910 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
14912 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
14915 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
14917 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
14920 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
14922 * troff/input.c (define_number_reg): If currently undefined,
14923 don't define it if the argument is an invalid expression.
14925 * Makefile: Ignore return value of `if' commands without `else'
14928 * Makefile: Split up CPPDEFINES into a series of separate
14929 configuration options.
14931 * troff/input.c (init_registers): Use time_t instead of long
14932 unless LONG_FOR_TIME_T is defined. Use returned result rather
14933 than passing pointer.
14934 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
14936 * lib/Makefile (fontpath.h): Use gendef.
14938 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
14940 * troff/input.c (input_iterator::shift): Delete argument name.
14941 * troff/node.c (suppress_output_file::really_begin_page,
14942 suppress_output_file::really_transparent_char, node::ascii_print,
14943 node::tprint): Delete names of unused arguments.
14945 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
14947 * refer/label.y (string): Pass $4 to command_error.
14949 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
14951 * Version 1.03 released.
14953 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
14955 * Makefile: Pass definition of SHELL in SUBFLAGS.
14957 * gendef: New file.
14958 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
14959 ps/Makefile: Use gendef to construct header files that are
14960 constructed from the Makefile.
14962 * macros/Makefile: make all should build stripped version of tmac.e.
14964 * refer/Makefile (clean): Remove y.output.
14966 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
14968 * ps/pfbtops.c (main): Add -v option which prints out a version
14970 * ps/Makefile (pfbtops): Link with libgroff.a.
14972 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
14974 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
14975 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
14977 * refer/lkbib.c (main): Always terminate reference with blank
14979 * refer/lookbib.c (main): Likewise.
14981 * refer/linear.c (file_buffer::load): Check that the file is not a
14984 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
14985 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
14986 Delete second inclusion of <sys/param.h>.
14988 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
14990 * troff/token.h (token::special): Deleted.
14992 * tbl/main.c (process_format): Rework so that opt->tab_char is
14993 recognized only when appropriate.
14995 * ps/Makefile (clean): Remove pfbtops.
14997 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
14999 * lib/font.c (text_file::next): Don't return if we have got a
15002 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
15004 * refer/refer.c (store_reference): Get hash code from old_table[i]
15005 when rehashing the table.
15007 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
15009 * eqn/box.c (box::top_level): Save size and prev size using \R and
15010 restore it afterwards. Set the size to the size at the beginning
15012 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
15013 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
15015 * refer/Makefile (limits.h): Use ./genlimits.
15017 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
15019 * refer/index.c: Delete declarations of stat() and fstat().
15021 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
15023 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
15025 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
15027 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
15029 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
15031 * troff/input.c (token::get_char): Handle \e.
15033 * refer/linear.c: Delete declarations of fstat() and stat().
15035 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
15037 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
15038 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
15040 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
15042 * troff/input.c (do_define_macro): Improve error handling for end
15043 of file while defining macro.
15045 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
15047 * eqn/box.h: Fix declaration of set_gsize.
15048 * eqn/box.c (set_gsize): Make argument const char *.
15049 (gsize): Declare as char *.
15050 * eqn/main.c (main): Don't convert gsize to int.
15051 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
15053 * Version 1.02 released.
15055 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
15057 * macros/tmac.andoc: New file.
15058 * macros/Makefile: Install tmac.andoc.
15060 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
15061 operator new and delete on OP_DELETE_BROKEN not being defined.
15062 * Makefile: Mention OP_DELETE_BROKEN.
15064 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
15066 * Makefile (bindist): Pass SUBFLAGS.
15068 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
15070 * Makefile, groff.c: Pass definitions to groff.c via device.h.
15072 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
15075 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
15077 * ps/ps.h, ps/psrm.c: Make comment_table and
15078 header_comment_table local to resource_manager::process_file.
15080 * groff.sh: With -TXps pass -printCommand option to gxditview.
15082 * groff.c (possible_command::print): Implement using
15083 append_arg_to_string.
15085 * xditview: Merge in new implementation with own ChangeLog.
15087 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
15089 * groff.c (main): Implement PRINT_OPTION.
15090 (append_arg_to_string): New command.
15091 (device_table): Set PRINT_OPTION flag for Xps.
15093 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
15095 * troff/groff.h: Rename to troff.h.
15097 * pic/lex.c (lookup_keyword, docmp): New functions.
15098 (get_token): Use new lookup_keyword.
15099 Don't include key.h.
15100 * pic/key.[ch], pic/pic.gperf: Deleted.
15101 * pic/Makefile: Remove gperf stuff.
15103 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
15105 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
15107 * troff/Makefile, troff/node.c: Move definition of
15108 STORE_WIDTH into node.c.
15110 * etc/grog.pl, etc/grog.sh: Support -mdoc.
15112 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
15114 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
15115 dvi/devdvi/texb.map: Add lq and rq.
15116 dvi/devdvi: Regenerate fonts.
15117 * ps/devps/textmap: Add lq and rq.
15118 * ps/devps: Regenerate fonts.
15119 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
15120 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
15122 * pic/object.c (position_rectangle): When checking radius
15123 cope with possiblity that width or height is negative.
15124 (box_object::box_object): Have separate xrad and yrad with
15125 signs matching signs of dim components.
15126 (box_object::{north,south}_{east,west}): Use xrad and yrad.
15127 (box_object::print): With rounded boxes use absolute values
15128 for dim and rad arguments.
15130 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
15133 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
15135 * various files: Add explicit destructors to keep Saber CC +d
15138 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
15140 * eqn/box.c (box::top_level): Restore fonts correctly after
15141 font changes in line containing inline equation. Also
15142 restore previous font as well as current font.
15143 * eqn/pbox.h: Define necessary string and register names.
15145 * troff/input.c (token::next): Case 'R' calls do_register.
15146 (do_register): New function.
15148 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
15150 * groff.c, groff.sh: Support Xps device. Allow each device
15151 to have a pseudo_name and a real_name.
15153 * groff.c (run_commands): Don't print `Broken pipe' messages.
15155 * ps/pfbtops.c: New file.
15156 * ps/Makefile: Add pfbtops.
15158 * troff/number.c (parse_term): Improved error message.
15160 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
15162 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
15164 * Makefile: Integrate refer.
15165 * refer: New directory.
15166 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
15167 man/lkbib.man: New files.
15168 * man/Makefile: Support refer man pages.
15170 * lib/lib.h: Declare is_prime.
15171 * lib/prime.c: New file.
15173 * troff/input.c (macro_source): New function.
15174 (init_input_requests): Bind "mso" to macro_source.
15176 * troff/env.c (environment::possibly_break_line): Maintain
15177 pointer to pointer to node to be split in ndp so as to avoid
15178 using address of freed node.
15180 * troff/env.c (environment::hyphenate_line): Maintain pointer to
15181 pointer to first node to be hyphenated in startp so as to
15182 avoid using address of freed node.
15184 * troff/env.c (class trie, class hyphen_trie): Make the
15185 elements of the trie be of type char not unsigned char.
15186 Declare arguments to be const char* instead of unsigned char *.
15188 * troff/env.c (hyphenate): Initialize hbuf[0].
15190 * troff/input.c (set_string): Declare p to be char * and cast
15191 *p to unsigned char when necessary.
15193 * troff/input.c (do_define_macro): Declare s to be const
15194 char*. Cast element to unisgned char when necessary, Declare
15195 d to be an int. Handle EOF better.
15197 * troff/Makefile, troff/input.c: Different scheme for passing
15198 definitions of MACROPATH, HYPHENFILE and DEVICE.
15200 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
15202 * tty/devascii/R.proto: Delete entry for em.
15203 * tty/devlatin1/R.proto: Likewise.
15205 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
15207 * troff/input.c (translate): Stop when we get a space. Treat eof
15210 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
15212 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
15214 * tbl/main.c (process_format): A font name following a `f'
15215 modifier that starts with a digit can be only one character long.
15216 Also deal with EOF on the second character of the font name.
15218 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
15220 * troff/input.c (token::next): Turn \~ into an
15221 unbreakable_space_node.
15222 * troff/node.c (unbreakable_space_node): New class.
15223 * troff/node.h: Declare it.
15225 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
15227 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
15228 it's >= 0, before outputting it as a single byte.
15230 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
15232 * lib/font.c: Make font_char_metric::code an int.
15233 (font::get_code): Change return type to int.
15234 (font::load): Allow code to be arbitrary integer.
15235 * lib/font.h (font::get_code): Change return type to int.
15236 (font::number_to_index): Change argument type to int.
15237 * troff/input.c (token::next): In case 'N', allow any value.
15238 Store value in token::val.
15239 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
15240 (token::get_char, token::add_to_node_list, token::process): Get
15242 (charinfo::set_number): Change argument to int.
15243 (charinfo::get_number): Require that NUMBERED flag be set.
15244 (get_charinfo_by_number): Store numbered characters not between 0
15245 and 255 in a dictionary.
15246 * troff/charinfo.h (get_charinfo_by_number): Change argument type
15248 (charinfo::number): Change type to int.
15249 (charinfo::set_number): Change type of set_number to int.
15250 * troff/node.c (troff_output_file::put_char_width,
15251 troff_output_file::put_char): Test whether character is numbered
15252 using charinfo::numbered().
15253 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
15255 * lib/nametoindex.c: New implementation to cope with arbitrary
15258 * troff/input.c (token::operator==): Test val for
15259 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
15262 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
15263 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
15265 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
15267 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
15270 * all Makefiles: rm targets of cp and >.
15272 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
15275 * eqn/lex.c (def_table): Add dollar.
15277 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
15279 * troff/input.c (do_width): Push back newline before closing delim
15282 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
15284 * groff.c (possible_command::prepend_arg): New function.
15285 (main): Prepend device -m option.
15286 * groff.sh: Put device -m options before command-line options.
15288 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
15290 * macros/tmac.an (IP): Quote argument to TP.
15292 * ps/ps.c (main): New option -b, which sets...
15293 (broken_flags): New variable.
15294 (ps_printer::~ps_printer): Incorporate the setup section in the
15295 prolog if (broken_flags & NO_SETUP_SECTION).
15296 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
15297 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
15298 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
15299 ps_printer::print_needed_font_comment,
15300 ps_printer::print_supplied_font_comment,
15301 ps_printer::print_include_font_comments,
15302 ps_printer::lookup_doc_font, ps_printer::download_fonts,
15303 ps_printer::read_download_file, read_document_fonts, add_font,
15304 skip_line, parse_fonts_arg, document_font::document_font,
15305 document_font::~document_font, document_font::download,
15306 ps_output::include_file): Deleted.
15307 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
15308 rather than %!PS-Adobe-2.0. Make calls to
15309 resource_manager::need_font for each font that we used. Replace
15310 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
15311 print_supplied_font_comment, print_needed_font_comment by call to
15312 resource_manager::print_header_comments. Output %%Orientation
15313 comment. Output %%Requirements: numcopies comment if ncopies > 1.
15314 Don't output the prolog directly. Instead call
15315 resource_manager::output_prolog. Only define #copies when ncopies
15316 > 1. Delete calls to print_include_font_comments and
15317 download_fonts. Add call to resource_manager::document_setup.
15318 (ps_printer::do_file): Call resource_manager::import_file instead
15319 of including it ourselves.
15320 (ps_printer::do_import): Likewise. Also don't call
15321 merge_import_fonts. Push userdict on the dictionary stack before
15322 and pop it afterwards.
15323 Move declaration of ps_output into ps.h.
15324 * ps/psrm.c: New file implementing resource_manager class.
15325 * ps/ps.h: New file declaring ps_output and resource_manager
15327 * ps/devps/zapfdr.ps:
15328 * ps/devps/symbolsl.ps:
15329 * ps/devps/prologue: Use 3.0 conventions.
15330 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
15331 Add default definition of BROKEN_SPOOLER_FLAGS.
15332 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
15333 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
15335 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
15337 * etc/grog.pl: New file.
15338 * Makefile (GROG): New variable.
15339 Add GROG to SUBFLAGS.
15340 * etc/Makefile (GROG): New variable.
15341 (install.nobin): Install $(GROG) rather than grog.sh.
15343 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
15345 * eqn/special.c (special_box::compute_metrics): Make the input and
15346 output strings the same. Get the new height and depth from the
15347 predefined height and depth registers. Also make subscript kern
15348 and skew available.
15349 (special_box::compute_subscript_kern, special_box::compute_skew):
15352 * eqn/box.c (pointer_box::compute_skew,
15353 simple_box::compute_metrics, box::top_level)
15354 * eqn/text.c (prime_box::compute_metrics,
15355 prime_box::comput_subscript_kern)
15356 * eqn/limit.c (limit_box::compute_metrics):
15357 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
15358 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
15359 negative numbers in `nr' requests with a leading 0.
15361 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
15363 * eqn/special.c: New file.
15364 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
15365 Add new rule for simple.
15366 * eqn/lex.c (token_table): Add SPECIAL.
15367 * eqn/box.h: Declare make_special_box.
15368 * eqn/Makefile: Add special.[co].
15370 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
15372 * ps/devps/prologue: Possibly set packing to true while defining.
15373 Create grops dictionary here. Initialize local variables before
15374 defining procedures.
15375 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
15376 the dictionary stack. Set strokeadjust and overprint to false if
15377 the relevant operators are defined.
15378 (PEND): New procedure.
15379 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
15380 prologue. Do everything else in the setup section.
15381 (ps_printer::do_import): Just call PBEGIN and PEND around the
15382 picture. Also push userdict before, and pop it afterwards.
15384 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
15386 * troff/node.c (bracket_node::tprint): Brackets were being printed
15389 * macros/tmac.an (SH, SS): Set fill mode.
15391 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
15393 * troff/div.c (top_level_diversion::begin_page): Set
15394 high_water_mark to 0.
15396 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
15398 * man/mdate.sh: New file.
15399 * man/mdate.c: Deleted.
15400 * man/Makefile: Use mdate.sh instead of mdate.
15403 * eqn/lex.c (do_gsize): Supply missing argument to error message.
15405 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
15407 * man/mdate.c: New file.
15408 * man/*.man: Replace modification date by @MDATE@.
15409 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
15410 (mdate): New target.
15412 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
15413 Remove illegal input characters.
15415 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
15417 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
15419 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
15421 * troff/div.c (begin_page): Change behaviour when
15422 !first_page_begun and !break_flag.
15424 * troff/input.c (do_name_test): Return 0 if argument is empty.
15426 * troff/input.c (read_long_escape_name): Require closing ] to be
15427 at same input level as opening [.
15429 * troff/input.c (read_increment_and_escape_name): New function.
15430 (get_copy, process_input_stack): Use this for \n.
15432 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
15434 * troff/div.c (top_level_diversion::begin_page): Ignore the
15435 current value of page_number if !first_page_begun.
15437 * groff.c (main): Fix declaration of buf.
15439 * troff/input.c (do_name_test): New function.
15440 (token::next): Implement \A.
15441 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
15442 (token::description, token::add_to_node_list, token::process):
15443 Handle TOKEN_ESCAPE.
15444 * troff/token.h: New token TOKEN_ESCAPE.
15446 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
15448 * pic/main.c (do_picture): Allow space before and after filename
15449 following `<'. Check that the filename is not empty.
15451 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
15453 * Version 1.01 released.
15455 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
15457 * dvi/tmac.dvi: ftr HR to H.
15459 * macros/tmac.e: Round up computation of $r.
15461 * xditview/tmac.X: Don't give up completely in compatibility mode.
15462 Use \n(.s instead of \n[.s].
15464 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
15465 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
15466 Add u to factors inside \s[...]. Rename frac to dvi-frac.
15467 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
15468 short names in the char definitions.
15470 * ps/tmac.ps: Don't give up completely in compatibility mode.
15471 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
15472 quote in front of \n(.s. Add u to factors inside \s[...].
15474 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
15476 * tty/tmac.tty: Call the nroff request.
15478 * macros/tmac.e ((x, )x): Better definitions that work properly
15480 (@0, @1): Helper macros for (x.
15482 * macros/tmac.e ($s, hl): Use \l rather than \D.
15484 * tty/tmac.tty: Make it work better in compatibility mode.
15485 (pchar): Rename to tty-char.
15487 * macros/tmac.e (@E): New macro.
15488 (r, i, b, rb, bi): Use @E.
15490 * macros/tmac.e (@F): Don't use (;...) syntax.
15492 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
15493 it was modified for groff.
15495 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
15497 * macros/tmac.e (<., .>): Removed.
15498 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
15500 * macros/tmac.e: Remove check that groff is being used.
15502 * macros/tmac.e (@C): Change families only if using groff; turn
15503 compatibility mode off while changing familes. Save compatibility
15504 mode before changing families and restore it afterwards.
15506 * macros/tmac.e (@h): Remove test for offset + line length.
15508 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
15509 (lo, th, ac): Define to call @S instead of using als.
15511 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
15512 the ratio of the vertical spacing to the point size in units
15513 expressed as a percentage. Use these instead of $10r and $10R,
15514 Delete $10r and $10R.
15516 * lib/font.c (font::load): In default computation of space_width,
15517 divide by sizescale. Use scale_round.
15519 * macros/tmac.an (TP): Don't call `nf'.
15520 (an-do-tag): Don't call `fi'.
15522 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
15524 * troff/input.c (process_input_stack): Handle the case where
15525 spaces at the beginning of an input line are followed by a
15528 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
15530 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
15531 * groff.sh: Use pic -x with the dvi device.
15533 * dvi/devdvi/FontMakefile (H): Don't use -s.
15535 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
15536 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
15537 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
15540 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
15542 * ps/psfig.diff: New file.
15543 * ps/tmac.psfig: New file.
15545 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
15547 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
15548 (]-): Don't call ref*do-tl.
15550 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
15552 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
15553 (fn@do-FS): Rename to fn*do-FS.
15555 * troff/input.c (transparent_translate): New function.
15556 (process_input_stack): Apply transparent_translate before calling
15557 diversion::transparent_output(unsigned char).
15559 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
15561 * troff/input.c (do_define_macro): Define the macro before calling
15564 * xditview/Makefile: Add DEVICES variable. Change install target
15567 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
15569 * groff.c (run_commands): Handle the possibility that there are
15570 child processes other than those forked by us.
15572 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
15574 * lib/string.c (string::append): New function.
15575 * lib/stringclass.h: Declare it.
15577 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
15579 * eqn/main.c (main): New option -N which sets
15580 no_newline_in_delim_flag.
15581 (do_file): If no_newline_in_delim_flag is set don't allow newlines
15583 * groff.c (main): Pass -N on to eqn.
15584 (help, synopsis): Mention -N.
15585 * groff.sh: Implement -N.
15587 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
15589 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
15590 (]-): Call ref*do-tl if ref*need-tl is non-zero.
15591 (XP): Allow as initializer.
15593 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
15595 * troff/env.c (environment::wrap_up_field): If field_spaces are
15596 non-zero and we have a current_tab, subtract padding from
15597 tab_distance. If this makes tab_distance <= 0, use the next tab
15598 stop instead. If there isn't any next tab or it's a left tab,
15599 wrap up the current tab.
15600 (environment::start_field): Initialize tab_precedes_field.
15601 (environment::wrap_up_tab): If there's a current field, update
15602 pre_field_width, field_distance and tab_precedes_field.
15603 * troff/env.h (environment::tab_precedes_field): New member.
15605 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
15607 * ps/ps.c (ps_printer::do_file): New function.
15608 (ps_printer::special): Bind to `file' special.
15609 (ps_printer::do_exec): Set ndefined_styles to 0.
15611 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
15613 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
15614 Avoid stripping first character from the start of unrecognized
15615 escapes. Use lex_error instead of error to report errors.
15616 * eqn/lex.c (get_token): Rework handling of escapes.
15617 (lex_error): Move declaration into...
15620 * xditview/xditview.c (main): Make -page option work.
15622 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
15624 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
15626 * macros/tmac.s (B2): Correct size of box.
15628 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
15630 * macros/tmac.s (B2): Postpone drawing the box until in the
15631 top-level diversion.
15633 * tty/tmac.tty: Add font translations for C, CR, CW.
15635 * groff.c (synopsis, help): Document -i.
15636 * groff.sh: Implement -i.
15638 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
15639 Simplify the construction of SN.
15641 * troff/number.c (parse_term): Give `|' a higher precedence.
15642 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
15645 * macros/tmac.s (B2): Use par@finish instead of par@reset.
15647 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
15649 * lib/string.c (string::move): New function.
15650 * lib/stringclass.h: Declare it.
15652 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
15654 * troff/env.c (distribute_space): Add optional argument
15656 (environment::wrap_up_field): Call distribute_space with
15657 `force_forward' argument of 1.
15659 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
15661 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
15662 Inline it. Move reallocation into...
15663 (string::grow1): New function.
15664 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
15665 dependencies to include library header files.
15666 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
15668 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
15670 * macros/tmac.s (@NH): Use the same number registers than -ms does
15671 for the heading level counters. Use the same string that -ms does
15672 for the number for this heading.
15674 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
15676 * lib/new.c (operator new): Cast result of malloc to char *.
15678 * troff/input.c (spring_trap, lookup_request): Add assert that nm
15681 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
15683 * groff.c (main): Support -i.
15685 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
15687 * pic/pic.h: Include <osfcn.h>.
15689 * ps/ps.c: Add declaration of mktemp.
15691 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
15692 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
15693 argument as union wait *.
15694 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
15695 argument to union wait *.
15697 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
15699 * tty/tmac.tty: Add definition of \(co.
15701 * pic/object.c (make_arc): Only increase radius when radius
15702 strictly less than d.
15703 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
15706 * troff/env.c (environment::environment(symbol),
15707 environment::environment(const environment *)): Initialize
15710 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
15712 * tbl/main.c (main): Add exit(0).
15714 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
15716 * pic/main.c (main):
15717 * eqn/main.c (main):
15718 * tbl/main.c (main):
15719 * etc/soelim.c (main):
15720 * driver/printer.c (printer::~printer):
15721 * troff/node.c (real_output_file::~real_output_file,
15722 real_output_file::flush): Check for errors on stdout.
15724 * most files: Add 1991 to copyright notice.
15726 * macros/tmac.s: Don't test \n(.x and \n(.y.
15728 * troff/input.c (token::next): Rename `escape_char' label to
15729 `handle_escape_char' and `normal_char' label to
15730 `handle_normal_char'.
15732 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
15734 * groff.c (main, synopsis, help): Support -a option.
15735 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
15736 to trflags while parsing options.
15738 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
15740 * troff/number.c (parse_term): With `m', `M' and `n' scale
15741 indicators, convert scale factor to hunits before scaling.
15743 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
15745 * lib/font.c (scale_round): Better test for overflow when n is
15748 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
15750 * tbl/main.c (process_format): Add second argument of type
15751 options*. Change callers. Allow opt->tab_char as well as '\t'
15752 between format items.
15754 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
15756 * macros/tmac.an (PD): With no arguments, make sure register PD is
15758 (TH): Call PD with no argument, instead of setting register PD
15761 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
15763 * Version 1.00 released.
15765 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
15767 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
15769 * dvi/devdvi/DESC: Mount CW instead of CR.
15771 * dvi/tmac.dvi: Add definition of \(tm.
15773 * dvi/devdvi/texsy.map: Add lh, and rh.
15774 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
15775 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
15777 * dvi/devdvi/FontMakefile: Generate H from cmss10.
15778 * dvi/devdvi/Makefile: Install H.
15779 * dvi/devdvi/H: New file.
15781 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
15783 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
15786 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
15788 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
15790 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
15792 * macros/tmac.s (@EN): Handle the case where the equation is empty
15793 but the label is not.
15795 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
15797 * troff/groff.h: New warning category WARN_SPACE.
15798 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
15799 WARN_SPACE to warning_table.
15800 (interpolate_macro): Give a warning of type WARN_SPACE if the name
15801 is longer than two characters and is not defined, but the first
15802 two characters do make a defined name.
15804 * PROBLEMS: New file.
15806 * CHANGES: New file.
15807 * README-0.6, README-1.00: Deleted.
15809 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
15810 * xditview/devX75/Makefile: Make devX75-12.
15811 * xditview/devX100/Makefile: Make devX100-12.
15813 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
15814 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
15816 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
15818 * README-0.7: Rename to README-1.00.
15820 * macros/tmac.pic: New file.
15821 * macros/Makefile (install.nobin): Install tmac.pic.
15823 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
15825 * troff/env.c (hyphen_word): Correct the test for whether the
15826 token is a hyphen. Reset npos to 0.
15828 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
15830 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
15832 * macros/tmac.s (ds*common-end): Call par*reset.
15834 (par@reset-indent): Deleted.
15836 * macros/tmac.s (@IP): Divert the label.
15838 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
15840 * xditview/draw.c (setGC): Use a line width of .1m rather than
15841 .04m by default; round rather than truncate value.
15843 * tbl/table.c (class empty_entry): New class.
15844 (empty_entry::empty_entry, empty_entry::line_type): New functions.
15845 (table::add_entry): Represent empty entries by objects of type
15847 (table_entry::line_type): Return -1.
15848 (table::determine_row_type): Ignore entries with line_type 0.
15849 Treat type -1 as non-lines.
15851 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
15853 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
15854 macros/tmac.s: Rename \(-d to \(Sd.
15856 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
15858 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
15859 * xditview/libXdvi/DviChar.c: Likewise.
15860 * dvi/devdvi/texsy.map: Add `<<', `>>'.
15862 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
15864 * troff/div.c (top_level_diversion::begin_page): Call
15865 init_output() if the_output is 0.
15867 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
15869 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
15871 (get_copy): Turn \E into ESCAPE_E.
15872 (token::process, asciify): Handle ESCAPE_E.
15874 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
15876 (DS): Implement `.DS R'.
15878 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
15880 * macros/tmac.s (FS): New macro.
15882 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
15884 * macros/tmac.s (cov*tl-init): Remove after first execution
15885 instead of aliasing to @nop. Call top of page macro explicitly
15886 instead of setting trap; call @init first. Set pg@top as top of
15888 (cov*auto-init): Deleted. Set cov*tl-init instead of
15889 cov*auto-init as top of page trap.
15890 (TL, LP): Do a break instead of calling cov*tl-init.
15891 (cov*print): With RP format but no TL, alias FS and FE to @FS and
15892 @FE; in this case also give a warning and always start another
15893 page. No need to set pg@top here.
15894 (cov*tl-init): Rename to cov*first-page-init.
15896 * macros/tmac.s (RP): Do `.pn 0'.
15897 (cov*tl-init): With RP format don't do `.pn 0'.
15899 * macros/tmac.s (pg@cs-top): Set no space mode.
15901 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
15902 (cov*ab-init): Alias TL, AU and AI to these.
15904 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
15906 * macros/tmac.s (@EQ): Move the space before the equation into @EN
15907 (@EN): Do nothing unless \n[dl] is > 0.
15909 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
15911 * pic/object.c (ellipse_object::radius): New function.
15913 * VERSION: Change version to 0.7.
15915 * tbl/table.c (block_entry::do_divert): Declare return type as
15917 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
15919 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
15921 * troff/column.c: New file.
15922 * troff/Makefile: Corresponding changes.
15924 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
15927 * troff/div.c (top_level_diversion::space): If the space causes
15928 the first-page transition and springs a trap, truncate the space
15931 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
15933 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
15936 * pic/troff.c (troff_output::line_thickness,
15937 troff_output::set_fill): Do a horizontal motion to compensate for
15938 the width of the \D escape sequence.
15940 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
15942 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
15945 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
15948 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
15949 Supply empty definition.
15950 (text_entry::simple_print, simple_text_entry::simple_print):
15951 Delete declarations.
15952 (table::add_entry): Represent empty entries by objects of type
15955 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
15957 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
15959 * tbl/table.c (left_text_entry::add_tab): New function.
15961 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
15962 initialize like LP.
15964 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
15966 * troff/env.c (environment::start_field): Give an error message if
15967 there is no next tab.
15969 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
15971 * troff/env.c (hyphenate): Skip initial elements with zero
15974 * macros/tmac.s (par@init): Keep VS in points rather than units.
15976 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
15978 * pic/main.c (main): Implement `-c' option.
15979 * pic/output.h: Declare make_tpic_output().
15980 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
15982 (tpic_output): New class.
15983 (tpic_output::tpic_output, tpic_output::set_pen_size,
15984 tpic_output::command, make_tpic_output): New functions.
15986 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
15988 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
15989 if they're not already defined.
15990 * tbl/table.c (init_output): Don't test \n(.g.
15992 * troff/input.c (do_if_request): Delete `g' condition. Recognize
15993 `d', `r' and `c' conditions even in compatibility mode.
15995 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
15997 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
16000 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
16002 * troff/env.h (environment::prev_line_interrupted): New member.
16003 (environment::get_prev_line_interrupted): New function.
16004 * troff/env.c (environment::newline): Set prev_line_interrupted.
16005 (environment::environment(const environment *),
16006 environment::environment(symbol)): Initialize
16007 prev_line_interrupted.
16008 * troff/input.c (process_input_stack): Don't give special
16009 treatment to space and newline at the beginning of the line if the
16010 previous line was interrupted.
16012 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
16014 * eqn/eqn.y: Disallow PRIME by itself.
16015 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
16017 (def_table): Remove definition of '. Define prime to be `.
16019 * eqn/eqn.y: Split off part of rule `script' into a new rule
16022 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
16024 * macros/tmac.s ({, }): New string aliases.
16026 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
16028 * README-0.7: New file.
16030 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
16032 * macros/tmac.s: New file.
16033 * man/groff_ms.man: New file.
16034 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
16035 * Makefile.bd: Similarily.
16036 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
16037 definition of TMAC_S.
16038 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
16039 * macros/TODO: New file.
16041 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
16043 * troff/env.c (right_justify): New function.
16044 (init_env_requests): Bind this to request "rj".
16045 (center_lines): Set right_justify_lines to 0. If we get a bad
16046 integer, center 1 line.
16047 (environment::environment(symbol), environment::environment(const
16048 environment *)): Initialize right_justify_lines.
16049 (environment::get_right_justify_lines): New function.
16050 (init_env_requests): Bind this to number_register ".rj".
16052 * troff/env.c (environment::choose_breakpoint): Implement
16053 hyphenation_margin and hyphenation_space.
16054 (environment::get_hyphenation_space,
16055 environment::get_hyphenation_margin): New functions.
16056 (init_env_requests): Bind these to .hys and .hym.
16057 (hyphenation_space_request, hyphenation_margin_request): New
16059 (init_env_requests): Bind these to hys and hym.
16060 (environment::environment(symbol), environment::environment(const
16061 environment *)): Initialize hyphenation_margin and
16063 * troff/env.h: Corresponding changes to class environment.
16065 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
16067 * troff/div.c (blank_line): Always do a break.
16069 * eqn/box.c (do_text): Turn off escapes while appending text to
16072 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
16074 * troff/input.c (while_break_request, while_continue_request): New
16076 (init_input_requests): Bind these to "break" and "continue".
16077 (while_depth, while_break_flag): New variables.
16078 (while_request): Update while_depth. Break out of loop if
16079 while_break_flag is set.
16081 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
16083 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
16086 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
16088 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
16090 * stringify: New file.
16091 * Makefile (groff.o): Use stringify.
16093 * xditview/tmac.X: Remove definition of \(rn.
16094 * xditview/libXdvi/DviChar.c: Remove radicalex from
16097 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
16099 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
16100 (alphabetic_block_entry::alphabetic_block_entry,
16101 alphabetic_block_entry::divert, alphabetic_block_entry::print):
16103 (block_entry::divert): Split off body into ...
16104 (block_entry::do_divert): If the block is alphabetic, subtract 2n
16105 from the line length; also update the span width to dl+2n, and the
16106 alphabetic span width to dl.
16108 * driver/input.c (do_file): While reading argument to D command,
16109 when expanding buffer, multiply szp by sizeof(int) rather than 2
16110 in the argument to memcpy.
16112 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
16113 width of alphabetic columns.
16115 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
16117 * troff/node.c (lookup_family): Supply second argument to lookup.
16119 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
16120 search, return immediately if v is 0.
16122 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
16123 (troff_output::start_picture): Set this reg.
16124 (troff_output::end_picture): Remove this reg
16125 * eqn/box.c (box::extra_space): Don't produce `\x's if
16126 EQN_NO_EXTRA_SPACE_REG is defined.
16128 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
16129 * eqn/text.c (split_text): Map ' to \(fm when it's the first
16132 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
16134 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
16137 * troff/div.c (top_level_diversion::top_level_diversion):
16138 Initialize page_number to 0.
16140 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
16142 * groff/troff (environment::environment(const environment *)):
16143 Initialize name to e->name, rather than "anonymous".
16145 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
16147 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
16148 requested_page. Split middle part into ...
16149 (FindPage): New function.
16150 (SetValues): If we don't yet know the last page, and the requested
16151 page is greater than the current page, call FindPage.
16152 Update the font_map_string before doing this.
16154 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
16155 Translate \(lh and \(rh into left and right double arrows.
16157 * troff/node.c (class hyphen_inhibitor_node): New class.
16158 (hyphen_inhibitor_node::hyphen_inhibitor_node,
16159 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
16160 hyphen_inhibitor_node::type,
16161 hyphen_inhibitor_node::get_hyphenation_type): New functions.
16162 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
16163 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
16166 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
16168 * troff/node.h (dummy_node::get_hyphenation_type,
16169 transparent_dummy_node::get_hyphenation_type): Declare them.
16170 * troff/node.c: (dummy_node::get_hyphenation_type,
16171 transparent_dummy_node::get_hyphenation_type): New functions.
16173 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
16175 * xditview/libXdvi/draw.c: If M_PI not defined after including
16176 math.h, then define it.
16178 * xditview/Makefile: Add definition of AR. Pass it to the submake
16180 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
16182 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
16184 * troff/dictionary.h (object_dictionary::alias): Declare return
16186 * troff/dictionary.c (object_dictionary::alias): Return non-zero
16187 if the old name was defined.
16188 * troff/input.c (alias_macro): Give a warning if the old name was
16190 * troff/reg.c (alias_reg): Likewise.
16192 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
16194 * troff/input.c (token::next): Delete implementation of \R.
16196 * macros/Makefile: Strip comments from tmac.e while installing it.
16198 * troff/input.c: New variable `nroff_mode'.
16199 (troff_request, nroff_request): New functions.
16200 (init_input_requests): Bind `troff' and `nroff' to troff_request
16202 (do_if_request): Compute results of t and n conditions from
16205 * text/text.c (split_text): Fix typo in >=.
16207 * eqn/lex.c: Add definition of `==' to def_table.
16209 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
16211 * pic/tex.c (tex_output::start_picture): Change the definitions of
16212 \graph and \graphtemp so that they work properly with Plain TeX.
16214 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
16215 argument to `ar' is not less than the first.
16217 * pic/pic.y: Allow a comma between elements of the variable list
16218 in the argument to `reset'.
16220 * pic/object.c (arc_object::arc_object): Fix computation of
16223 * eqn/main.c (main): Add exit(0).
16225 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
16227 * troff/div.c (begin_page): Test no_space_mode after doing the
16228 break, but still push the page ejector cookie before doing the
16229 break. Also set the next page number after doing the break.
16231 * xditview/xditview.c (NewFile): Don't set the title and icon name
16232 if this is the first file and its name is `-'.
16233 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
16234 the X75 and X100 devices.
16235 (main): If a device has the XT_OPTION flag set and there's exactly
16236 one file argument, pass the driver -xrm and -title options to set
16237 the icon name and window title to the name of the file.
16239 * troff/env.c (environment_switch): If there was an argument but
16240 it wasn't a valid number or name, then pop an environment but
16241 don't give an error message on underflow.
16243 * troff/number.c (start_number): Correct spelling in error message.
16245 * troff/input.c (token::delimiter): Don't print an error message
16248 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
16249 ParseDrawFunction if dw->display_enable is true.
16251 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
16253 * pic/pic.y: Parse text positioning like normal attributes, so as
16254 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
16255 positioning attribute.
16257 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
16259 * tbl/main.c (process_data): When in state START while reading a
16260 text block, don't change to state MIDDLE if c is a newline.
16262 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
16264 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
16265 so as to avoid shadowing parameter.
16267 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
16269 * tbl/table.c (trim_space): Deleted.
16270 (table::add_entry): Don't call trim_space.
16272 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
16274 * VERSION: Change version to 0.6.
16276 * troff/number.c (parse_expr): Make == work.
16278 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
16280 * man/grog.man: New file.
16281 * man/Makefile: Add grog.n to MAN1PAGES.
16282 * etc/grog.sh: New file.
16283 * etc/Makefile: Install grog.sh as grog.
16285 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
16287 * troff/input.c (token::next): Implement \E.
16289 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
16291 * xditview/tmac.X: Change font translations to match tmac.ps.
16293 * troff/input.c (non_empty_name_warning): Don't give a warning if
16294 `\{' terminates the name.
16296 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
16298 * ps/devps/symbol.diff: New file.
16299 * ps/devps/FontMakefile: Mention symbol.diff.
16301 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
16303 * troff/node.c (font_position): Use get_long_name to read the
16306 * troff/env.c (environment_switch): If we get a number that's < 0
16307 or >= NENVIRONMENTS, treat it like a name.
16308 Change NENVIRONMENTS to 10.
16310 * troff/groff.h: Remove definition of FONTS_MAX.
16311 * troff/node.h (class font_family): Make map a pointer instead of
16312 an array. Add a map_size member. Make it a class. Make nm const
16313 and public. Make invalidate_fontno a friend.
16314 * troff/node.c: Define font_table_size. Make font_info a pointer
16315 rather than an array.
16316 (class troff_output_file): Allocate font_position dynamically. Add
16317 nfont_positions member.
16318 (troff_output_file::set_font): Grow font_position if necessary.
16319 (troff_output_file::~troff_output_file): Delete font_position.
16320 (troff_output_file::troff_output_file): Allocate font_position.
16321 (grow_font_table): New function.
16322 (troff_output_file::really_begin_page,
16323 troff_output_file:really_copy_page): Use nfont_positions rather
16325 (mount_font_no_translate, mount_style): Call grow_font_table if
16327 (font_family::font_family): Allocate map.
16328 (font_family::make_definite): Grow map if necessary. Use
16329 font_table_size instead of FONTS_MAX.
16330 (font_family::~font_family): New function.
16331 (invalidate_fontno): Use font_family::map_size.
16332 (get_fontno, env_space_width, env_half_narrow_space_width,
16333 env_narrow_space_width, symbol_fotno, is_good_fontno,
16334 get_bold_fontno, make_glyph_node): Use font_table_size rather than
16336 (next_available_font_position): Never return 0.
16338 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
16340 * ps/tmac.ps: Add font translations for compatibility with dpost.
16342 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
16344 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
16345 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
16346 Move definitions baseline_sep, shift_down, column_sep,
16347 matrix_side_sep into...
16348 * eqn/box.c: Add them to param_table.
16349 * eqn/pbox.h: Add declarations to pbox.h.
16351 * troff/input.c (set_string): Cast value to unsigned char *.
16353 * troff/token.h (process_input_stack): Declare it static before
16354 declaring it a friend.
16356 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
16358 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
16360 * dvi/devdvi/EX: Regenerate.
16362 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
16365 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
16367 * eqn/lex.c: In defaults_table, make definition of `dot' call
16368 `dot_def'. Don't explicitly make it roman. Similarily for other
16371 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
16373 (for_input::get, for_input::peek): Use this.
16374 (do_for): Add by_is_multiplicative argument.
16375 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
16376 Change semantic value of optional_by to be a double plus a flag
16377 saying whethet the by clause is multiplicative.
16379 * eqn/lex.c (get_delimited_text): Remember location of start of
16380 definition. Improve error handling when EOF is encountered.
16382 * lib/font.h: Rename handle_x_command to
16383 handle_unknown_font_command.
16384 * lib/font.c (font::load): Call handle_unknown_font_command for
16385 any unknown command in the font description file. Don't call
16386 handle_x_command. Include the name of the command in the argv.
16387 Improve message for unknown command after kernpairs or charset
16389 * ps/ps.c (ps_font::handle_x_command): Rename to
16390 handle_unknown_font_command. Remove message about `x download'
16391 command. Give error message for wrong number of arguments.
16392 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
16393 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
16394 handle_unknown_font_command. Give an error message for wrong
16395 number of arguments. Rename design_size to designsize.
16396 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
16397 checksum', `designsize' instead of `design_size'.
16399 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
16401 * eqn/*.[chy]: Change underaccent to uaccent.
16403 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
16404 give it the same precedence as ACCENT.
16405 * eqn/other.c (make_underaccent_box): New function.
16406 * eqn/box.h: Declare it.
16407 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
16410 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
16412 * pic/pic.y (reset_all): New function. Called in rule for RESET.
16413 (parse_init): Call reset_all.
16414 (define_variable): When defining scale reset only those
16415 pre-defined variables that are scaled.
16416 (defaults_table): Add `scale' as non-scaled value.
16418 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
16419 together with the text; allow any number of positioning words;
16420 allow center as a positioning word.
16422 * pic/object.c (output::compute_scale): Get picture maximum height
16423 and width from variables called maxpswid and maxpsht.
16424 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
16426 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
16428 * pic/object.c (object_spec::make_text): Multiply textht by number
16431 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
16433 (do_sprintf): New function.
16434 (pic.gperf): Add sprintf token.
16435 (text, sprintf): New rules.
16437 * pic/pic.y: `rand()' with no arguments returns a random number
16438 in the range [0,1).
16440 * pic/pic.y: Allow a bare expression to be an attribute: change
16441 precedences to support this. Change optional_ordinal rule to
16442 optional_ordinal_last to avoid reduce/reduce conflict.
16443 * pic/object.c (object_spec::object_spec): Initialize direction.
16445 * pic/pic.y: Implement ^ operator meaning exponentiation.
16447 * troff/node.h: Add default argument to mount_font.
16448 * troff/node.c (font_position): Read an optional third argument
16449 giving the external_name.
16450 (mount_font): Add optional argument giving the external_name.
16451 (mount_font_not_translate): Have additional argument giving
16452 external name. Use this name to load the font. Pass both names
16453 to font_info::font_info.
16454 (font_info::font_info): Have additional argument giving
16456 (class tfont): New member external_name.
16457 (font_info::get_tfont): Use external name to construct tfont_spec.
16459 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
16461 * eqn/lex.c (init_table): Add argument giving device. Define
16462 name of device to be "1".
16463 (do_ifdef): Counts as true if the argument has been defined with
16465 * eqn/main.c (main): Call init_table with device argument. Make
16466 device local to main.
16467 * eqn/eqn.h: Change declaration of init_table. Remove declaration
16470 * pic/lex.c (get_delimited): Allow text to be delimited by
16471 matching {}s. Don't recognize ending delimiter within a string.
16473 * troff/input.c (get_delim_name): New function.
16474 (token::next): Implement \C.
16476 * lib/font.c (font::load): Grok ---. Add an alias for each
16477 character based on its code.
16478 (font::get_code_width): Deleted.
16479 * lib/font.h (class font): Declare font::number_to_index().
16480 Remove declaration of font::get_code_width.
16481 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
16482 to indices of named characters.
16483 (font::number_to_index): New function.
16484 * troff/input.c (font::number_to_index): New function.
16485 (get_charinfo_by_number, charinfo::get_number,
16486 charinfo::set_number): New functions.
16487 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
16488 (token::process, token::description, token::get_char,
16489 token::add_to_node_list, token::operator==): Handle
16490 TOKEN_NUMBERED_CHAR.
16491 * troff/charinfo.h: Declare get_charinfo_by_number,
16492 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
16494 (charinfo::numbered): New function.
16495 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
16496 * troff/env.h (class environment): Remove declaration of ...
16497 * troff/env.c (environment::make_numbered_char_node): Deleted.
16498 * troff/node.c (make_numbered_node): Deleted.
16499 (class numbered_glyph_node): Remove.
16500 (troff_output_file::put_char_width, troff_output_file::put_char):
16501 Handle numbered chars.
16502 (troff_output_file::numbered_char): Removed.
16503 (tfont::get_code_width): Removed.
16504 (make_glyph_node): Don't search special fonts for numbered
16506 * troff/node.h: Remove declaration of make_numbered_node.
16507 * driver/input.c (do_file): Handle N command.
16508 * driver/printer.h: Add declaration of ...
16509 * driver/printer.c (printer::set_numbered_char): New function.
16510 * dvi/tfmtodit.c (main): Generate unnamed entries.
16511 * ps/devps/afmtodit: Likewise.
16512 * xditview/xtotroff.c (MapFont): Likewise.
16513 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
16515 * tbl/main.c (process_format): If multiple widths are specified
16516 for a column but all the widths are the same, don't give an error
16519 * tbl/table.c (table::do_row): If the current row is all lines and
16520 the stuff doesn't contains a line, mark the top of the row after
16521 printing stuff before the row. If the current row is not all
16522 lines and the stuff doesn't contain a line, don't unnecessarily
16523 mark the top of the row before printing the stuff.
16525 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
16527 * troff/groff.h: Remove MAX_PATH.
16528 * troff/input.c (open_file): Dynamically allocate space for the
16530 (open_mac_file, process_macro_file): Corresponding changes.
16532 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
16534 * troff/node.h (class output_file): Make copy_file pure. Add
16535 vspace method ifdef COLUMN. Add is_printing method.
16536 * troff/node.c: Add class printing_reg. Add class
16537 real_output_file. Derive other output_file classes from
16538 real_output_file; in these classes rename begin_page to
16539 really_begin_page, print_line to really_print_line, copy_file to
16540 really_copy_file, transparent_char to really_transparent_char.
16541 Move output_file::flush to real_output_file. Add printing member
16542 to class output_file.
16543 * troff/div.h: Remove printing member from top_level_diversion.
16544 Add vspace member function to class diversion ifdef COLUMN. Add
16545 some declarations ifdef COLUMN.
16546 * troff/div.c (top_level_diversion::copy_file,
16547 top_level_diversion::transparent_output,
16548 top_level_diversion::output): Don't test printing member before
16550 * troff/input.c: Handle initial variable_space_request ifdef
16552 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
16553 but comment it out.
16555 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
16557 * troff/div.c (diversion::need): Make any space forced. If we
16558 sprung a trap, set truncated_space to minus the distance to the
16559 trap and set needed_space to the amount that was needed.
16560 (top_level_diversion::space): A forced space turns no_space_mode
16562 (class constant_vunits_reg): New class.
16563 (init_div_requests): Implement number registers .trunc and .ne
16564 using constant_vunits_reg.
16565 (class truncated_space_reg): Deleted.
16567 * troff/div.h: Don't have a no_space_mode member in diversion.
16568 Instead have it in top_level_diversion.
16569 * troff/div.c (diversion::diversion): Don't initialize
16571 (top_level_diversion::top_level_diversion): Initialize
16573 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
16574 (macro_diversion::output): Don't clear no_space_mode.
16576 * troff/input.c (diverted_space_node::reread): Don't call
16577 environment::do_break. In fill mode, act like a blank line.
16578 (diverted_copy_file_node::reread): Don't call
16579 environment::do_break.
16581 * troff/div.c (blank_line): New function.
16582 * troff/div.h: Declare it.
16583 * troff/input.c (process_input_stack): Call it.
16585 * troff/div.c (truncated_space_reg::get_string): New function.
16586 (init_div_requests): Bind to .trunc.
16587 (space_request, top_level_diversion::space,
16588 top_level_diversion::output, macro_diversion::space,
16589 macro_diversion::output): Update truncated_space.
16590 (macro_diversion::output): Redo calculations when trap sprung.
16591 (macro_diversion::output, macro_diversion::space): No need for
16594 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
16595 after truncating post line spacing.
16597 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
16599 * ps/devps/prologue (MF, SF): Make them work even if setfont is
16600 defined as a procedure rather than as an operator.
16602 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
16604 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
16606 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
16608 * troff/div.c (top_level_diversion::output): Merge
16609 output_file::print_line and output_file::end_of_line member
16611 * troff/div.h (class output_file):
16612 * troff/node.c (troff_output_file::print_line,
16613 troff_output_file::end_of_line, output_file::end_of_line,
16614 ascii_output_file::print_line, suppress_output_file::print_line):
16615 Corresponding changes.
16617 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
16619 * troff/input.c (token::next): Don't give a warning for `\.'.
16621 * troff/env.c (environment::get_center_lines): New function.
16622 (init_env_requests): Bind number register .ce to it.
16623 * troff/env.h: Declare it.
16624 * tbl/table.c (table::init_output): Define reset macro to restore
16625 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
16627 (table::print): If center option not given, then imply center
16628 option if SAVED_CENTER_REG > 0.
16630 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
16632 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
16633 Troff.ps from DOWNLOAD.
16635 * troff/Makefile: Change comment in DEFINES to avoid confusing
16638 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
16639 code. Don't try to catch errors with stopped.
16640 (check_line_lengths): New function.
16641 * ps/devps/prologue (EXEC): Deleted.
16642 (EBEGIN, EEND): New procedures.
16644 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
16646 * troff/input.c: Include request.h before node.h.
16647 * troff/node.c: Likewise.
16648 * troff/env.c: Likewise.
16649 * troff/div.c: Likewise.
16650 * troff/node.h (class special_node): Store argument as a macro
16651 rather than a char *.
16652 * troff/node.c (special_node::special_node, special_node::copy):
16654 (special_node::~special_node): Deleted.
16655 (special_node::tprint): Deleted.
16656 (special_node::tprint_start, special_node::tprint_end,
16657 special_node::tprint_char): New functions.
16658 (troff_output_file::special): Deleted.
16659 (troff_output_file::start_special, troff_output_file::end_special,
16660 troff_output_file::special_char): New functions.
16661 * troff/input.c (special_node::tprint): New function.
16662 (do_special): Use macro not char *.
16663 (do_transparent_macro): Deleted.
16664 (token::next): Don't call do_transparent_macro.
16666 * troff/input.c (token::next): Add 'Y' case.
16667 (do_transparent_macro): New function.
16668 * troff/node.c (troff_output_file::special): Handle newlines with
16669 argument using new continuation convention.
16670 * driver/input.c (get_string): Cope with continuation convention.
16671 (do_file): Don't call skip_line after calling get_string(1).
16672 * ps/ps.c (ps_printer::special, ps_printer::do_import,
16673 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
16675 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
16678 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
16680 * troff/input.c (asciify): By default, illegal input characters
16681 should return empty string.
16683 * troff/input.c (copy_file): Handle first page transition like title.
16684 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
16686 * troff/input.c (token::next): Improve error message for EOF after
16688 (input_char_description): New function.
16689 (get_char_for_escape_name): Use input_char_description.
16690 (token::next): Warn about unrecognized escape sequences.
16691 (warning_table): Add WARN_ESCAPE.
16692 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
16695 * troff/token.h: Remove declaration of process_input_stack.
16697 * troff/input.c: Remove declaration of init_hyphen_requests.
16698 * troff/request.h: Correct spelling in declaration of same.
16700 * troff/input.c (token::next): Check whether escape_char is 0.
16702 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
16704 * groff.c (main, usage, help): Implement -P and -L options.
16705 * groff.sh: Likewise.
16707 * troff/input.c (token::next): Use some gotos to avoid code
16710 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
16711 Avoid calling symbol::symbol if name empty.
16713 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
16715 * troff/input.c (init_input_requests): Make \n(.x return the major
16716 version number and \n(.y return the minor version number.
16717 * troff/Makefile: Construct file majorminor.c defining
16718 major_version and minor_version automatically from ../VERSION.
16720 * troff/node.c (class glyph_node): Make operator new and operator
16722 (class ligature_node): Similarily.
16724 * troff/input.c (operator==(const macro &, const macro &)): New
16726 (non_interpreted_node::same): Use this.
16727 (string_iterator::string_iterator): Make macro& argument const.
16729 * troff/input.c (input_iterator::get): New function. Don't make
16730 asciify_macro or class non_interpreted_node friends of class
16732 (non_interpreted_node::interpret): Use input_iterator::get.
16733 (asciify_macro): Likewise.
16735 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
16736 ~non_interpreted_node): Deleted.
16737 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
16740 * troff/symbol.h: Make all symbol member functions const.
16742 * lib/strtol.c: New file.
16743 * lib/Makefile: Add strtol.c.
16744 * Makefile: Define STRTOL as strtol.o to include strtol in
16747 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
16749 * pic/troff.c (troff_output::simple_circle): Divide by scale.
16751 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
16753 * troff/input.c (do_special): Use input_level.
16755 * troff/token.h (TOKEN_BACKSPACE): New token.
16756 (token::backspace): New function.
16757 * troff/input.c (token::description, token::next, token::process):
16758 Grok TOKEN_BACKSPACE.
16759 (do_special): Turn TOKEN_BACKSPACE back into \b.
16761 * troff/token.h (token::leader): New function.
16762 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
16764 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
16766 * troff/input.c (do_special): Use token::description in error
16769 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
16771 * troff/input.c (decode_args): Combine quoted and
16772 quote_input_level variables. Make it a for (;;) loop.
16774 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
16776 * troff/input.c (read_long_escape_name): The test for whether to
16777 expand buffer was off by 1.
16778 (read_string): Similarily.
16780 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
16782 * troff/input.c: Use `const int' rather than `static const int'.
16784 * troff/div.h (diversion::copy_file): Declare as pure virtual.
16785 (macro_diversion::copy_file): New function.
16786 * troff/node.h: New class diverted_copy_file_node.
16787 * troff/node.c: Implement it.
16788 * troff/input.c (copy_file): Use diversion::copy_file. Handle
16789 first page transition by pushing a diverted_copy_file_node.
16790 * troff/input.c (token::next, process_input_stack): Don't handle
16793 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
16795 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
16796 whether space widths need adjusting.
16798 * troff/charinfo.h: Generalize translated_to_space to
16799 special_translation so as to allow translation to \&.
16800 * troff/input.c (translate): Allow translation to \&.
16801 (charinfo::*): Corresponding changes.
16802 * troff/node.c (make_node, node::add_char): Corresponding changes.
16803 * troff/node.h (dummy_node::dummy_node): Allow optional first
16806 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
16807 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
16809 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
16810 TOKEN_REQUEST with an argument of TITLE_REQUEST.
16811 (token::process): Grok that.
16812 * troff/input.c (copy_file): Handle first page transition like
16813 title by pushing a COPY_FILE_REQUEST cookie.
16814 (token::next, process_input_stack): Grok that.
16815 * troff/node.h (output_file::copy_file): Add x and y arguments.
16817 * troff/div.c (top_level_diversion::copy_file): Supply them.
16818 * troff/node.c (troff_output_file::copy_file): Add x and y
16819 arguments; moveto specified position. Invalidate font_position
16820 array after copying file.
16821 (output_file::copy_file): New function.
16822 (suppressed_output_file::copy_file, ascii_output::copy_file):
16824 * troff/input.c (transparent_file): New function.
16825 (init_input_requests): Bind to "trf".
16826 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
16827 (process_input_stack): Likewise.
16829 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
16831 * troff/node.c (init_node_requests): New number registers .kern
16832 pointing to global_kern_mode, and .lg pointing to
16833 global_ligature_mode.
16835 * troff/node.c (ligature): Don't change it if we get a bad
16838 * troff/input.c (do_define_string): Don't strip tabs.
16840 * troff/input.c (asciify_macro): Make the string_iterator auto.
16842 * troff/node.c (init_font_requests): Rename to...
16843 (init_node_requests):
16844 * troff/node.h: Change declaration.
16845 * troff/input.c (main): Change call.
16847 * troff/input.c (node::reread, diverted_space_node::reread): New
16849 (process_input_stack): Call reread rather than
16850 get_diverted_space_node.
16851 * troff/node.c (node::get_diverted_space_node,
16852 diverted_space_node::get_diverted_space_node): Removed.
16853 * troff/node.h: Declare reread methods instead of
16854 get_diverted_space_node methods. Make `n' member private.
16855 * troff/input.c: (token::diverted_space): Removed.
16856 * troff/token.h: Removed declaration.
16859 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
16861 * eqn/script.c (script_box::compute_metrics): Don't let
16862 SUP_RAISE_FORMAT become negative.
16864 * tbl/table.c (table::do_row): Entries that don't end in the
16865 this row shouldn't make the row non-blank.
16867 * tbl/table.c (table::make_columns_equal): Only set the width of
16868 columns which are marked as equal.
16870 * tbl/main.c (process_data): Before issuing excess data error,
16871 if last character was a newline unget it; then get it again after
16872 the error. Also include the contents of the entry in the message.
16874 * groff.c: New file.
16875 * Makefile: Build groff from groff.c. Make it possible to use
16876 either groff.sh or groff.c as groff.
16877 * Makefile.bd: Similarily.
16879 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
16881 * groff.sh: Don't delay expansion of $@ in assignment to files.
16882 Remove occurrences of \".
16884 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
16886 * all Makefiles: Simplify and rearrange.
16888 * Makefile: Handle fmod like malloc.
16889 * lib/Makefile: Similarily.
16890 * lib/fmod.c: Remove #ifdef NEED_FMOD.
16892 * Makefile: Rename OPTIMISE to OPTIMIZE.
16894 * groff.sh: Remove assignment to PATH.
16895 * Makefile: Remove SHPATH variable.
16896 * Makefile.bd: Similarily.
16898 * groff.sh: Add -V option to print the pipeline instead of
16901 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
16903 * lib/font.c: Split off file searching into ...
16904 * lib/fontfile.c: New file.
16906 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
16908 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
16910 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
16911 Also change misleading comment.
16912 (table::do_vspan): Change similarily misleading comment.
16913 * tbl/main.c (process_data): A format row with an explicit `s'
16914 uses up a data line, even if all the other columns are `_' or `='.
16916 * troff/input.c (token::description): Fix description of
16917 TOKEN_DUMMY and TOKEN_EMPTY.
16919 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
16921 * groff.sh: Fix description of -Z in help message.
16923 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
16925 * pic/object.c (object_spec::make_object): Allow negative and zero
16927 * pic/pic.y: Give linethick default value of -1.0.
16928 * pic/troff.c (troff_output::troff_output): Initialize
16929 last_line_thickness to BAD_THICKNESS.
16930 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
16931 (troff_output::line_thickness): Canonicalize negative thicknesses
16932 to RELATIVE_THICKNESS.
16933 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
16934 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
16936 (tex_output::start_picture): Set pen_size to -2.0.
16938 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
16939 0, then use 0 linewidth.
16940 (ps_printer::ps_printer): Initialize line_thickness to -1.
16942 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
16944 * ps/devps/symbolchars: Remove `or'.
16945 * ps/tmac.ps: Implement \(or with .char.
16947 * ps/devps/symbolchars: Move most characters into textmap.
16948 * ps/devps/textmap: Add names for troff bracket characters. Remove
16951 * ps/devps/TSymbol.ps: Removed.
16952 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
16953 * ps/tmac.ps: Do with .char what TSymbol did.
16954 * ps/devps/download: Remove TSymbol.
16956 * ps/devps/T: Removed.
16957 * ps/devps/Troff.ps: Removed.
16958 * ps/devps/Troff.afm: Removed.
16959 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
16960 * ps/devps/download: Remove Troff.
16961 * ps/devps/FontMakefile: Remove T target.
16962 * ps/devps/DESC-A4: Remove T from font list.
16963 * ps/devps/DESC-letter: Likewise.
16965 * troff/input.c (macro_to_node): Rename to ...
16966 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
16967 character's definition while processing it.
16968 * troff/node.c (node::add_char, make_node): Change calls to
16969 macro_to_node accordingly.
16971 * troff/input.c (token::next): Translate \_ to \(ul.
16973 * tty/devascii/R.proto: Add `|'.
16974 * tty/devlatin1/R.proto: Likewise.
16976 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
16978 * man: Put the version number in all the man pages.
16980 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
16982 * Makefile.bd: New file.
16983 * README.bd: New file.
16985 * VERSION: New file.
16986 * lib/version.c: Removed.
16987 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
16990 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
16991 environment variable.
16993 * all Makefiles: Split install target into install.bin for
16994 binaries, and install.nobin for everything else.
16995 * Makefile: Add bindist target.
16997 * man/afmtodit.man: New file.
16998 * man/Makefile: Add afmtodit.n to MAN1PAGES.
16999 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
17001 * ps/Makefile: Pass BINDIR to make install in devps.
17003 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
17004 the space character.
17006 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
17008 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
17010 * ps/ps.c: Redo font downloading.
17011 * ps/devps/download: New file.
17012 * ps/devps/Makefile: Add download to DEVICEFILES.
17013 * ps/devps/afmtodit: Remove -d option.
17014 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
17015 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
17016 * ps/devps/zapfdr.ps: Likewise.
17017 * ps/devps/TSymbol.ps: Likewise.
17019 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
17021 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
17023 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
17025 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
17026 then strip the first line if it starts with %.
17027 * Makefile: Add a comment about this.
17029 * man/tfmtodit.man: New file.
17030 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
17031 * dvi/Makefile: Install tfmtodit in BINDIR.
17033 * dvi/tfmtodit.c (usage): Mention -v option.
17035 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
17037 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
17038 * troff/node.c (troff_output_file::transparent_char): Don't call
17041 * eqn: Add check_tabs method to most box classes.
17042 * eqn/box.c (box::top_level): Call check_tabs.
17044 * eqn/script.c (script_box::output): Use \Z.
17045 * eqn/limit.c (limit_box::output): Use \Z.
17047 * eqn/box.c (box::top_level): Use itoa.
17049 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
17051 * dvi/tmac.dvi: Add font translations for CR, C, TT.
17052 * dvi/devdvi/Makefile: Don't make links to CW.
17054 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
17056 * xditview/tmac.X: Likewise.
17058 * troff/node.c: Add font translation feature.
17059 (get_font_translation): New function.
17060 (symbol_fontno): Translate the font name.
17061 (mount_font_no_translate): Rename to mount_font to this.
17062 (mount_font): New function.
17063 (font_family::make_definite): Call mount_font_no_translate instead
17065 (mount_style): Translate the font name.
17066 (font_translate): New function.
17067 (init_font_requests): Bind "ftr" to font_translate.
17069 * ps/devps/prologue (SN): New procedure that rounds a position to
17070 the nearest (pixel + (.25,.25)).
17071 (DL): Use SN to round endpoints.
17073 * lib/version.c: Changed version to 0.5.
17075 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
17077 * Makefile: Move definition of PAGE to the very beginning, so that
17078 people are less likely to miss it.
17080 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
17082 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
17084 * troff/env.c (environment::choose_breakpoint): Make `can't find
17085 breakpoint' error a warning of type WARN_BREAK. Change message to
17086 `can't break line'.
17087 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
17089 * troff/input.c: Add WARN_BREAK to warning_table. Include
17090 WARN_BREAK in DEFAULT_WARNING_MASK.
17092 * tty/tmac.tty: Add definition of \(+-.
17094 * groff.sh: Remove `--' option to set command.
17096 * dvi/devdvi/texsy.map: Remove duplicate md entry.
17098 * ps/devps/eqnchar: Better definition of cdot using md.
17099 * dvi/devdvi/eqnchar: Likewise.
17100 * xditview/devX100/eqnchar: Likewise.
17101 * xditview/devX75/eqnchar: Likewise.
17102 * eqn/lex.c: Add definition of cdot.
17104 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
17106 * troff/input.c (get_optional_char): New function.
17107 * troff/input.c (set_page_character): Use get_optional_char(),
17108 rather than has_arg() and tok.get_char(1).
17109 * troff/env.c (tab_character, leader_character, hyphen_char,
17110 field_characters): Likewise.
17111 (margin_character): Likewise. Also always delete the
17112 margin_character_node.
17114 * troff/input.c (token::get_char): Use token::description.
17116 * troff/input.c (has_arg): Don't skip over tab and \}.
17117 * troff/number.c (start_number): Give a warning if the number
17118 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
17120 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
17122 * troff/input.c (empty_name_warning, non_empty_name_warning): New
17124 (get_name, get_long_name): Use these. Rename `warn' argument to
17127 * troff/node.c (get_fontno): Test that the symbol is not null.
17129 * troff/input.c (token::description): New function.
17130 * troff/number.c (parse_term): Use token::description in `numeric
17131 expression expected' message.
17132 * troff/groff.h: Add WARN_MISSING.
17133 * troff/number.c (start_number): New function.
17134 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
17135 get_incr_number): Use start_number().
17136 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
17138 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
17139 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
17141 * troff/input.c (token::get_char): Use WARN_MISSING.
17142 * troff/input.c (token::delimiter): Use token::description.
17143 * troff/env.c (environment_switch): Back out Aug 3 change.
17144 * troff/input.c (has_arg): Skip over \}s and tabs but give a
17146 * troff/token.h (token::tab): New function.
17147 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
17148 * troff/reg.c (alter_format): Likewise.
17149 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
17151 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
17153 * troff (most files): Redo warnings. Divide warnings into various
17154 categories; warning() has an additional first argument indicating
17155 the category it falls into.
17156 * troff/input.c (main): -w now takes an argument. New option -W.
17157 (enable_warning, disable_warning): New functions.
17159 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
17160 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
17162 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
17164 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
17165 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
17166 * xditview/devX75/eqnchar: Likewise.
17167 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
17169 * eqn/other.c: When bar or over applies to a single character
17170 don't produce an overline_box or an underline_box. Instead produce
17171 an accent_box or an underaccent_box, with the accent a line
17172 whose width is accent_width. New classes underaccent_box,
17173 overline_char_box and underline_char_box.
17174 * eqn/box.h: Move overline_box, underline_box, accent_box class
17175 declarations into eqn/other.c. Add declarations of
17176 make_underline_box, make_overline_box, make_accent_box.
17177 * eqn/eqn.y: Call make_overline_box, make_underline_box
17178 make_accent_box instead of constructors.
17179 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
17181 * eqn/other.c: Add accent_box::~accent_box.
17182 * eqn/box.h: Declare it.
17184 * groff.sh: With -Tps, use eqn -D.
17186 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
17188 (underline_box::output): Similarily.
17189 (accent_box::output): Use \Z.
17191 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
17194 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
17196 * troff/div.c (top_level_diversion::transparent_output(unsigned
17197 char)): Use asciify.
17198 * troff/input.c (asciify): Don't make it static.
17199 * troff/token.h (asciify): Declare it.
17201 * troff/input.c (get_name, get_long_name, token::get_char,
17202 token::delimiter): Add an extra default argument which says
17203 whether a warning should be printed.
17204 * troff: Pass a non-zero argument to one of these rather than
17205 printing a warning directly.
17207 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
17209 * troff: Consistently use symbol::is_null.
17211 * troff/dictionary.h: Move some inline functions into
17214 * troff/request.h: Move inline functions into input.c.
17215 (request_or_macro::invoke): Make it pure.
17217 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
17218 * troff/input.c (init_input_requests): Use class constant_int_reg.
17219 (class compatible_reg): Deleted.
17220 * troff/div.c (init_div_requests): Use class constant_int_reg.
17221 (class last_post_line_extra_space_reg): Deleted.
17223 * troff/env.c (tab_character): Don't change the tab character if
17224 we get an invalid argument.
17225 (hyphen_char): Similarily.
17227 * troff/reg.c (alter_format): Check that nm is not null.
17229 * Makefile, groff.sh: Make it possible to customize the commands
17230 used for printing PostScript and dvi files. Also make it possible
17231 to customize the path used by groff.sh.
17233 * eqn/eqn.y: Make `left' right associative.
17235 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
17237 * pic/pic.h: Added definition of M_SQRT2 for those systems that
17240 * pic/pic.h: Removed definition of INT_MAX.
17242 * troff/node.c (italic_corrected_node::vertical_extent): Omit
17245 * troff/input.c (token::next): Handle \R like \n.
17247 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
17249 * ps/tmac.pc (PSPIC): Simplify.
17251 * troff/env.c (tab_stops::to_string):
17252 * pic/pic.y (object_type_name):
17253 * pic/troff.c (simple_output::line):
17254 * pic/tex.c (tex_output::spline):
17255 * pic/object.c (object_spec::make_object):
17256 * tbl/main.c (process_data): Add cases to switch statements to
17257 avoid cfront warnings. (Some of these are spurious, since the
17258 switch already has a default case.)
17260 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
17261 `ps-'. Don't test systat; instead check number of arguments to
17264 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
17266 * macros/tmac.e: Do not decrease the page offset by 0.5i.
17268 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
17269 Unlink the file as soon as we have opened it, so that we don't
17270 have to bother with signal handlers.
17271 (handler): Deleted.
17272 (fatal_error_exit): Deleted.
17273 (main): Don't call signal.
17275 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
17277 * dvi/devdvi/Makefile: Use the -k option with S and MI.
17279 * pic/pic.y: If there is a label, or an nth construction before
17280 the first `.' in the argument to `with', ignore it and generate a
17282 * pic/lex.c (lex_warning): New function.
17284 * tbl/table.c (table::init_output): In section keep and release
17285 macro, use 0 indent when diverting and the correct indent when
17288 * troff/input.c (interpolate_number_format): Do not interpolate
17289 anything if the number register is not defined.
17291 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
17293 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
17295 * ps/devps/prologue (PICTURE): Set components of graphics state to
17296 their default values.
17298 * ps/devps/text.enc: Add trademark
17299 * ps/devps/textmap: Add names for club, spade, heart, diamond,
17300 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
17301 * ps/devps/symbolchars: Add names for summation and product.
17303 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
17304 suchthat. Add pp. Add upper-case letters.
17306 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
17307 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
17310 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
17311 rA (right angle bracket) to ra. Introduce names for double-headed
17312 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
17313 * ps/devps/textmap: Likewise for ps device.
17314 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
17315 * tty/devascii/R.proto: Rename lA to la and rA to ra.
17316 * tty/devascii/R.proto: Likewise.
17317 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
17319 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
17321 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
17323 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
17326 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
17328 * troff/div.c (when_request): Use symbol::is_null rather than
17329 has_arg to determine whether we have an argument.
17330 (change_trap): Remove the trap if we get an invalid number. Give
17331 an error if we don't get at least the macro name.
17332 (diversion_trap): Remove trap if we get an invalid name or number.
17334 * troff/env.c (environment_switch): Pop if we get an invalid
17335 symbol or numeric expression.
17337 * troff/input.c (do_define_macro): If EOF is encoutered while
17338 defining the macro, do tok.next() before returning.
17340 * troff/token.h (has_arg): Move definition from here, to ...
17341 * troff/input.c (has_arg): ... here
17343 * troff/env.c (space_size): Do nothing if we get an invalid argument.
17344 * troff/input.c (shift): Likewise.
17346 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
17349 * pic/troff.c (troff_output::start_picture): Comment out calls to
17352 * eqn/main.c (do_file): Subtract 1 from current_lineno if
17353 interpret_lf_args succeeds.
17355 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
17356 \\. This avoids problems with \$N.
17358 * groff.sh: Pass -C to preprocessors.
17360 * lib/lf.c (interpret_lf_args): Be more flexible.
17362 * tbl/main.c (main): Add -C option.
17363 (table_input::get): Do not recognize TE if followed by character
17364 other than a space or newline unless -C option given.
17365 (process_input_file): Likewise for lf, TS.
17366 (process_data): Likewise for lf in text blocks.
17368 * eqn/main.c (main): Add -C option.
17369 (do_file): Don't recognize EQ, EN or lf if followed by character
17370 other than space or newline unless -C option given.
17371 * eqn/lex.c (file_input::read_line): Similarily.
17372 * eqn/eqn.h: Declare compatible_flag.
17374 * etc/soelim.c (main): Add -C option.
17375 (interpret_lf_args): Use version in libgroff.
17378 * pic/main.c (main): Add -C option, which sets compatible_flag.
17379 (top_input::get), (top_input::peek): If -C option not given,
17380 do not recognize .PS/.PE/.PF/.lf if followed by a character
17381 other than space or newline.
17382 * pic/lex.c (file_input::read_line): Similarily.
17383 * pic/pic.h: Add declaration of compatible_flag.
17385 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
17387 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
17389 * troff/node.c, troff/node.h: Add `asciify' methods to classes
17390 derived from node. New class space_char_hmotion_node.
17391 * troff/input.c (asciify_macro): New function.
17392 * troff/input.c (init_input_requests): New request `asciify' bound
17394 * macros/mm.diff: New file.
17395 * Makefile: In install.mm target use `patch' to apply
17398 * troff/input.c (macro::print_size): Just print the size in bytes.
17400 * troff/div.c (return_request): Correct the argument
17403 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
17405 * troff/node.h (class composite_node): Add sz member.
17406 * troff/node.c (composite_node::size): Return sz.
17407 * troff/input.c (macro_to_node): Use the initial size in the
17408 environment as the size of the composite_node.
17410 * troff/node.c (node::zero_width_tprint): Provide a reasonable
17413 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
17415 * troff/div.c (change_trap): If we get a bad number expression,
17418 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
17420 * lib/matherr.c (matherr): Define this only if math.h defines
17423 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
17425 * troff/div.c (macro_diversion::distance_to_next_trap): If there
17426 no diversion trap return vunits(INT_MAX - vresolution).
17428 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
17430 * troff/input.c (do_zero_width): New implementation that doesn't
17431 use a temporary environment. Use instead:
17432 (token::add_to_node_list): New function.
17433 * troff/env.c (environment::get_prev_char_height),
17434 (environment::get_prev_char_height),
17435 (environment::get_prev_char_skew): New functions.
17436 (environment::get_prev_char): New function.
17437 (environment::get_prev_char_width): Change to use get_prev_char.
17438 (init_env_request): Implement new registers .cht, .cdp, .csk.
17439 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
17440 \Z being processed in a separate environment.
17442 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
17444 * tbl/table.c: Removed TABLE_BOTTOM_REG.
17446 * tbl/table.c (table::init_output): In the section release macro,
17447 give a warning message if the section won't fit on one page.
17449 * tbl/table.c (table::do_top): Emit table keep only if table is
17451 (table::do_bottom): Likewise for table release.
17452 (table::table), (table::add_vertical_rule): Remove reference to
17454 * tbl/table.h: Remove keep member.
17456 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
17457 SECTION_RELEASE_MACRO, if there's not enough space before the next
17458 trap to output the diversion, call T# ourselves, set
17459 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
17460 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
17461 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
17462 vertical position and return to it before turning traps on again.
17464 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
17466 * troff/node.c, troff/node.h: In classes derived from node,
17467 replace prev_char_width method by last_char_node method.
17468 * troff/env.c (environment::get_prev_char_width): Use
17469 node::last_char_node rather than node::get_prev_char_width.
17471 * Makefile: Added comment about -fno-inline on 68030-based
17474 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
17475 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
17476 expressions using sizeof to int.
17477 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
17479 * macros/tmac.e (TS): Don't move @f back past the current
17482 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
17484 * ps/ps.c (main): Buffer stderr.
17485 * dvi/dvi.c (main): Likewise.
17486 * tty/tty.c (main): Likewise.
17488 * ps/ps.c (ps_printer::do_import): Improve error handling.
17490 * troff/input.c (abort_request): Use asciify.
17492 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
17493 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
17494 type of first argument int rather than char. This works around a
17495 bug on the 68030 based Apollo using g++ 1.37.1.
17497 * tbl/table.h (class table): Add `keep' member.
17498 * tbl/table.c (table::table): Initialize `keep'.
17499 (table::add_vertical_rule): Set `keep' to 1.
17500 (table::do_top): Only emit table keep macro is `keep' is non-zero.
17501 (table::do_bottom): Likewise for table release macro.
17502 (table::do_row): Emit section keep macro even if the row is 0.
17504 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
17506 * macros/tmac.e (@C): Preserve the font family across the change
17509 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
17511 * lib/font.c: Initialize font::hor and font::vert to 1.
17512 (font::load_desc): Check the values of font::hor and font::vert.
17514 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
17515 be included in a C compilation.
17516 (iftoa): Use INT_DIGITS. Include lib.h.
17518 (as_string): Likewise.
17519 * tbl/table.c: Removed definition of INT_DIGITS.
17520 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
17521 * troff/input.c (input_input_requests): Likewise.
17522 * ps/ps.c (make_encoding_name): Likewise.
17523 (ps_printer::set_style): Likewise.
17524 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
17526 * tty/devascii/R.proto: Map fm onto '.
17527 * tty/devlatin1/R.proto: Likewise.
17529 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
17531 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
17532 argument to \w is at a different input level.
17534 * tbl/table.c (table::init_output): Define a new macro
17535 REPEATED_VPT_MACRO, like vpt but if in a diversion also
17536 transparently outputs itself.
17537 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
17539 (table::do_row): Likewise.
17541 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
17542 TRANSPARENT_STRING_NAME.
17544 * tbl/table.c (table::init_output): In the table release macro
17545 print an error message and don't produce any output if after
17546 issuing the need request the table still will not fit. Also
17547 remove the diversion after bringing it back.
17549 * tbl/table.c (table::init_output): Define a new macro
17550 REPEATED_MARK_MACRO, like mk but if in a diversion also
17551 transparently outputs itself.
17552 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
17553 is necessary because .TH might not call .T#.
17554 (table::do_top): Likewise TOP_REG.
17555 (table::define_bottom_macro): If TOP_REG is no longer valid, use
17556 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
17557 table header might contain just the two top rules.
17559 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
17561 * troff/div.c: Implement new request `ptr' to print all traps.
17563 * troff/env.c (init_env_requests): Implement `.tabs' reg with
17564 init_string_env_reg.
17565 * troff/env.c (class tab_reg): Deleted.
17567 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
17569 * troff/div.c: New number register .pn returns the number of the
17570 next page as set by the pn request.
17572 * macros/tmac.an: Redid headers and footers. Number each manual
17573 entry starting from 1 unless \nC is > 0, like Sun. Added an
17574 optional 5th argument to .TH which specifies the manual name and
17575 appears in the center of the header. Understand the X, P and D
17576 registers like Sun.
17578 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
17580 * troff/env.c (init_env_requests): New number register `.lt' to
17581 return the title length.
17583 * troff/node.h (class transparent_dummy_node): New class.
17584 * troff/node.c (class transparent_dummy_node): Provide member
17586 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
17589 * troff/input.c (token::next): New escape sequence \).
17590 * troff/input.c (get_copy): Recognize \) in copy mode.
17592 * troff/input.c (input_stack::clear): New function.
17593 * troff/input.c (exit_request): Use input_stack::clear.
17595 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
17596 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
17598 * troff/env.c: Move set_page_character to input.c. Move
17599 page_character to input.c also.
17600 * troff/env.c (title): Split off the reading of the parts of the
17601 title into read_title_parts.
17602 * troff/input.c (read_title_parts): New function. Check the
17603 input_level when testing whether a token matches the delimiter.
17605 * troff/input.c (exit_request): New function.
17606 * troff/input.c (init_input_requests): Bind ex request to
17607 exit_request rather than exit_groff.
17609 * troff/input.c (exit_groff): Call tok.next() before
17610 process_input_stack().
17612 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
17614 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
17615 * troff/env.h: ditto.
17616 * troff/input.c: ditto.
17618 * troff/env.c (environment::is_empty): Test pending_lines.
17620 * troff/env.c (environment::have_pending_lines): Removed.
17622 * troff/input.c: Add request to flush pending lines from the
17625 * troff/env.c, troff/env.h: Add automatic widow control feature.
17627 * troff/input.c (exit_groff): Do process_input_stack() after
17628 do_break() but before setting exit_flag to 2.
17630 * troff/input.c: Remove FLUSH_PENDING_LINES and
17631 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
17632 environment after END_TRAP token seen, but only if there aren't
17633 any more traps still unfinished.
17634 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
17636 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
17638 * troff/env.c: Rename the `retain_size' member of class
17639 pending_output_line to `no_fill'.
17641 * troff/env.c (title): When the line is output, make the
17642 retain_size argument !fill.
17644 * troff/node.h: Add `hyphenated' member to struct breakpoint.
17645 * troff/node.c (space_node::get_breakpoints),
17646 (dbreak_node::get_breakpoints): Fill this in.
17647 * troff/env.c: Allow specification of maximum number of
17648 consecutive hyphenated lines.
17650 * troff/env.c (environment::is_empty): Add test for !current_tab.
17652 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
17654 * troff/env.c (environment::hyphenate_line): Don't completely give
17655 up if the word is not to be hyphenated; continue so that breaks
17656 can be made at break_char_node's.
17658 * lib/lib.h: Only define INT_MAX if it's not already defined;
17659 undef INT_MIN if it's already defined.
17661 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
17663 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
17664 This works around a bug in AT&T C++ 2.0 used with an ANSI C
17667 * macros/tmac.an (an-header): Set no-space mode.
17669 * macros/tmac.an (TH): Start a new page if necessary.
17671 * Started using ChangeLog at version 0.4.
17674 version-control: never