1 2008-12-15 Werner LEMBERG <wl@gnu.org>
3 * NEWS: Mention `preconv'.
5 2008-11-12 Werner LEMBERG <wl@gnu.org>
7 Implement `x' specifier for expanded columns. Contrary to old DWB
8 tbl, more than a single `x' specifier can be used. At the same
9 time, remove most of the code from change 2007-02-09 which collides
10 with the new implementation.
12 * src/preproc/tbl/main.cpp (format): Add `expand' array.
13 (format::format, format::~format): Updated.
14 (input_entry_format): Add `expand' field.
15 (input_entry_format::input_entry_format): Updated.
16 (input_entry_format::debug_print): Handle `expand'.
17 (process_format): Handle `x' specifier.
18 (process_data): Updated.
20 * src/preproc/tbl/table.cpp (AVAILABLE_REG, COLCOUNT_REG): Remove.
21 (EXPAND_REG): New macro.
22 (table_entry::divert, block_entry::divert,
23 alphabetic_block_entry::divert): Add parameter to control whether
24 expanded columns shall be handled.
25 (block_entry::do_width): Remove.
26 (block_entry::do_divert): Add parameter to control whether expanded
27 columns shall be handled.
28 Treat expanded columns like columns with a minimum width.
29 Remove `experimental' code.
30 (table::table, table::~table, table::allocate): Updated.
31 (table::set_expand_column): New function.
32 (table::count_block_columns): Replace with...
33 (table::count_expand_columns): This function.
34 (table::divide_span): Handle expanded columns the same as equal
36 (table::sum_columns): Add parameter to control whether expanded
37 columns shall be handled.
38 (table::compute_available_block_width): Replace with...
39 (table::compute_expand_width): This function.
40 (table::compute_total_separation): New function, taking code from
41 `compute_separation_factor'.
42 (table::compute_separation_factor): Simpler code. The check for the
43 `EXPAND' flag has been moved to the caller.
44 (table::compute_widths): Add `top-level' changes to handle expanded
47 * src/preproc/tbl/table.h (table): New field `total_separation'.
48 Remove `blockflag' array.
50 Update member function declarations.
52 * src/preproc/tbl/tbl.man: Document `x' specifier.
53 Expand documentation to cover all aspects of Lesk's tbl reference.
55 * NEWS: Document `x' specifier.
57 2008-11-08 Werner LEMBERG <wl@gnu.org>
59 * src/preproc/tbl/tbl.man: Restructuring.
60 Improve text block documentation.
62 2008-11-07 Werner LEMBERG <wl@gnu.org>
64 * src/preproc/tbl/table.cpp (table::compute_widths): Use default
65 scaling operator for minimum width. Without this fix, `lw3' (or
66 `lw(3)' would be handled as a column with a minimum width of 3u
69 2008-11-05 Werner LEMBERG <wl@gnu.org>
71 * tmac/doc-common (Dt): Start a new page if necessary and set up
74 * tmac/andoc.tmac (reload-doc): Simplify due to change in
79 2008-10-18 Werner LEMBERG <wl@gnu.org>
81 * src/preproc/tbl/main.cpp (process_format): Rename `x' and `X' to
82 `m' and `M', respectively.
83 Sort entries in `switch' block.
84 * src/preproc/tbl/tbl.man: Updated.
85 Sort key entries; other minor improvements.
87 2008-10-17 Werner LEMBERG <wl@gnu.org>
89 * src/preproc/tbl/table.cpp (table::compute_available_block_width):
91 (table::compute_widths): Replace some code with new function
92 (shifted to a more appropriate place).
93 * src/preproc/tbl/table.h: Updated.
95 2008-10-16 Werner LEMBERG <wl@gnu.org>
97 * tmac/doc-common (doc-operating-system-*), tmac/groff_mdoc.man: Add
100 2008-10-13 Werner LEMBERG <wl@gnu.org>
102 * tmac/groff_mdoc.man: Update documentation on BSD-like OS string
105 2008-10-10 Werner LEMBERG <wl@gnu.org>
107 * man/roff.man, doc/groff.texinfo: Improve the history part. This
108 is based on input from Tom Van Vleck <thvv@multicians.org>.
111 * src/preproc/eqn/sqrt.cpp (sqrt_box::compute_metrics): Assure that
112 value of `rst' register is not zero, as can happen for the HTML
113 output device. Otherwise, there are too many loops, and we get a
114 stack overflow because of recursion.
116 2008-10-05 Stephen Gildea <http://www.gildea.com/stephen/>
118 * src/preproc/ref/ref.cpp (reference::compute_sort_key): Do
119 not insert SORT_SEP before the first field, so that sort_key
120 has the same format as before the patch of 2003-08-23.
122 2008-10-04 Werner LEMBERG <wl@gnu.org>
124 * tmac/doc-common (doc-operating-system-*): Update releases.
126 * tmac/an-old.tmac (an-extra1, an-extra2, an-extra3): Initialize.
128 * tmac/andoc.tmac: Rewritten, based on a preliminary version from
129 Tadziu Hoffmann. It can now process multiple man pages with both
130 man and mdoc formats intermixed.
132 * NEWS, tmaca/groff_man.man, tmac/groff_mdoc.man,
133 man/groff_tmac.man: Document it.
135 2008-10-04 Werner LEMBERG <wl@gnu.org>
137 * src/roff/troff/input.cpp (do_suppress): Make \O[3], \O[4], and
138 \O[5] non-transparent w.r.t. beginning-of-line recognition (similar
139 to the other \O variants).
141 * tmac/www.tmac (TS, TE, EQ, EN): Don't use .als for setting up
142 default macros. This causes endless loops (at least for TE).
144 * doc/groff.texinfo: Improve documentation of `.als'.
146 2008-10-03 Werner LEMBERG <wl@gnu.org>
148 * src/devices/grops/grops.man, src/roff/troff/troff.man,
149 src/preproc/soelim/soelim.man: Correct documentation of -I switch.
150 Reported by Larry Kollar.
151 Other minor formatting issues.
153 2008-10-02 Werner LEMBERG <wl@gnu.org>
155 * tmac/trace.tmac: Much improved.
156 (trace-full): New register to be set on the command line; it
157 controls whether number and string register assignments get traced
159 (!!c): New macro for comments.
160 (rm): New traced macro.
161 (de, de1, am, am1): Use \\[xxx]\\ calling method to pass \$0 to
162 `!!xxx'; this makes doc.tmac completely traceable.
163 Trace call of .de and friends also.
165 * tmac/groff_tmac.man, NEWS: Update.
167 2008-09-30 Werner LEMBERG <wl@gnu.org>
169 Restore behaviour of \$0 if a macro is called with string syntax
170 (problem caused by change on 2008-09-29).
172 * src/roff/troff/input.cpp (input_iterator, input_stack,
173 macro_iterator): Add `get_macro_name' member function.
174 (interpolate_string): Use it.
176 2008-09-29 Werner LEMBERG <wl@gnu.org>
178 Make \\*[xxx]\\ within a macro (with `xxx' a macro too) work as
179 expected. Without the patch,
190 prints `2 3' instead of `1 2 3'.
192 * src/roff/troff/input.cpp (input_iterator, input_stack,
193 macro_iterator): Add `get_arg_list' member function.
194 (macro): Add `is_a_string', `is_string', and `clear_string_flag'
196 Update constructors and operators.
197 (arg_list): Add copy constructor.
198 (macro_iterator): Add optional argument to constructor to indicate
199 whether arguments shall be inherited from calling macro.
200 (interpolate_string): If string argument is a macro, push a macro
201 iterator on the stack.
202 (do_define_macro): Call clear_string_flag if macro data contains a
205 * src/roff/troff/request.h: Updated.
207 2008-09-29 Eric S. Raymond <esr@snark.thyrsus.com>
209 * doc/pic.ms: Fold in documentation of pic2plot(1) capabilities.
210 Improve the documentation of text objects.
212 2008-09-28 Eric S. Raymond <esr@snark.thyrsus.com>
214 * contrib/pic2graph, contrib/pic2graph.man, contrib/eqn2graph,
215 contrib/eqn2graph.man: Tweak scripts to cope with incompatible
216 changes in ImageMagick crop options. Document the bugs.
218 2008-09-28 Werner LEMBERG <wl@gnu.org>
220 If a macro is called as a string, inherit value of \n[.br] from the
221 caller. This is useful for `trace.tmac'.
223 * src/roff/troff/input.cpp (string_iterator): New members
224 `with_break' and `get_break_flag'.
225 (string_iterator::string_iterator): Updated.
227 * doc/groff.texinfo: Improve documentation of \$0 and string syntax
229 Document behaviour of \n[.br] within strings.
231 2008-09-26 Werner LEMBERG <wl@gnu.org>
233 * tmac/trace.tmac: Add copyright message.
234 Use `.de1' where possible to make source code more readable.
235 (so, mso, als, rn): Restore escape character before executing the
237 (de, de1, am, am1): Trace `.foo' also if called as `\\[foo]'.
239 2008-09-24 Werner LEMBERG <wl@gnu.org>
241 Fix incompatibility between `.de1' and `.do'. Without this change,
242 the following snippet
250 prints 1 instead of 0.
252 * src/roff/troff/input.cc (do_request): If a macro gets processed,
254 (interpolate_macro): Add optional argument. Update callers.
255 (request::invoke): Add optional argument.
256 (macro::invoke): Add optional argument to delay call of tok.next().
258 * src/roff/troff/request.h (request_or_macro): Add argument to
259 `invoke' member. Update all derived classes.
261 * doc/groff.texinfo: Improve documentation of .do request.
263 2008-09-09 Werner LEMBERG <wl@gnu.org>
265 * tmac/an-old.tmac (FT): Initialize properly. Reported by Tadziu
268 2008-09-06 Werner LEMBERG <wl@gnu.org>
270 * tmac/doc-common (Dd, Os, Dt): Reset `doc-command-name' to make
271 `.Nm' work properly if next manual page is printed.
273 2008-08-20 Werner LEMBERG <wl@gnu.org>
275 * src/preproc/tbl/tbl.man: Document computation of element widths.
277 2008-08-20 Alexey Gladkov <legion@altlinux.ru>
278 Werner LEMBERG <wl@gnu.org>
280 Add default encoding option -D to preconv and groff.
282 * src/preproc/preconv/preconv.cpp (default_encoding): Make it an
285 (main): Handle new option -D.
287 * src/preproc/preconv/preconv.man: Updated.
289 * src/roff/groff/groff.cpp (main): Handle new option -D.
290 (synopsis, help): Updated.
291 * src/roff/groff/groff.man: Updated.
293 2008-07-26 Werner LEMBERG <wl@gnu.org>
295 * tmac/eqnrc (.EQ, .EN): Provide default definitions. Reported
298 * tmac/www.tmac (.EQ, .EN, .TS, .TE): Fix definitions.
300 2008-07-24 Denis M. Wilson <dmw@oxytropis.plus.com>
302 New options -f and -k for afmtodit.
304 * src/afmtodit/afmtodit.pl: New options `-f NAME' sets the internal
305 name of the groff font.
306 New option `-k' disables output of kerning data.
307 * src/afmtodit/afmtodit.man, NEWS: Document new options.
309 2008-07-18 Werner LEMBERG <wl@gnu.org>
311 * src/preproc/tbl/table.cpp (table::compute_separation_factor): Emit
312 warning messages if table gets squeezed.
313 (table::compute_widths): Fix computation of AVAILABLE_REG.
314 Emit warning if table is wider than line length.
316 * src/preproc/tbl/tbl.man: Minor improvements.
318 2008-05-02 Larry Jones <lawrence.jones@siemens.com>
320 * contrib/chem/Makefile.sub (README, examples/README): In makefiles,
321 the `$<' macro is only guaranteed to be defined in inference rules,
322 not in explicit target rules. Since there is only one input file in
323 the places where it is used, the `$?' macro (which is guaranteed to be
324 defined for both kinds of rules) is a suitable replacement.
326 * hdtbl/examples/fonts_n.in, hdtbl/examples/fonts_n.in: Most
327 versions of ls don't have a `--color' option.
329 2008-04-30 Larry Jones <lawrence.jones@siemens.com>
331 * Makefile.comm (depend.temp): Add `EXTRA_CCFLAGS'.
333 2008-04-29 Larry Jones <lawrence.jones@siemens.com>
335 * src/eqn/script.cpp (script_box::output): Portability fix.
337 2008-04-05 Dorai Sitaram <ds26gte@yahoo.com>
339 Add better support for `.TAG #<label>' in non-HTML documents: In
340 case of a forward reference in a call to .URL, write `(see below)'.
341 In case of a backwards reference use the page number instead. The
342 reference gets stored in a string `TAG_<label>' and can be
343 overridden while calling `.TAG' with its new optional argument --
344 this is useful for a second-pass system which resolves forward
347 * tmac/www.tmac (www:url_check_tag): New function.
349 (TAG): Add optional argument to define string `TAG_<label>'.
351 2008-03-24 Werner LEMBERG <wl@gnu.org>
353 * tmac/trace.tmac (so, mso): Added.
355 * tmac/www.tmac (PIMG): Replace `.ie' (without `.el') with `.if'.
356 If used with -mtrace, and this clause was active, the macro was
359 * tmac/pspic.tmac (PSPIC): Accept option `-C' for orthogonality.
360 This makes `.PIMG -C <file>' (from www.tmac) work on non-HTML
362 * man/groff_tmac.man: Document it.
364 2008-02-26 Werner LEMBERG <wl@gnu.org>
366 * src/roff/troff/input.cpp: s/safer_flag/unsafe_flag/.
367 Update all occurrences so that \n[.U] works as advertised. Bug
368 reported by Dorai Sitaram.
370 2008-02-17 Werner LEMBERG <wl@gnu.org>
372 * doc/groff.texinfo: Improve documentation of .cf request.
374 2008-01-19 Werner LEMBERG <wl@gnu.org>
376 * src/preproc/html/pre-html.cpp (usage): Don't describe options but
377 mention that it should never be called stand-alone.
379 * tmac/groff_www.man, doc/groff.texinfo, man/groff_font.man,
380 man/groff_tmac.man, man/groff_out.man, README, README.MinGW,
381 src/roff/groff/groff.man: Mention -Txhtml.
383 * man/groff_font.man, man/groff_tmac.man, man/roff.man: Revised.
385 2008-01-16 Werner LEMBERG <wl@gnu.org>
387 * src/libs/libgroff/font.cpp (font::contains, font::get_code):
388 Handle single-letter names correctly.
390 * doc/groff.texinfo, man/groff_diff.man: Extend documentation of \^
394 2008-01-15 Werner LEMBERG <wl@gnu.org>
396 * man/groff_font.man: Revised.
398 2008-01-14 Werner LEMBERG <wl@gnu.org>
400 * man/groff.man: Mention glyph and characters.
402 * man/groff_char.man: Minor updates.
403 * man/groff_diff.man: Better clarification between characters and
406 2008-01-12 Werner LEMBERG <wl@gnu.org>
408 * doc/groff.texinfo: Fix top-level structure to make it compilable
409 again with all texinfo modes. Reported by Jörg van den Hoff
410 <j.van_den_hoff@fzd.de>.
412 2008-01-11 Werner LEMBERG <wl@gnu.org>
414 * doc/pic.ms: Mention that compass points of line objects are
417 2008-01-06 Werner LEMBERG <wl@gnu.org>
419 * src/roff/troff/node.cpp (left_italic_corrected_node::add_self):
420 Don't remove itself if there is no glyph associated with the node
421 yet. This happens, for example, in this situation:
428 2008-01-05 Werner LEMBERG <wl@gnu.org>
430 * man/groff_char.man, man/groff.man: Revised.
432 * src/preproc/eqn/lex.cpp (troff_defs): Fix typo.
434 2008-01-04 Werner LEMBERG <wl@gnu.org>
435 * */*: s/Osanna/Ossanna/.
437 * */*.man: Replace .URL with .UR/.UE (except in groff_www.tmac).
438 Replace .MTO with .MT/.ME (except in groff_www.tmac).
439 Insert `\:' in URLs where appropriate.
440 Don't include www.tmac (except in groff_www.tmac).
442 * man/groff.man (.ESC[]): Fix font of closing bracket.
443 (.ESCq): Fix font of closing quote character.
444 Many other improvements.
446 2007-12-30 Bernhard Fisseni <bfi@ikp.uni-bonn.de>
448 * src/devices/grohtml/post-html.cc
449 (html_printer::writeHeadMetaStyle): Fix CSS output.
451 2007-12-29 Werner LEMBERG <wl@gnu.org>
453 * tmac/ec.tmac: Add CM fonts to the .fspecial lines; those fonts
454 contain additional glyphs (like some uppercase Greek letters).
456 2007-12-06 Werner LEMBERG <wl@gnu.org>
460 2007-12-06 Colin Watson <cjwatson@debian.org>
462 * src/roff/nroff/nroff.sh: Add options -w and -W.
463 * src/roff/nroff/nroff.man: Document them.
465 2007-12-06 Karl Berry <karl@freefriends.org>
467 * tmac/hyphenex.pl: Update header output.
469 2007-11-29 Werner LEMBERG <wl@gnu.org>
471 * src/devices/grotty/tty.cpp (tty_printer::line): Fix line lengths.
473 2007-11-20 Werner LEMBERG <wl@gnu.org>
475 * doc/pic.ms: Add Heinz-Jürgen's 3d boxes example.
477 2007-11-17 Werner LEMBERG <wl@gnu.org>
479 * src/roff/nroff/nroff.sh: Handle GROFF_TYPESETTER environment
480 variable. Problem reported by Michael G Schwern
483 * src/roff/nroff/nroff.man: Document it.
486 2007-11-17 Heinz-Jürgen Oertel <hj.oertel@t-online.de>
488 * src/groff/preproc/pic/lex.cpp (table): Add box attributes
489 `xslanted' and `yslanted'.
491 * src/groff/preproc/pic/object.cpp (object_spec::object_spec):
492 Initialize `xslanted' and `yslanted'.
493 (graphic_object): Add methods `set_xlanted' and `set_yslanted'.
494 (closed_object): Ditto.
495 Add members `xslanted' and `yslanted'.
496 (box_object::print): Use them.
497 (object_spec::make_object): Handle slant values.
498 * src/groff/preproc/pic/object.h (IS_XSLANTED, IS_YSLANTED): New
500 (object_spec): Add members `xslanted' and `yslanted'.
501 * src/groff/preproc/pic/pic.y (XSLANTED, YSLANTED): New left-valued
505 * src/groff/preproc/pic/pic.man, NEWS, doc/pic.ms: Document above
508 2007-11-16 Werner LEMBERG <wl@gnu.org>
510 * tmac/hyphenex.pl: Generate copyright notice (this has been
511 approved by Barbara Beeton).
512 * tmac/hyphenex.us: Updated.
514 2007-11-10 Michail Vidiassov <master@iaas.msu.ru>
516 * tmac/doc-syms (doc-str-St--susv3): New string.
517 * tmac/groff_mdoc.man: Document it.
519 2007-11-08 Werner LEMBERG <wl@gnu.org>
521 * src/preproc/preconv/preconv.cpp (emacs_to_mime): Add `utf-16be'
522 `utf-16le', `utf-16be-with-signature', `utf-16le-with-signature'.
523 (is_comment_line): Handle '\" and '\# also.
525 * src/preproc/preconv/preconv.man: Revise and make complete.
527 2007-10-25 Werner LEMBERG <wl@gnu.org>
529 * tmac/cs.tmac: New file holding Czech strings, contributed by
530 Marcela Maslanova <mmaslano@redhat.com>.
531 * tmac/hyphen.cs, tmac/hyphenex.cs: New hyphenation pattern files
532 for Czech, taken from CTAN.
534 * tmac/Makefile (NORMALFILES): Add Czech stuff.
535 * doc/groff_tmac.man: Mention cs.tmac.
537 2007-10-21 Werner LEMBERG <wl@gnu.org>
539 * src/roff/troff/input.cpp (do_ps_file): Handle `%X' in header
540 comments correctly. Reported by Frank Jahnke
541 <jahnke@sonatabio.com>.
543 2007-10-02 Ruslan Ermilov <ru@FreeBSD.org>
545 * tmac/doc-common, tmac/groff_doc.man: Add FreeBSD 6.2, document
548 * tmac/doc-syms: Give better names for System V releases.
550 2007-09-25 Gaius Mulley <gaius@glam.ac.uk>
552 * doc/Makefile.in, doc/Makefile.sub (.ms.html): Add -P-V switch to
553 the production of html files.
555 Remove background colour switch.
556 (.SUFFIXES, clean): Handle *.xhtml files.
558 * src/devices/grohtml/grohtml.man: Document that -V option now
559 generates an HTML-4.01 validator or XHTML validator.
561 * src/devices/grohtml/html-text.cpp (html_text::end_tag,
562 html_text::start_tag): Suppress <small>, <big>, and <color> tags if
563 we are inside a <pre> block.
565 * src/devices/grohtml/post-html.cpp
566 (html_printer::handle_valid_flag): Add a parameter to indicate
567 whether it needs to generate a paragraph block.
568 (html_printer::write_navigation): Updated.
569 (html_printer::do_file_components): Generate an HTML-4.01 blue
570 validator button also.
572 2007-09-23 Axel Kielhorn <A.Kielhorn@web.de>
574 * man/groff.man: Fix URL of CSTR 54.
576 2007-09-23 Werner LEMBERG <wl@gnu.org>
578 * man/groff_char.man: Normalize character set names as defined
579 by IANA. Based on a patch from Axel Kielhorn.
581 * src/preproc/refer/label.y: Undo change from 2007-09-19.
583 2007-09-19 Werner LEMBERG <wl@gnu.org>
585 * src/roff/troff/input.cpp (interpolate_arg): Remove compiler
588 * src/preproc/eqn/pile.cpp (pile_box::output, matrix_box::output):
589 Remove compiler warning.
591 * src/preproc/refer/label.y: Remove compiler warning.
593 * src/preproc/pic/pic.y: Remove doubled token entries.
595 2007-09-19 Gaius Mulley <gaius@glam.ac.uk>
597 * doc/groff.texinfo: Document new .O register and add cross
602 * src/devices/grohtml/grohtml.man: Document new -V and -y options.
604 * src/devices/grohtml/html-table.cpp: Add support for XHTML 1.1.
605 (html_table:: emit_colspan, html_table::emit_td): New methods.
606 (html_table::emit_col): Use html_table::emit_td.
607 (html_table::emit_table_header): Use html_table::emit_colspan if
608 dialect xhtml is specified.
609 (html_table::finish_row): Updated.
611 * src/devices/grohtml/html-table.h (html_table): Declare
612 emit_colspan, emit_td.
614 * src/devices/grohtml/html-text.cpp: Modified tags to comply with
615 xhtml if this dialect was requested.
617 * src/devices/grohtml/html-text.h (html_dialect): New enumeration.
618 (html_text): Add new variable `dialect'.
620 * src/devices/grohtml/post-html.cpp: Modify header tags to be XHTML
622 (valid_flag, groff_sig, dialect): New global variables.
623 (html_printer::handle_valid_flag, html_printer::do_math,
624 html_printer::write_html_anchor, html_printer::write_xhtml_anchor,
625 html_printer::do_math, html_printer::handle_valid_flag): New
627 (html_printer::emit_line, html_printer::emit_raw,
628 html_printer::do_check_center, html_printer::write_title,
629 write_rule, html_printer::writeHeadMetaStyle, generate_img_src,
630 html_printer::begin_page): Altered to be XHTML compliant.
631 (html_printer::write_header): Updated.
632 (html_printer::troff_tag): Call do_math.
633 (html_printer::insert_split_file, html_printer::do_file_components,
634 html_printer::write_navigation): Create XHTML file components if
635 necessary and also produces a groff signature if requested.
636 (~html_printer): Call writeHeadMetaStyle at appropriate places
637 depending upon html_dialect.
638 (html_printer::special): Handle new tags `html<?p>' and `math<?p>'.
639 (main): Added options -x, -V, and -y.
642 * src/preproc/eqn/box.cpp: Create a distinction between
643 the MathML device and the XHTML device.
644 (do_text): Issue a newline at the end of the equation if XHTML was
646 (box::top_level): Prefix the output of an equation by the .MATHML
648 (output_string): Suppress \n if XHTML was specified.
650 * src/preproc/eqn/main.cpp (xhtml): New global flag.
651 (inline_equation): Skip leading spaces after inline equation for
653 (main): Set `xhtml' flag if `-Tmathml:xhtml' is specified.
655 * src/preproc/eqn/eqn.h (xhtml): New external flag.
657 * src/preproc/eqn/text.cpp (entity_table): Fix typo.
659 * src/preproc/html/pre-html.cpp (html_dialect): New enumeration.
660 (dialect, eqn_flag): New global variables.
661 (html_system): Improve debugging support.
662 (alterDeviceTo): Test for -Txhtml when altering device to the image
663 device and reset to -Txhtml.
664 (addZ): Renamed to...
666 Introducea a general parameter.
667 (print_args): New debugging function.
668 (char_buffer::run_output_filter): Use print_args and addArg rather
670 (char_buffer::do_html, char_buffer::do_image): Add -rxhtml=1 command
671 line parameter as an argument to the html generation of text when
672 xhtml is needed. Include -e on the command line if mathml is
674 (scanArguments): Allow -e, -V, -y and -x options.
675 -V, -y are handled by the back end. -e sets `eqn_flag'.
676 -x determines HTML dialect.
678 * src/roff/groff/groff.cpp (possible_command): New method
680 (main): Set eflag if -e is present on command line.
681 Set is_xhtml if -Txhtml is present.
682 Pass `-x x' to the HTML pre and post processors.
683 Pass `-e' to the HTML pre processor if required.
684 Pass `-Tmathml:xhtml' to eqn if XHTML is requested.
686 * src/roff/troff/input.cpp (init_input_requests): Introduce new
687 number register `\n[.O]'.
689 * tmac/s.tmac: (LP): Use .nop for semantic sugar.
690 (cov*ab-init) reformat.
691 (@EQ): Use EQN-HTML-IMAGE and friends rather than HTML-IMAGE.
692 (CHECK-FOOTER-AND-KEEP): Define FS, FE such that they use
693 <cite></cite> for the html device rather than generate images for
696 * tmac/troffrc-end: Define EQN-HTML-IMAGE,
697 EQN-HTML-IMAGE-END, EQN-HTML-IMAGE-RIGHT,
698 EQN-HTML-IMAGE-LEFT, EQN-HTML-IMAGE-INLINE,
699 EQN-HTML-DO-IMAGE, EQN-HTML-IMAGE-END as null strings.
701 * tmac/www.tmac: (HTML<?p>): New macro.
702 (MATH<?p>): New macro.
703 (IMG, PIMG, MPIMG, HR): Use XHTML compliant syntax.
704 (www-emit-ltag): New macro.
705 (www-push-li): Updated.
706 (ULS): Ensure that tags are balanced in order by use of
708 (ULE): Likewise: Use www-emit-ltag and shut down paragraphs in
710 (OLS, OLE, DLS, DLE): Ditto.
711 <global>: Define EQ and EN to EQN-HTML-IMAGE and EQN-HTML-IMAGE-END
713 (www-li-ul, www-li-ol, www-li-dl): Updated.
714 (EQN-HTML-IMAGE, EQN-HTML-IMAGE-RIGHT, EQN-HTML-IMAGE-LEFT,
715 EQN-HTML-IMAGE-INLINE, EQN-HTML-DO-IMAGE, EQN-HTML-IMAGE-END,
718 2007-09-17 Werner LEMBERG <wl@gnu.org>
720 * man/groff_font.man: Document `unicode' keyword.
721 * doc/groff.texinfo (DESC File Format): Synchronize with
724 2007-09-15 Werner LEMBERG <wl@nu.org>
726 * man/groff.man: Document `\_'.
727 * doc/groff.texinfo: Ditto.
728 Remove references to `\@' which isn't a valid escape sequence in
732 * tmac/unicode.tmac: Add ` and '.
733 * tmac/html.tmac: Load unicode.tmac.
735 2007-09-14 Werner LEMBERG <wl@gnu.org>
737 * tmac/unicode.tmac: Make `-' a pure input character by mapping it
740 * src/roff/troff/input.cpp (init_charset_table): Handle `hy'.
742 2007-09-11 Werner LEMBERG <wl@gnu.org>
744 * src/libs/libgroff/string.cpp (string::remove_spaces): Fix memory
747 * src/preproc/tbl/table.cpp (table::allocate): Initialize
750 2007-09-10 Keith Marshall <keith.d.marshall@ntlworld.com>
752 * README.MinGW: Add warnings about use of MSYS-RXVT, and about
753 defective GnuWin32 versions of netpbm/libpng.
755 2007-07-15 Keith Marshall <keith.d.marshall@ntlworld.com>
757 * tmac/s.tmac (cov*first-page-init): Remove invoking trap, to avoid
760 2007-07-11 Werner LEMBERG <wl@gnu.org>
762 * gendef.sh: Add shebang.
764 2007-07-05 Werner LEMBERG <wl@gnu.org>
766 * tmac/papersize.tmac: Fix dimensions of executive paper format.
767 Reported by John Rupley <rupley@u.arizona.edu>.
769 2007-07-02 Keith Marshall <keith.d.marshall@ntlworld.com>
771 * tmac/s.tmac (cov*first-page-init): Emit error message if not in
772 top-level environment.
774 2007-06-12 Werner LEMBERG <wl@gnu.org>
776 * src/devices/xditview/TODO, NEWS: Updated.
777 * src/devices/xditview/Makefile.sub (install_data, uninstall_sub):
778 Handle `GXditview-color'.
779 * src/devices/xditview/gxditview.man: Updated.
781 * m4/groff.m4 (GROFF_APPRESDIR_CHECK): Updated.
782 * m4/codeset.m4, m4/glibc21.m4, m4/iconv.m4, m4/lib-link.m4: Updated
783 from `gnulib' git repository.
785 * configure.ac: Updated.
786 * configure: Regenerated (using autoconf 2.61).
788 * config.guess, config.sub: Updated from `config' CVS repository.
789 * config.rpath, install-sh, mkinstalldirs: Updated from `gnulib' git
792 2007-06-12 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
794 * src/devices/xditview/GXditview.ad: Split off color definitions
796 * src/devices/xditview/GXditview-color.ad: This new file.
798 2007-06-08 Fabrice Ménard <menard.fabrice@wanadoo.fr>
800 * tmac/fr.tmac: Handle chapter system for `me'.
802 2007-06-05 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
804 * src/devices/xditview/xditview.c (main): Add support for
807 * src/devices/xditview/GXditview.ad: Updated.
808 Make widget more colourful.
810 2007-05-30 Werner LEMBERG <wl@gnu.org>
812 * tmac/groff_mdoc.man: Convert `-' to `\-' where appropriate.
813 Recommend `tbl' instead of `-column' lists for more complicated
816 2007-05-21 Werner LEMBERG <wl@gnu.org>
818 * src/devices/grops/ps.cpp (ps_printer::set_char): Handle subfonts
821 2007-04-10 Werner LEMBERG <wl@gnu.org>
823 In pic, make rounded boxes work with colors. Reported by Urs Eggli
824 <Urs.Eggli@zuerich.ch>.
826 * src/preproc/pic/common.h (common_output), src/preproc/pix/output.h
827 (output): Add color parameter to `rounded_box' member function.
829 * src/preproc/pic/common.cpp (common_output::rounded_box): Use it.
831 * src/preproc/pic/object.cpp (box_object::print): Pass `color_fill'
832 to `out->rounded_box'.
834 2007-04-09 Michail Vidiassov <master@iaas.msu.ru>
836 * font/devps/generate/textmap: Add Greek letters and some more.
838 * src/utils/afmtodit/afmtodit.tables: Change values of `Delta',
839 `Omega', and `mu' to the ones from aglfn.txt.
841 2007-04-08 Keith Marshall <keith.d.marshall@ntlworld.com>
843 * tmac/s.tmac (SN): Define unconditionally.
844 (SN-STYLE): New string; define.
846 * NEWS, tmac/groff_ms.man, doc/groff.texinfo (SN-STYLE): Document it.
848 2007-03-22 Werner LEMBERG <wl@gnu.org>
850 * tmac/pspic.tmac: Fix harmless numeric overflow warning. Reported
851 by Jörg van den Hoff <j.van_den_hoff@fzd.de>.
853 2007-03-20 Werner LEMBERG <wl@gnu.org>
855 * tmac/trace.tmac (rn): Added.
856 (nr, ds, ds1, as, as1, substring): Restore escape character while
858 (nr): Remove dead code.
860 * src/preproc/eqn/box.cpp (box::top_level): Use \E in string
861 definitions to make them traceable.
863 2007-03-19 Werner LEMBERG <wl@gnu.org>
865 * src/roff/troff/input.cpp (get_copy): Add third argument to control
866 whether \E shall be expanded.
867 (get_char_for_escape_name): Allow \E.
869 2007-03-15 Werner LEMBERG <wl@gnu.org>
871 * tmac/s.tmac (MO, CH, pg*OH, pg*EH, pg*OF, pg*EF, *, [., .],
872 par*define-font-macro, \[hooko]): Use \E to make it traceable.
874 (ref*field): Add argument to control the space between previous and
877 (ref*add-N): Fix handling of opening parenthesis. Problem reported
878 by Jörg van den Hoff <j.van_den_hoff@fzd.de>.
880 2007-03-14 Werner LEMBERG <wl@gnu.org>
882 * tmac/trace.tmac (als): Added.
883 (de, de1, am, am1): Make traced macros aliased with .als work.
885 2007-02-25 Werner LEMBERG <wl@gnu.org>
887 * src/devices/xditview/TODO: Add some more items.
889 * Makefile.comm (.man.n): Add @APPRESDIR@.
892 * src/devices/xditview/gxditview.man: Document GXditview resource
894 Other documentation enhancements based on a patch from Jörg.
896 2007-02-25 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
897 Joerg van den Hoff <j.van_den_hoff@fzd.de>
899 * src/devices/xditview/GXditview.ad: Make all keys work regardless
900 of the current mouse position.
902 2007-02-20 Werner LEMBERG <wl@gnu.org>
904 * tmac/groff_man.man: Revised to improve visual appearance.
905 Reduce use of future tense.
907 * tmac/groff_trace.man: Revosed to improve visual appearance.
909 2007-02-19 Eric S. Raymond <esr@snark.thyrsus.com>
911 Make groff.man viewer-portable.
913 * tmac/groff.man: Eliminate use of .eo/.ec.
914 (.REQ): Surround args 2 through N with quotes. This will enable us
915 not to rely on the shift request, which is nonportable.
916 (ExecFF): Remove. The code is simpler without it.
918 2007-02-18 Eric S. Raymond <esr@snark.thyrsus.com>
920 * tmac/groff_www.man: Viewer-portability fixes.
922 2007-02-16 Eric S. Raymond <esr@snark.thyrsus.com>
924 * man/groff.man: Remove some unneeded code and a no-longer-used
925 inclusion of the www macros.
927 2007-02-12 Werner LEMBERG <wl@gnu.org>
929 * src/preproc/tbl/table.cpp (compute_span_width): Fix use of
931 (table::compute_widths): Simplify.
933 2007-02-11 Werner LEMBERG <wl@gnu.org>
935 * src/preproc/tbl/table.h: Don't include `stdbool.h'.
936 (table): Replace `bool' type with `char' for orthogonality.
939 * src/preproc/tbl/table.cpp (block_entry::do_divert): Fix usage of
940 AVAILABLE_REG and COLCOUNT_REG.
941 (table::table): Fix order call of initializers.
942 (table::~table): Deallocate `blockflag'.
944 2007-02-09 Eric S. Raymond <esr@snark.thyrsus.com>
946 A try at the new rule for block column allocation is now enabled by
947 the new `experimental' global option: The horizontal space up to the
948 right margin which is not used by columns without text blocks is
949 evenly distributed to the columns with text blocks.
951 It doesn't work right as yet; there appears to be some error in the
952 computation of `3avail', the available line length. The purpose of
953 this patch is (a) to make experimenting with other formulas easy,
954 and (b) leave the infrastructure for flag `experimental' in place
955 for future experiments. Do not document any behavior associated
958 * src/preproc/tbl/table.h: Include `stdbool.h'.
959 (table): Make `flags' public.
960 Add `count_block_columns' function.
961 Add `blockflag' array.
962 Add `EXPERIMENTAL' enumeration value.
964 * src/preproc/tbl/table.cpp (AVAILABLE_REG, COLCOUNT_REG): New
966 (table_entry): New member `parent' so that class and subclass
967 members can set a parent field. Update all users.
968 (block_entry::do_divert): Handle `EXPERIMENTAL' flag.
969 (block_entry::do_width): Set the parent's `blockflag'.
970 (table::allocate): Handle `blockflag'.
971 (table::count_block_columns): New function.
972 (compute_span_width): Adjust AVAILABLE_REG.
973 (table::compute_widths): Handle COLCOUNT_REG and AVAILABLE_REG.
975 * src/preproc/tbl/main.cpp (process_options): Handle `experimental'
978 2007-02-08 Zhao, Yu (William) <yzhao2@alcatel-lucent.com>
980 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) <'e'>: Set
983 2007-02-08 Werner LEMBERG <wl@gnu.org>
985 * man/groff_out.man (offset): Make it work reliably.
987 2007-02-07 Eric S. Raymond <esr@snark.thyrsus.com>
989 * man/groff_out.man: Simplify some font changes so \fP is less
990 likely to do something surprising.
992 * man/groff_out.man: We can simplify the command macros still
993 further if we stop trying to hide structural requests inside them.
994 Also, fix some instances of \} at start of line without a dot, and
995 make some font changes explicit in strings.
997 * man/groff_out.man: Cleanup -- remove now-unneeded uses of .do and
1000 * man/groff_out.man: Final step: Reduce x-command, get rid of eo/ec
1001 calls and fix macros to do without them. File should now be
1004 * man/groff_out.man: Fourth step: Eliminate use of eqn in favor of
1005 micromotions that produce the same visual result and can be lifted
1008 * man/groff_out.man: Third step: Reduce Da-comand, fix a
1009 call-sequence bug in the original.
1011 * man/groff_out.man: Second step: Reduce D-commmand and D-command+,
1012 move font-change escapes to portable form.
1014 * man/groff_out.man: First step in macro simplification; eliminate
1015 list1..n, simplify .offset and .index_offset so they no longer
1016 require groff-specific features or eqn (instead, use troff
1017 micromotions for subscripting).
1019 2007-02-06 Eric S. Raymond <esr@snark.thyrsus.com>
1021 * src/preproc/eqn/eqn.man: Minor corrections.
1023 * tmac/an-ext.tmac: Change .UR/.UE and .MT/.ME so the start macro no
1024 longer takes a second argument that is pasted to the end of the
1025 generated text. Instead, the end macro takes an argument that does
1028 * man/ditroff.man, man/groff_diff.man, man/groff.man,
1029 man/groff_out.man, man/groff_tmac.man, man/roff.man,
1030 src/roff/groff/groff.man, src/roff/grog/grog.man,
1031 tmac/groff_man.man, tmac/groff_trace.man: Update accordingly.
1033 * src/roff/troff/troff.man: .SY and .YS are canned macros now,
1034 so we can use them here.
1036 2007-02-05 Eric S. Raymond <esr@snark.thyrsus.com>
1038 * src/preproc/eqn/lex.cpp, src/preproc/eqn/eqn.man:
1039 By popular demand, make ... set three lower dots again
1040 and introduce a new predefined macro 'cdots' to set
1041 three centered dots.
1043 2007-02-05 Werner LEMBERG <wl@gnu.org>
1045 * src/preproc/eqn/eqn.man: Revised.
1047 * src/preproc/eqn/text.cpp (map, special_char_boc::output): Use
1049 (spacing_type): Fix typo.
1050 (special_to_entity): Use `const'.
1051 Remove unused variable.
1052 * src/preproc/eqn/other.cpp (font_box::output): Use `const'.
1054 2007-02-05 Eric S. Raymond <esr@snark.thyrsus.com>
1056 * src/devices/grotty/grotty.man: \m[] and \M[] aren't portable,
1057 which is a shame as the effect was cute.
1059 2007-02-04 Eric S. Raymond <esr@snark.thyrsus.com>
1061 * man/groff_tmac.man, man/groff_diff.man: Portability conversion;
1062 rip out over-elaborate macrology, use .EX/.EE and .UR/.UE where
1063 possible, remove preamble declarations and macros that are no
1064 longer needed. Conversion checked using the protocol described in
1067 2007-02-03 Werner LEMBERG <wl@gnu.org>
1069 * tmac/an-old.tmac (LP, IP, HP): Use .ns to suppress additional
1072 2007-02-03 Eric S. Raymond <esr@snark.thyrsus.com>
1074 * tmac/groff_man.man: Documented the extension macros, and
1075 added portability advice.
1077 * MORE.STUFF: More-stuff entries for doclifter and pic2plot.
1080 Add support for MathML output to eqn.
1082 The strategy used is very simple and relies on the fact that the box
1083 models of eqn and Presentation MathML differ in only trivial ways.
1084 It leaves the grammar and existing internal object structures
1085 unchanged. A new global, `output_format', is defined as an
1086 enumerated type with values {troff, mathml}. Most of the functions
1087 and methods that emit actual output acquire a top-level conditional,
1088 dispatching on this global, which has one arm for troff mode and one
1089 for MathML mode. In most cases the MathML arm is drastically
1092 (This strategy could be easily generalized to support other output
1093 formats. TeX is a possibility that leaps to mind.)
1095 The only even moderately tricky changes are in the lexer. Some of
1096 the predefined macros used constructs like `up', `down', `fwd',
1097 `back', and `vcenter' that have no equivalents in MathML. I
1098 attacked this problem in these ways:
1100 1. I eliminated three uses of `back' to compose characters in favor
1101 of using equivalent groff specials `\(<<', `\(>>', and `\(<>'
1102 that did not exist when these macros were written. (This will be
1103 a quality improvement for troff users.)
1105 2. I eliminated one use of `vcenter' by using \\(md. (Likewise...)
1107 3. I then split the table of pre-definitions in three; one large
1108 common table and two small troff-specific and MathML-specific
1109 tables. Use of troff-only operations (up, down, back, fwd,
1110 vcenter) is now confined to the former. The latter now uses
1111 `size big' and drops out the explicit positioning operations,
1112 counting on MathML processors to do them.
1114 POTENTIAL TROUBLE SPOTS:
1116 Here are notes for reviewers on places I'm not 100% sure I've done
1119 * In the process of preparing the troff table, I translated three
1120 definitions (dot_def, dotdot_def, and utilde def) that previously
1121 used explicit \v escapes to use `up' and `down' instead. I
1122 modeled the new definitions on the way `vec' and `dyad' work, but
1123 it's possible I got something subtle wrong.
1125 * I'm not certain the MathML implementation of font_box::output() is
1126 right, because I don't quite get what the switcheroo between
1127 `current_roman_font' and `old_roman_font' is supposed to
1128 accomplish. It does seem to generare good MathML, though.
1130 Finally, I made one purely cosmetic change in `text.cpp'; I replaced
1131 with an enum some magic numbers for spacing types that I thought
1132 were too ugly to live.
1136 The entirety of eqn is translated when `-TMathML' is specified,
1137 with the following exceptions...
1139 Limitations that cannot be fixed include non-support for special,
1140 up/down/fwd/back, and vcenter.
1142 Limitations that might be fixable include non-support for mark and
1143 lineup. I will investigate further, but if these can be implemented
1144 at all it's going to be in a very complicated and nasty way.
1146 The way character boxes are output means that each digit of a
1147 multi-digit number gets its own <mn></mn> tag pair in the MathHTML.
1148 While this is not technically wrong for Presentation MathML, it is
1149 ugly and inefficient. Fixing this will require implementing a
1150 little state machine in the `text.cpp' output method.
1152 * src/preproc/eqn/box.cpp, src/preproc/eqn/delim.cpp,
1153 src/preproc/eqn/eqn.h, src/preproc/eqn/eqn.man,
1154 src/preproc/eqn/lex.cpp, src/preproc/eqn/limit.cpp,
1155 src/preproc/eqn/list.cpp, src/preproc/eqn/main.cpp,
1156 src/preproc/eqn/other.cpp, src/preproc/eqn/over.cpp,
1157 src/preproc/eqn/pile.cpp, src/preproc/eqn/script.cpp,
1158 src/preproc/eqn/sqrt.cpp, src/preproc/eqn/text.cpp,
1159 src/preproc/eqn/eqn.man: MathML output mode.
1161 * NEWS: Document it.
1163 2007-02-02 Eric S. Raymond <esr@snark.thyrsus.com>
1165 * src/roff/groff/groff.man: Converted to use .SY/.OP/.YS
1166 and for cross-viewer portability. Conversion checked
1167 using the protocol described in tmac/TESTING-HINTS.
1169 2007-02-02 Werner LEMBERG <wl@gnu.org>
1171 * tmac/an-ext.tmac (ME): Don't use `\:'.
1173 * src/roff/grog/grog.man: Further refinements and normalizations.
1175 2007-02-02 Eric S. Raymond <esr@snark.thyrsus.com>
1177 * src/roff/grog/grog.man: Converted to use .SY/.OP/.YS and for
1178 cross-viewer portability. Conversion checked using the protocol
1179 described in tmac/TESTING-HINTS.
1181 2007-02-01 Eric S. Raymond <esr@thyrsus.com>
1183 * tmac/TESTING-HINTS: Added.
1185 2007-02-01 Eric S. Raymond <esr@thyrsus.com>
1187 Enable the support for Bell archaisms on .SC, so the `-r bell'
1188 switch is no longer needed to format old AT&T papers like
1191 * tmac/s.tmac (.SC, .UC, .P1, .P2): Updated.
1193 * tmac/groff_ms.man, doc/groff.texinfo, NEWS: Updated.
1195 2007-02-01 Eric S. Raymond <esr@thyrsus.com>
1197 Add some Bell labs extensions to the -ms macros.
1199 * tmac/s.tmac (.SC, .UC, .P1, .P2) [bell]: New macros.
1201 * tmac/groff_ms.man, doc/groff.texinfo, NEWS: Document `-r bell'.
1203 2007-01-30 Werner LEMBERG <wl@gnu.org>
1205 * tmac/an-ext.tmac (\n[EX]): Rename to \n[mX].
1206 (\n[mH]): New register (set if grohtml is used).
1207 (\n[SY]): Rename to \n[mS].
1208 (\n[a]): Rename to \n[mA].
1209 (\n[i]): Rename to \n[mI].
1210 (mU): New auxiliary input trap macro.
1211 (UR, UE): Replace stub with real definition.
1213 (MT, ME): New macros.
1215 (EX, EE): Don't insert vertical space.
1216 Use a register to store (and restore) the current font.
1218 * man/ditroff.man, man/groff_diff.man, man/roff.man: Revised, based
1219 on patches from Eric Raymond.
1222 2007-01-22 Gaius Mulley <gaius@glam.ac.uk>
1224 * tmac/an-old.tmac (an-trap, HP): Make `HP' work as expected.
1226 2007-01-22 Werner LEMBERG <wl@gnu.org>
1228 * tmac/an-ext.tmac: Protect against being sourced twice.
1229 (URL, EE): Use always two backslashes.
1232 2007-01-16 Werner LEMBERG <wl@gnu.org>
1234 * tmac/an-ext.tmac: Remove code for grodvi.
1236 Don't insert empty line.
1237 (URL, TQ): Fix typos.
1239 2007-01-14 Werner LEMBERG <wl@gnu.org>
1241 * tmac/an-ext.tmac: New file, containing extension macros
1242 for -man. See discussion on the groff mailing list for
1243 background information.
1244 * tmac/an-old.tmac: Load an-ext.tmac.
1245 Decorate .ds and as with comment escapes where appropriate.
1246 * tmac/Makefile.sub (NORMALFILES): Add an-ext.tmac.
1248 2007-01-05 Werner LEMBERG <wl@gnu.org>
1250 * src/preproc/tbl/tbl.man: Document .T# and \n[TW].
1252 2007-01-04 Gaius Mulley <gaius@glam.ac.uk>
1254 Make -me macros ready for grohtml.
1256 * tmac/e.tmac: Load devtag.tmac.
1257 (need_eo_h, need_eo_tl, need_tl): New registers.
1258 (check_need_title, (x-html, )x-html, xp-html): New macros.
1259 (@h, hl, ip, @p, sh, (b, (l, EQ, EN, TS, TE, PS, PE, GS, GE, r, i,
1260 b, rb, bi, bx, (x, )x, xp): Adapt for use with grohtml.
1261 (bp): Rename to @b only if output device is not html.
1263 2007-01-01 Werner LEMBERG <wl@gnu.org>
1265 * man/groff_font.man: Document empty lines.
1267 * src/utils/afmtodit/afmtodit.pl: Always print a header comment at
1268 the very beginning of the output.
1269 [!$opt_x]: Fix typo.
1271 * font/devps/*: Regenerate font definition files.
1273 2007-01-01 Werner LEMBERG <wl@gnu.org>
1275 * font/devps/generate/Makefile (AFMTODIT): Use -c flag.
1277 * font/devps/*: Regenerate font definition files.
1279 2006-12-31 Werner LEMBERG <wl@gnu.org>
1281 * Makefile.in (oldfontdir): New variable.
1282 (MDEFINES): Add $(oldfontdir).
1283 (uninstall_dirs): Remove `current' link.
1284 Remove $(oldfontdir).
1286 * Makefile.comm (oldfontsubdir): New variable.
1287 (install_dev): Install files collected in $(OLDDEVFILES) into
1289 (uninstall_dev): Remove data in $(oldfontsubdir).
1290 (.man.n): Handle @OLDFONTDIR@.
1292 * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
1293 src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
1294 src/devices/grotty/grotty.man, src/devices/xditview/gxditview.man:
1295 Document GROFF_FONT_PATH.
1297 * src/devices/grops/grops.man: Document GROFF_FONT_PATH and
1298 old font description files.
1300 * font/devps/Makefile.sub (OLDDISTFILES, OLDDEVFILES): New
1303 * font/devps/old/*: New directory, holding the previous version
1304 of the 35 Adobe core font description files.
1306 * font/devps/*: Regenerated the 35 Adobe core fonts, using the
1307 Adobe-Core35_AFMs-229.tar.bz2 bundle from ftp.dante.de.
1309 * NEWS: Document font update.
1311 2006-12-31 Werner LEMBERG <wl@gnu.org>
1313 * font/devps/generate/Makefile (symbolsl.afm): Use $(srcdir).
1315 * Makefile.comm (fonts): New (empty) target.
1316 * Makefile.in (TARGETS): Add `fonts'.
1318 * MANIFEST: Add `chem'.
1320 * doc/groff.texinfo (Changing Fonts): Font translations with .ftr
1323 2006-12-26 Werner LEMBERG <wl@gnu.org>
1325 * src/preproc/grn/hdb.cpp: Include gprint.h later. From NetBSD.
1327 2006-12-19 Werner LEMBERG <wl@gnu.org>
1329 Add support for German. For activation, simply use -mde or -mden
1330 (for traditional and new orthgraphy, respectively) as the last
1333 * tmac/de.tmac, tmac/den.tmac, tmac/hyphen.det, tmac/hyphen.den,
1334 tmac/hyphenex.det: New files, partly taken from CTAN.
1335 * LICENSES: Updated list of hyphenation patterns.
1336 * man/groff_tmac.man: Mention de.tmac and den.tmac.
1339 2006-12-11 Werner LEMBERG <wl@gnu.org>
1341 Support up to 32 macro arguments in pic (and up to 16 on EBCDIC
1344 * src/preproc/pic/lex.cpp (ARG1): Redefine. Update all users.
1345 (MAX_ARG): New macro. Use it everywhere to replace hard-coded
1346 limit of 9 arguments.
1347 (process_body): Handle argument numbers with more than a single
1349 (interpolate_macro_with_args): Protect against exceeding number of
1352 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Document it.
1354 2006-12-10 Werner LEMBERG <wl@gnu.org>
1356 * Makefile.in (site.exp, docheck): Commented out. Not working
1358 (check): Just emit dummy message.
1360 2006-12-08 Werner LEMBERG <wl@gnu.org>
1362 During installation, create soft link from <version> to `current' in
1365 * Makefile.comm (install): Renamed to...
1367 (prefix_must_exist): Removed. Code moved to Makefile.in.
1369 * Makefile.in (TARGETS): Remove `install'.
1371 (install): New target which first creates the directory given by
1372 --prefix, then calling `make' to do the installation, and finishing
1373 with the creation of the soft link.
1375 2006-11-21 Werner LEMBERG <wl@gnu.org>
1377 * doc/Makefile.sub (uninstall_sub): Fix names for info files.
1379 2006-11-18 Werner LEMBERG <wl@gnu.org>
1381 * man/roff.man, doc/groff.texinfo: Improve history of roff, based on
1382 information from Tom Van Vleck <thvv@multicians.org>.
1384 2006-11-16 Werner LEMBERG <wl@gnu.org>
1386 * tmac/62bit.tmac: New macro package.
1387 * tmac/Makefile.sub (NORMALFILES): Add it.
1388 * NEWS: Document it.
1390 * tmac/trace.tmac: Protect against being loaded again.
1391 (nr): Always show result.
1393 * doc/groff.texinfo (Input Encodings): Document latin-5.
1395 * man/grof_tmac.man: Document sv, latinX, cp1047, 60bit, ec.
1397 2006-11-13 Werner LEMBERG <wl@gnu.org>
1399 * doc/groff.texinfo (Page Location Traps) [.wh]: Give more details
1400 on negative trap positions.
1402 2006-11-10 Werner LEMBERG <wl@gnu.org>
1404 * Makefile.comm (.man.n): Handle @DATASUBDIR@.
1406 2006-11-09 Werner LEMBERG <wl@gnu.org>
1408 * INSTALL: Move information about external installation from
1409 INSTALL.gen into this file.
1412 * INSTALL.gen: Update to new version (from texinfo CVS).
1414 2006-11-09 Bernd Warken
1416 * INSTALL.gen: Extend the file by information on `external
1417 installation'. Reorder the installation instruction as `normal
1420 2006-11-08 Werner LEMBERG <wl@gnu.org>
1422 * doc/Makefile.sub (install_data): Take care of proper paths while
1423 installing info files. Bug reported by Bernd Warken.
1425 2006-11-06 Bernd Warken
1427 * src/roff/grog/grog.pl: Rewrite.
1428 - Call by `#! /usr/bin/env perl'. That isn't replaced.
1429 - Rename usage() to version().
1431 - For `use strict', start all global variables with an upper case
1432 character. Use `my' for all variables. Use several new variables.
1434 - Add copyright to GPL and Emacs comment.
1435 - Handle several `-m*' options.
1436 - Fix handling of `-ms' and `-mm'. Add .TL and .NH.
1437 - Allow options after file names.
1438 - Allow only one `-' parameter (standard input).
1439 - Add option abbreviations.
1440 - Expand the usage information.
1442 - Add single quote "'" as additional first character and allow
1443 arbitrary space after the first character.
1445 * src/roff/grog/grog.sh: Rewrite.
1446 - Remove option `-e' of `sed'.
1447 - Allow file names with space characters.
1449 - Add copyright to GPL.
1450 - Handle several `-m*' options.
1451 - Fix handling of `-ms' and `-mm'. Add .TL and .NH.
1452 - Allow options after file names.
1453 - Allow only one `-' parameter (standard input).
1454 - Add option abbreviations.
1455 - Expand the usage information.
1457 - Add single quote "'" as additional first character and allow
1458 arbitrary space after the first character.
1460 * src/roff/grog/Makefile.sub:
1461 - Add copyright to GPL.
1462 - Remove `grog:'. Move `grog.old:' to `grog:' in order to have a
1463 fair chance to choose between the shell version and the Perl
1464 version of `grog'. This is now again comparable to grog in groff
1467 * src/roff/grog/grog.man: Rewrite.
1468 - Move the license to GPL.
1469 - New sections: OPTIONS, DETAILS, EXAMPLES, COPYING.
1470 - Take over some setup and macros from `groffer'.
1471 - Add information on options.
1473 2006-10-28 Werner LEMBERG <wl@gnu.org>
1475 * tmac/trace.tmac: Improve tracing of `.nr'.
1476 Trace `.substring' also.
1480 2006-10-28 Bernd Warken
1482 * man/roff.man, src/roff/groff/groff.man: Add `chem', fix position
1483 of groff development site, fix fonts.
1485 * News: Add information on `chem' and `groffer'.
1487 2006-10-26 Bernd Warken
1489 * Makefile.in (OTHERDIRS, NOMAKEDIRS): Add `chem' bundle.
1491 2006-10-26 Werner LEMBERG <wl@gnu.org>
1493 Add `\$^' escape to handle the parameters to a macro as a string
1496 * src/roff/troff/input.h (DOUBLE_QUOTE): New special character.
1498 * src/roff/troff/input.cpp (input_iterator, input_stack,
1499 macro_iterator): Add `space_follows_arg' member function.
1500 (macro_iterator::add_arg): Add parameter to set the `space_follows'
1502 (arg_list): Add member `space_follows'.
1503 Update constructor and all callers.
1504 (decode_args): Store discarded double quotes.
1505 (interpolate_args): Handle DOUBLE_QUOTE.
1507 (get_copy, token::next, composite_glyph_name): Handle DOUBLE_QUOTE.
1509 * tmac/trace.tmac: Trace .nr, .ds, .ds1, .as, .as1.
1511 * docs/groff.texinfo (Parameters), man/groff.man,
1512 man/groff_diff.man, NEWS: Document it.
1514 2006-10-24 Bernd Warken
1516 * Makefile.in (NOMAKEDIRS): Add groffer subdirectories.
1518 2006-10-24 Werner LEMBERG <wl@gnu.org>
1520 * tmac/groff_trace.man: Mention problem with `\\\\'.
1522 2006-10-23 Werner LEMBERG <wl@gnu.org>
1524 * doc/groff.texinfo (Expressions): Improve documentation of `!'.
1526 * tmac/trace.tmac (return): Don't call `substring'.
1528 2006-09-10 Werner LEMBERG <wl@gnu.org>
1530 * src/roff/troff/input.cpp (read_size): Revert previous change
1533 * doc/groff.texinfo (Fractional Size Types): Clarify syntax of \s.
1535 2006-09-09 Werner LEMBERG <wl@gnu.org>
1537 * src/roff/troff/input.cpp (read_size): Fix `\s[-\n[.s]]' so that it
1538 behave the same as `\s-[\n[.s]]' (this is, emit a warning and set
1539 point size to 1). Reported by Gunnar Ritter.
1540 Also catch `\s-[-...]' and friends (causing an error).
1542 2006-09-06 Werner LEMBERG <wl@gnu.org>
1544 * src/roff/troff/env.cpp (environment::do_break): Insert zero-width
1545 space only if there is no previous space. This fixes a bug which
1546 caused unwanted filling of the last line in a paragraph. Thanks to
1547 Gunnar Ritter for an analysis.
1549 2006-09-03 Werner LEMBERG <wl@gnu.org>
1551 * src/roff/groff/groff.cpp (main): Pass -U flag to pic also.
1552 Reported by Jennifer Sayers <jenjen@isu.usyd.edu.au>.
1554 2006-09-01 Nick Stoughton <nick@msbit.com>
1555 Werner LEMBERG <wl@gnu.org>
1557 Add a request `pev' to print environment information (similar to
1558 `pnr' and `ptr' to print number registers and traps).
1560 * src/roff/troff/env.h (environment): Add member function print_env.
1562 * src/roff/troff/env.cpp: (environment::print_env): New function to
1563 print a given environment state.
1564 (print_env): New global function to iterate through the
1565 environments, printing each one.
1566 (init_env_requests): Register `pev'.
1568 * doc/groff.texinfo (Debugging), man/groff.man, man/groff_diff.man,
1569 NEWS: Document `pev' request.
1571 2006-09-01 Bernd Warken
1573 * src/preproc/soelim/soelim.cpp (usage): Fix option argument of
1576 2006-09-01 Werner LEMBERG <wl@gnu.org>
1578 * src/preproc/pic/main.cpp (usage): Add missing options.
1580 2006-08-25 Werner LEMBERG <wl@gnu.org>
1582 * src/preproc/soelim/soelim.man: Document how to insert `\' and ` '
1585 2006-08-19 Werner LEMBERG <wl@gnu.org>
1587 * configure: Regenerated.
1589 2006-08-18 Keith Marshall <keith.d.marshall@ntlworld.com>
1591 * m4/groff.m4 (GROFF_MAKEINFO): Correct `makeinfo version testing
1592 logic; it previously caused an `expr' syntax error, if no version of
1593 `makinfo' was present. Also, remove dependency on `makeinfo' in VPATH
1594 builds, if an up to date `groff.info' is present in either `builddir'
1597 2006-08-12 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
1599 * font/devps/prologue.ps: Add BPhook.
1601 * src/devices/grops/grops.man: Document BPHook.
1602 Reorder some sections for better readability.
1604 2006-08-12 Werner LEMBERG <wl@gnu.org>
1606 * src/include/lib.h (getlocale): New macro.
1607 (setlocale, LC_ALL, LC_CTYPE) [!HAVE_SETLOCALE]: Define, as
1610 * src/preproc/preconv/preconv.cpp (main): Use getlocale.
1612 2006-08-11 Werner LEMBERG <wl@gnu.org>
1614 Add new flag to .cflags to enable hyphenation without looking at
1617 * src/roff/troff/charinfo.h (charinfo): New enumeration value
1619 New member function `ignore_hcodes'.
1621 * src/roff/troff/node.cpp (break_char_node::add_self,
1622 node::add_char): Updated.
1624 * doc/groff.texinfo, man/groff_diff.man, NEWS: Document it.
1626 2006-08-09 Werner LEMBERG <wl@gnu.org>
1628 Support composite Unicode characters again. Reported by Colin.
1630 * font/devhtml/R.proto: Renamed to...
1631 * font/devhtml/R.in: This.
1633 * font/devutf8/R.proto: Renamed to...
1634 * font/devutf8/R.in: This.
1637 * font/make-Rproto: New script.
1638 * font/devhtml/R.proto, font/devutf8/R.proto: Generated.
1640 2006-07-26 Werner LEMBERG <wl@gnu.org>
1642 * README: Fix description of CVS access. Reported by Joachim.
1644 2006-07-11 Werner LEMBERG <wl@gnu.org>
1646 Add a request `.fzoom' and a number register `.zoom' to magnify
1649 * src/include/font.h (font): Add member variable `zoom'.
1650 Add member functions `set_zoom' and `get_zoom'.
1651 Remove `static' attribute from `scale' member function.
1653 * src/libs/libgroff/font.cpp (font::font): Updated.
1654 (scale_round): New version with three parameters to handle zoom
1656 (font::scale, font::get_width): Handle zoom factor.
1657 (font::set_zoom, font::get_zoom): New functions.
1658 (font::load): Handle `zoom' while computing `space_width'.
1660 * src/roff/troff/env.h: Declare `env_get_zoom'.
1661 (environment): Add member function `get_zoom'.
1663 * src/roff/troff/env.cpp (environment::get_zoom): New function.
1664 (init_env_requests): Initialize `.zoom' register.
1666 * src/roff/troff/node.cpp (font_info): New member functions
1667 `set_zoom' and `get_zoom'.
1668 (tfont): New member function `get_zoom'.
1669 (env_get_zoom): New function.
1670 (troff_output_file::set_font): Handle zoom factor.
1671 (font_zoom_request): New function.
1672 (init_node_requests): Initialize `fzoom' request.
1674 * docs/groff.texinfo (Changing Fonts), man/groff.man,
1675 man/groff_diff.man, NEWS: Document `fzoom' request and `.zoom'
1678 * src/roff/troff/TODO: Updated.
1680 2006-07-10 Werner LEMBERG <wl@gnu.org>
1682 * doc/groff.texinfo (Drawing Requests): Improve documentation of
1685 2006-07-02 Werner LEMBERG <wl@gnu.org>
1687 * man/groff_tmac.man: Document usage of .PSPIC within diversions.
1689 2006-07-01 Werner LEMBERG <wl@gnu.org>
1691 * tmac/pspic.tmac: Make .PSPIC work for all devices.
1692 Print image file name for devices which don't support PS image
1694 Handle multiple inclusions.
1695 Add lots of comments.
1697 * tmac/dvi.tmac, tmac/html.tmac, tmac/ps.tmac: Don't load
1700 * tmac/troffrc: Load pspic.tmac.
1702 * man/groff_tmac.man: Update .PSPIC documentation.
1706 2006-06-29 Werner LEMBERG <wl@gnu.org>
1708 * src/roff/troff/input.cpp (interpolate_macro):
1709 s/probably/possibly/, as suggested by Keith.
1711 2006-06-28 Werner LEMBERG <wl@gnu.org>
1713 Add support for \D'p...' to grotty.
1715 * src/devices/grotty/grotty.cpp (tty_printer::draw): Move most of
1717 (tty_printer::line): This function.
1718 (tty_printer::draw): Rewritten; just call either draw_line or
1720 (tty_printer::draw_line, tty_printer::draw_polygon): New functions.
1722 * src/devices/grotty/grotty.man, NEWS: Document it.
1724 2006-06-27 Werner LEMBERG <wl@gnu.org>
1726 * src/preproc/refer/command.h (have_bibliography): New variable
1729 * src/preproc/refer/command.cpp (bibliography_command): Set
1730 `have_bibliography'.
1732 * src/preproc/refer/refer.cpp: Initialize `have_bibliography'.
1733 (output_references): Emit warning only if `have_bibliography' is
1736 2006-06-15 Michail Vidiassov <master@iaas.msu.ru>
1738 * font/devps/Makefile.sub (DISTFILES): Add freeeuro.afm.
1739 * font/devps/generate/Makefile (clean): Don't remove symbolsl.afm
1742 2006-06-15 Werner LEMBERG <wl@gnu.org>
1744 * src/preproc/tbl/tbl.man: Document limitations of .TS/.TE within a
1745 macro (as suggested by Tadziu Hoffmann).
1747 2006-06-12 Werner LEMBERG <wl@gnu.org>
1749 * src/preproc/tbl/tbl.man: Add example for use of .TS/.TE within a
1750 macro (as suggested by Tadziu Hoffmann).
1752 2006-06-05 Werner LEMBERG <wl@gnu.org>
1754 * tmac/strip.sed: Strip `\#' also.
1756 * doc/groff.texinfo (Operators in Conditionals): Document usage of
1757 \? for string comparison.
1759 2006-06-04 Werner LEMBERG <wl@gnu.org>
1761 * doc/groff.texinfo: Add more index entries for copy-in mode.
1762 (Changing Fonts) <.ft>: Document that a font definition file must
1763 not be called `DESC'.
1765 2006-05-31 Werner LEMBERG <wl@gnu.org>
1767 * src/roff/troff/input.cpp (token::next) <\N>: Catch negative values
1770 * doc/Makefile.sub (EXAMPLEFILES): Move gnu.eps to...
1771 (PROCESSEDEXAMPLEFILES): Here.
1773 2006-05-30 Werner LEMBERG <wl@gnu.org>
1775 * src/libs/libgroff/font.cpp (font::load): Reject fonts called
1777 Reduce number of false positives for `.if F ...' conditionals.
1778 Improve warning messages.
1780 2006-05-29 Werner LEMBERG <wl@gnu.org>
1782 * tmac/Makefile.sub: Add copyright notice.
1783 (NORMALFILES): Add man.tmac and ms.tmac.
1784 (SPECIALFILES): Remove man.tmac and ms.tmac.
1785 (CLEANADD): Remove man.tmac-sed and ms.tmac-sed.
1786 (install_data, uninstall_sub): Don't handle man.tmac and ms.tmac
1788 (stamp-sed): Don't handle man.tmac and ms.tmac.
1789 Remove obsolete components in sed's regexp.
1791 * doc/Makefile.sub (EXAMPLEFILES): Add gnu.eps.
1793 * Makefile.in (OTHERDIRS, NOMAKEDIRS): Add hdtbl.
1795 2006-05-28 Werner LEMBERG <wl@gnu.org>
1797 * doc/groff.texinfo (History): Correct death circumstances of Joe
1800 2006-05-27 Werner LEMBERG <wl@gnu.org>
1802 * tmac/an-old.tmac (an-do-tag): Simplify.
1804 2006-05-26 Werner LEMBERG <wl@gnu.org>
1806 * tmac/an-old.tmac (an-do-tag): Make margin characters work.
1807 (an-header, an-p-footer): Use named environment.
1809 * src/roff/troff/env.cpp (environment::copy): Copy margin character
1812 2006-05-21 Werner LEMBERG <wl@gnu.org>
1814 * tmac/trace.tmac (de1): Fix serious typo (.di -> .do) and minor
1817 2006-05-11 Keith Marshall <keith.d.marshall@ntlworld.com>
1819 * src/roff/groff/groff.man: Remove superfluous word `intermediate'.
1821 2006-05-10 Keith Marshall <keith.d.marshall@ntlworld.com>
1823 * src/roff/groff/groff.man: Update copyright notice.
1824 Improved wording to describe effect of `-Z' option.
1826 2006-05-06 Werner LEMBERG <wl@gnu.org>
1828 * tmac/www.tmac: Decorate `.ds' with trailing `\"' where missing.
1829 Normalize handling of `"' in arguments.
1830 (PIMG): Remove debug message.
1833 2006-05-05 Werner LEMBERG <wl@gnu.org>
1835 * src/devices/grohtml/post-html.cpp (page::add_and_encode): Don't
1836 swallow character immediately after `\[...]'.
1839 2006-05-02 Gaius Mulley <gaius@glam.ac.uk>
1841 * tmac/www.tmac (PIMG): Fix the HTML device specific components.
1843 2006-05-02 Larry Kollar <kollar@alltel.net>
1845 * tmac/www.tmac (PIMG): Really default to `-C' if the alignment
1848 2006-04-30 Michail Vidiassov <master@iaas.msu.ru>
1850 * src/utils/afmtodit/afmtodit.pl: New option `-c' to add font
1851 information as a comment in output.
1852 * src/utils/afmtodit/afmtodit.man, NEWS: Document it.
1854 2006-04-26 Werner LEMBERG <wl@gnu.org>
1856 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
1857 Handle current_paragraph only if it is non-NULL.
1859 * src/libs/libdriver/input.cpp (parse_x_command <'F'>, do_file
1860 <'F'>): Use `get_extended_arg' to behave as documented. Reported by
1861 Bill Ward <william.a.ward.jr@erdc.usace.army.mil>.
1864 Surround the (pseudo) file name for the .pso request with `<' and
1867 * src/roff/troff/node.cpp (real_output_file, troff_output_file): Add
1868 second parameter to `really_put_filename' and `put_filename'.
1869 (troff_output_file::really_put_filename): Emit `<' and `>' around
1870 filename if second argument is set.
1871 * src/roff/troff/node.h: Updated.
1873 * src/roff/troff/input.cpp (file_iterator::file_iterator,
1874 file_iterator::set_location): Update to changes in node.cpp.
1876 2006-04-25 Tetsurou Okazaki <okazaki@FreeBSD.org>
1878 * src/preproc/preconv/preconv.cpp (do_file): Fix conditional
1879 preprocessor expression (I18N -> HAVE_ICONV).
1880 (main): Fix handling of option `-h'.
1881 Fix conditional preprocessor expression.
1883 2006-04-04 Werner LEMBERG <wl@gnu.org>
1885 Implement new number register `.br' which is set to 1 if a macro has
1886 been called as .foo and to 0 if called as 'bar. This is useful for
1887 -mtrace so that requests can be reliably traced too.
1889 * src/roff/troff/input.cpp (input_iterator): Add virtual function
1891 (macro_iterator): Add `with_break' member and `get_break_flag'
1893 Update constructors.
1894 (input_stack): Add function `get_break_flag'.
1895 (break_flag_reg): New number register class.
1896 (input_init_requests): Register `.br'.
1898 * src/roff/troff/TODO: Updated.
1900 * tmac/trace.tmac: s/!!sp/!!!sp/.
1901 Modify definitions of `de', `de1', `am', and `am1' to use \n[.br].
1903 * docs/groff.texinfo (Requests), man/groff.man, man/groff_diff.man,
1906 2006-03-29 Werner LEMBERG <wl@gnu.org>
1908 * src/devices/grops/ps.cpp: s/must not/should not/ in warning
1909 messages where appropriate.
1911 2006-03-28 Werner LEMBERG <wl@gnu.org>
1913 * configure.ac: Call AC_PROG_EGREP.
1914 * configure: Regenerated.
1916 * Makefile.in (EGREP): New variable.
1917 (MDEFINES): Add $(EGREP).
1919 * src/roff/grog/grog.sh: Treat .TH between .TS and .TE properly
1920 (bug reported by Robert Goulding <Goulding.2@nd.edu>).
1923 * src/roff/grog/Makefile.sub (grog, grog.old): Use $(EGREP).
1925 2006-03-27 Werner LEMBERG <wl@gnu.org>
1927 Add two requests `.device' and `.devicem' which are equivalent to
1928 `\X' and `\Y', respectively.
1930 * src/roff/troff/input.cpp (device_request, device_macro_request):
1932 (init_input_requests): Register them.
1934 * doc/groff.texinfo (Postprocessor Access), man/groff_diff.man,
1935 man/groff.man, NEWS: Document them.
1937 2006-03-27 Gaius Mulley <gaius@glam.ac.uk>
1939 * src/roff/troff/input.cpp (encode_char): Emit special characters
1940 for -Thtml as `\[...]'.
1941 * src/devices/grohtml/post-html.cpp (page::add_and_encode): Updated.
1943 * doc/groff.texinfo (Postprocessor Access) <\X>: Updated.
1945 2006-03-27 Werner LEMBERG <wl@gnu.org>
1947 * tmac/Makefile.sub (NORMALFILES, SPECIALFILES): Add various missing
1950 2006-03-26 Werner LEMBERG <wl@gnu.org>
1952 * doc/groff.texinfo (Writing Macros): More documentation on
1953 end-of-macro symbol of `.de'.
1954 (Diversions): Minor addition to `.di' description.
1956 * src/devices/grops/grops.man: Some clarifications regarding
1957 insertion of PostScript snippets.
1959 2006-03-25 Michail Vidiassov <master@iaas.msu.ru>
1961 Add rules to generate `symbolsl.afm'.
1963 * font/devps/generate/zapfdr.sed,
1964 font/devps/generate/symbolsl.awk: New files.
1966 * font/devps/generate/Makefile (symbolfont, PRINTAFM): New
1968 (SS, clean): Updated.
1969 (freeeuro.afm): Use $(srcdir).
1970 (symbolsl.afm): New rule.
1971 (zapfdr.afm): Use zapfdr.sed.
1973 2006-03-22 Dwight Aplevich <aplevich@uwaterloo.ca>
1975 * src/preproc/pic/pic.y (expr <INT>): Fix code.
1977 2006-03-22 Jörgen Grahn <jgrahn@algonet.se>
1979 * tmac/sv.tmac: Add missing translations and activate support for
1980 other macro packages.
1982 2006-03-21 Francis GUDIN <fgudin@nerim.net>
1984 * tmac/doc-syms (Dx): New macro to identify DragonFly.
1985 (doc-str-St--ieee1275-94, doc-str-St--isoC-amd1,
1986 doc-str-St--isoC-tcor1, doc-str-St--isoC-tcor2): New standard
1988 (doc-operating-system-FreeBSD-5.5, doc-operating-system-FreeBSD-7.0,
1989 doc-operating-system-NetBSD-1.6.3, doc-operating-system-NetBSD-4.0
1990 doc-operating-system-DragonFly-*): New operating system strings.
1992 * tmac/groff_mdoc.man, NEWS: Document `Dx'.
1994 2006-03-21 Werner LEMBERG <wl@gnu.org>
1996 * src/preproc/pic/pic.y (object_spec THEN): For compatibility with
1997 both DWB pic and dpic, make
2005 line right then down;
2012 * doc/pic.ms: Document this.
2014 2006-03-20 Werner LEMBERG <wl@gnu.org>
2016 * doc/pic.ms: With permission of Eric Raymond, put it under the
2021 2006-03-19 Werner LEMBERG <wl@gnu.org>
2023 * src/preproc/pic/pic.y (expr <INT>): Really return integer part.
2025 * src/preproc/pic/objects.cpp (object_spec::make_line): Handle `at'
2026 attribute in combination with `with'. Bug reported by Jennifer
2027 Sayers <jenjen@mail.usyd.edu.au>.
2029 2006-03-19 Miklos Somogyi <msom@netspace.net.au>
2031 * doc/groff.texinfo (Manipulating Spacing): Improve documentation of
2034 2006-03-18 Werner LEMBERG <wl@gnu.org>
2036 * LICENSE: Renamed to...
2037 * LICENSES: This. Collect all licensing information in this file.
2038 * tmac/README, src/libs/snprintf/README: Removed.
2040 * src/devices/grops/grops.man: Add section how to install fonts.
2042 * src/utils/xtotroff/xtotroff.c: Add GPL.
2044 2006-03-17 Werner LEMBERG <wl@gnu.org>
2046 * Makefile.comm (.y.cpp): Fix #line arguments in output.
2048 2006-03-13 Werner LEMBERG <wl@gnu.org>
2050 * src/preproc/tbl/tbl.man: Mention default length of text blocks.
2052 * tmac/doc-common (Os): Add more Darwin versions.
2053 * tmac/groff_mdoc.man: Document them.
2055 * doc/groff.texinfo (Operators in Conditionals): Mention that `c'
2056 works with \N'...' also.
2057 * man/groff_diff.man: Ditto. Remove use of future tense where
2060 2006-03-12 Michail Vidiassov <master@iaas.msu.ru>
2062 * font/devps/generate/make-zapfdr, font/devps/symbolsl.ps,
2063 font/devps/zapfdr.ps: Add `%%EndComments' line.
2065 2006-03-10 Larry Kollar <kollar@alltel.net>
2067 * doc/groff.texinfo (Headers and footers): Document PT, HD, and BT.
2069 2006-03-10 Werner LEMBERG <wl@gnu.org>
2071 * src/devices/grops/ps.cpp (ps_printer::do_exec, ps_printer::do_def,
2072 ps_printer::do_mdef): Overlong lines now cause a warning message,
2075 2006-03-09 Werner LEMBERG <wl@gnu.org>
2077 * font/devps/generate/make-zapfdr: New script for generating
2080 2006-03-08 Werner LEMBERG <wl@gnu.org>
2082 * doc/groff.css (pre): Fix `background-color' value.
2084 2006-03-04 Larry Kollar <kollar@alltel.net>
2086 * tmac/groff_ms.man: Document PT, HD, and BT.
2088 2006-03-04 Werner LEMBERG <wl@gnu.org>
2090 * src/roff/troff/node.cpp (make_glyph_node): Improve warning message
2091 for single-letter glyph names.
2093 2006-03-02 Werner LEMBERG <wl@gnu.org>
2095 * tmac/sv.tmac: New file; currently holding only the Swedish strings
2097 * tmac/hyphen.sv: New hyphenation pattern file for Swedish, taken
2099 * tmac/README: Updated.
2101 2006-02-27 Werner LEMBERG <wl@gnu.org>
2103 * tmac/trans.tmac (Liec, Letdate, Letns!14): Add it (for -mm).
2104 * tmac/fr.tmac: Add French translations.
2106 * tmac/composite.tmac: Add entry for `:'.
2108 2006-02-26 Werner LEMBERG <wl@gnu.org>
2110 * doc/Makefile.sub (HTMLEXAMPLEFILESALL): New variable.
2112 (install_html, uninstall_sub): Updated.
2114 2006-02-26 Bruno Haible <bruno@clisp.org>
2116 Introduce Unicode fonts.
2118 * font/devhtml/DESC.proto: Mark as unicode.
2119 * font/devhtml/R.proto: Remove all charset entries that are already
2121 * font/devutf8/DESC.proto: Mark as unicode.
2122 * font/devutf8/R.proto: Remove all charset entries.
2123 * src/include/font.h (font): New static field `is_unicode'.
2124 Change order of fields.
2125 * src/libs/libgroff/font.cpp: Include unicode.h.
2126 (font::font): Update for changed order of fields.
2127 (font::contains, font::get_width, font::get_height, font::get_depth,
2128 font::get_italic_correction, font::get_left_italic_correction,
2129 font::get_subscript_correction, font::get_character_type,
2130 font::get_code, font::get_special_device_encoding): Handle both the
2131 explicitly enumerated glyphs and use general code for Unicode fonts.
2132 (font::load): Make the charset section optional when the font is
2134 (font::load_desc): Recognize the `unicode' attribute.
2135 * src/libs/libgroff/fontfile.cpp (font::is_unicode): New variable.
2137 2006-02-26 Claudio Fontana <claudio@gnu.org>
2139 * Makefile.in: Add comment about DESTDIR.
2141 * Makefile.sub: Add DESTDIR to install and uninstall targets
2142 to support staged installations.
2143 * Makefile.comm: Likewise.
2144 * doc/Makefile.sub: Likewise.
2145 * contrib/eqn2graph/Makefile.sub: Likewise.
2146 * contrib/grap2graph/Makefile.sub: Likewise.
2147 * contrib/pic2graph/Makefile.sub: Likewise.
2148 * src/devices/xditview/Makefile.sub: Likewise.
2149 * src/preproc/eqn/Makefile.sub: Likewise.
2150 * src/roff/grog/Makefile.sub: Likewise.
2151 * src/roff/nroff/Makefile.sub: Likewise.
2152 * src/utils/afmtodit/Makefile.sub: Likewise.
2153 * src/utils/indxbib/Makefile.sub: Likewise.
2154 * tmac/Makefile.sub: Likewise.
2156 2006-02-24 Werner LEMBERG <wl@gnu.org>
2158 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Use entry
2160 Remove commented out entries for \' and \` (there are no such glyph
2163 * src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list): Remove
2164 commented out entries for \' and \`.
2167 * */*: s/legal/valid/ where appropriate.
2169 2006-06-23 Werner LEMBERG <wl@gnu.org>
2171 * font/devhtml/R.proto, font/devutf8/R.proto: Remove incorrect \'
2174 2006-02-22 Werner LEMBERG <wl@gnu.org>
2176 Remove all remaining traces from the `shc' glyph.
2178 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
2179 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list): Remove
2182 * font/devlatin1/R.proto, font/devcp1046/R.proto: Replace `shc'
2183 entry with unnamed glyph.
2185 * tmac/html/tmac: Remove `shc' entry from call to `.cflags'.
2187 * src/preproc/preconv/preconv.cpp (unicode_entity): Handle U+00AD
2190 2006-02-22 Bruno Haible <bruno@clisp.org>
2192 Concretize the `glyph' datatype.
2194 * src/include/font.h (glyph): Remove class.
2195 (glyph): Renamed from struct `glyphinfo'.
2196 (glyph_to_index): New inline function.
2197 (glyph_to_name): Make extern, not inline.
2198 (glyph_to_number): Update.
2199 (font): Use `glyph *' instead of `glyph'.
2201 * src/libs/libgroff/nametoindex.cpp (charinfo): Inherit from class
2202 `glyph'. Make `name' field public.
2203 (character_indexer, number_to_glyph, name_to_glyph): Use `glyph *'
2205 (glyph_to_name): Renamed from `glyph::glyph_name'.
2207 * src/roff/troff/charinfo.h (charinfo): Inherit from class `glyph'.
2208 Use `glyph *' instead of `glyph'.
2210 * src/roff/troff/input.cpp (name_to_glyph, number_to_glyph): Use
2211 `glyph *' instead of `glyph'.
2212 (glyph_to_name): Renamed from `glyph::glyph_name'.
2214 * src/libs/libgroff/font.cpp: Use `glyph *' instead of `glyph',
2215 and `glyph_to_index' instead of `glyph::glyph_index'.
2217 * src/include/printer.h (printer): Use `glyph *' instead of `glyph'.
2218 * src/libs/libdriver/printer.cpp: Likewise.
2219 * src/devices/grodvi/dvi.cpp: Likewise.
2220 * src/devices/grohtml/post-html.cpp: Likewise.
2221 * src/devices/grolbp/lbp.cpp: Likewise.
2222 * src/devices/grolj4/lj4.cpp: Likewise.
2223 * src/devices/grops/ps.cpp: Likewise.
2224 * src/devices/grotty/tty.cpp: Likewise.
2226 2006-02-22 Werner LEMBERG <wl@gnu.org>
2228 * font/devdvi/generate/tc.map: Add `sr' glyph.
2229 * font/devdvi/*TC: Regenerated.
2231 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Use entry
2234 2006-02-21 Werner LEMBERG <wl@gnu.org>
2236 * man/groff_char.man: Explain `***' marker.
2238 2006-02-17 Bruno Haible <bruno@clisp.org>
2240 * src/libs/libgroff/nametoindex.cpp (character_indexer): Rename
2241 methods and fields from *_index to *_glyph.
2242 (character_indexer::named_char_glyph): Test for `charNNN' name
2244 (name_to_glyph): ... not here.
2246 2006-02-17 Bruno Haible <bruno@clisp.org>
2248 * src/include/font.h (name_to_glyph): Renamed from
2249 font::name_to_index.
2250 (number_to_glyph): Renamed from font::number_to_index.
2251 (glyph_to_name): Renamed from font::index_to_name.
2252 (glyph_to_number): Renamed from font::index_to_number.
2253 * src/libs/libgroff/nametoindex.cpp: Likewise.
2254 * src/roff/troff/charinfo.h (charinfo::as_glyph): Renamed from
2255 charinfo::get_index.
2257 * src/roff/troff/input.cpp: All callers changed.
2258 * src/roff/troff/node.cpp: Likewise.
2259 * src/libs/libgroff/font.cpp: Likewise.
2260 * src/devices/grops/ps.cpp: Likewise.
2261 * src/devices/grohtml/post-html.cpp: Likewise.
2262 * src/libs/libdriver/printer.cpp: Likewise.
2264 2006-02-17 Werner LEMBERG <wl@gnu.org>
2266 * src/include/ptable.h, src/include/itable.h
2267 (NEXT_PTABLE_SIZE_DEFINED): Use it to avoid multiple declaration
2268 of external symbol `next_ptable_size' (used by both header files).
2270 2006-02-15 Bruno Haible <bruno@clisp.org>
2272 * src/include/font.h (glyphinfo): New class.
2273 (glyph): Change internal representation.
2274 Change constructor signature.
2275 New method glyph::glyph_number().
2276 (glyph::glyph, glyph glyph::undefined_glyph, glyph::glyph_index,
2277 glyph::operator==, glyph::operator!=): Update.
2278 (font::index_to_name, font::index_to_number): New functions.
2280 * src/include/itable.h: New file, based on src/include/ptable.h.
2282 * src/libs/libgroff/nametoindex.cpp: Include itable.h.
2283 (class charinfo): New class.
2284 (class character_indexer): Change table result type from `int' to
2286 Add table with integer key.
2287 (character_indexer::character_indexer): Update.
2288 (character_indexer::ascii_char_index): Update.
2289 (character_indexer::numbered_char_index): Use NULL as name, not a
2290 string starting with a space.
2291 (character_indexer::named_char_index): Update.
2292 (font::number_to_index, font::name_to_index): Remove no-op cast.
2293 (glyph::glyph_name): New method.
2294 * src/roff/troff/charinfo.h (class charinfo): Inherit from class
2296 (NUMBERED): Remove flag bit.
2297 (charinfo::numbered, charinfo::get_index): Update.
2299 * src/roff/troff/input.cpp (charinfo::charinfo): Update.
2300 (charinfo::set_number, charinfo::get_number): Update.
2301 (glyph::glyph_name): New method.
2303 2006-02-15 Werner LEMBERG <wl@gnu.org>
2305 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list): Fix
2306 entries for `>>', `<<', `*f', and `+f'. Reported by Bruno.
2308 2006-02-13 Werner LEMBERG <wl@gnu.org>
2310 * font/devps/prologue.ps (RE): Check `UniqueID' also, similar to
2313 2006-02-11 Werner LEMBERG <wl@gnu.org>
2315 * src/include/font.h: s/glyph_t/glyph/.
2318 * src/devices/grotty/tty.cpp: s/glyph/tty_glyph/.
2319 s/output_character_t/output_character/.
2321 2006-02-11 Bruno Haible <bruno@clisp.org>
2323 New accessor method glyph_t::glyph_name().
2325 * src/include/ptable.h (declare_ptable): Add a return value to the
2326 `define' method, and declare a `lookupassoc' method.
2327 (implement_ptable): Return the stored key in `define'. Implement
2329 * src/include/font.h (glyph_t): Add `name' field. Add an argument
2331 (glyph_t::glyph_name): New method.
2333 * src/libs/libgroff/nametoindex.cpp (character_indexer): Change
2334 return type of methods and field member type to glyph_t.
2335 (character_indexer::character_indexer): Update.
2336 (character_indexer::ascii_char_index): Allocate a name for the
2338 Return a glyph_t with name.
2339 (character_indexer::numbered_char_index): Return a glyph_t without a
2341 (character_indexer::named_char_index): Return a glyph_t with a name.
2342 (font::number_to_index, font::name_to_index): Update.
2344 * src/roff/troff/input.cpp (charinfo::charinfo): Use the symbol as
2347 2006-02-11 Bruno Haible <bruno@clisp.org>
2349 * src/devices/grotty/tty.cpp (output_character_t): New type.
2350 (tty_printer::make_bold, tty_printer::add_char,
2351 tty_printer::put_char): Change argument type to output_character_t.
2352 (crossings): Change element type to output_character_t.
2354 2006-02-11 Bruno Haible <bruno@clisp.org>
2356 Make the glyph data type abstract.
2358 * src/include/font.h (glyph_t): New class.
2359 (name_to_index, number_to_index): Change return type to glyph_t.
2360 (font::contains, font::get_width, font::get_height, font::get_depth,
2361 font::get_character_type, font::get_kern, font::get_skew,
2362 font::get_italic_correction, font::get_left_italic_correction,
2363 font::get_subscript_correction, font::get_code,
2364 font::get_special_device_encoding, font::add_entry,
2365 font::copy_entry, font::add_kern, font::hash_kern): Change argument
2368 * src/libs/libgroff/font.cpp (font_kern_list): Change members
2369 type and constructor argument types to glyph_t.
2370 (font::contains, font::get_width, font::get_height, font::get_depth,
2371 font::get_character_type, font::get_kern, font::get_skew,
2372 font::get_italic_correction, font::get_left_italic_correction,
2373 font::get_subscript_correction, font::get_code,
2374 font::get_special_device_encoding, font::add_entry,
2375 font::copy_entry, font::add_kern, font::hash_kern): Change argument
2377 (font::load): Use glyph_t variables.
2379 * src/libs/libgroff/nametoindex.cpp (name_to_index,
2380 number_to_index): Change return type to glyph_t.
2382 * src/roff/troff/charinfo.h (charinfo::index): Change type to
2384 (charinfo::get_index): Change return type to glyph_t.
2386 * src/roff/troff/env.cpp: Include font.h.
2388 * src/roff/troff/node.cpp: Include font.h before charinfo.h.
2390 * src/roff/troff/input.cpp: Include font.h before charinfo.h.
2391 (charinfo::charinfo): Update.
2392 (name_to_index, number_to_index): Change return type to glyph_t.
2394 * src/include/printer.h (printer::set_char_and_width): Change return
2397 * src/libs/libdriver/printer.cpp (printer::set_char_and_width):
2398 Change return type to glyph_t.
2400 * src/devices/grodvi/dvi.cpp (dvi_printer::set_char): Change
2401 argument type to glyph_t.
2403 * src/devices/grohtml/post-html.cpp (page::add_and_encode): Update.
2404 (html_printer::space_glyph): Renamed from space_char_index.
2405 (html_printer::add_to_sbuf, html_printer::sbuf_continuation,
2406 html_printer::overstrike, html_printer::set_char): Change argument
2408 (html_printer::set_char_and_width): Change return type to glyph_t.
2410 * src/devices/grolbp/lbp.cpp (lbp_printer::set_char): Change
2411 argument type to glyph_t.
2413 * src/devices/grolj4/lj4.cpp (lj4_printer::set_char): Change
2414 argument type to glyph_t.
2416 * src/devices/grops/ps.cpp (ps_printer::space_glyph): Renamed from
2418 (ps_printer::set_subencoding, ps_printer::set_char): Change argument
2421 * src/devices/grotty/tty.cpp (tty_printer::set_char): Change
2422 argument type to glyph_t.
2424 2006-02-11 Bruno Haible <bruno@clisp.org>
2426 * src/roff/troff/input.cpp (font::name_to_index): Never return a
2429 * src/libs/libgroff/font.cpp (font::load): Remove failure tests for
2430 font::name_to_index.
2432 2006-02-10 Werner LEMBERG <wl@gnu.org>
2434 * doc/groff.texinfo (Assigning Formats): Number registers are always
2436 Apply some rephrasing, contributed by Michael Burt.
2438 2006-02-07 Werner LEMBERG <wl@gnu.org>
2440 * tmac/fr.tmac <ms>: Set `HY' register.
2442 2006-02-07 Werner LEMBERG <wl@gnu.org>
2444 Add framework for simple adaptation of the main macro packages (mm,
2445 me, ms, mom) to different locales. In particular, add support for
2446 French. For activation, simply use `-mfr' as the last macro
2447 package. This feature has been contributed by Fabrice Ménard
2448 <menard.fabrice@wanadoo.fr>.
2450 * tmac/fr.tmac, tmac/trans.tmac, tmac/hyphen.fr, tmac/LOCALIZATION:
2452 * tmac/README: Mention hyphen.fr.
2453 * man/groff_tmac.man: Mention fr.tmac.
2456 2006-01-27 Werner LEMBERG <wl@gnu.org>
2458 * man/groff_font.man: Updated documentation of `entity_name' field.
2461 2006-01-27 Bruno Haible <bruno@clisp.org>
2463 * font/devhtml/R.proto: Remove the entity names from the font's
2464 special_encoding_encoding column.
2465 * src/devices/grohtml/post-html.cpp (get_html_entity): New function,
2466 handling the entity names here.
2467 (get_html_translation): Use it. Change return type to `const
2469 (page::add_and_encode): Update, removing a useless cast.
2471 2006-01-26 Werner LEMBERG <wl@gnu.org>
2473 This change is based on a patch by Bruno Haible <bruno@clisp.org>.
2475 * src/include/device.h: Add comments.
2476 * src/include/font.h: Add comments.
2477 * src/include/unicode.h: Likewise.
2478 * src/include/ptable.h, src/libs/libgroff/ptable.cpp: Likewise.
2480 2006-01-26 Keith Marshall <keith.d.marshall@ntlworld.com>
2482 Suppress `.st' request emission by `grn'.
2484 * src/preproc/grn/main.cpp (USE_ST_REQUEST): New macro.
2487 2006-01-22 Werner LEMBERG <wl@gnu.org>
2489 * install-sh: New version; taken from texinfo CVS.
2491 2006-01-21 Werner LEMBERG <wl@gnu.org>
2493 * src/preproc/preconv/preconv.cpp (main): Set program_name. Bug
2494 reported by Alexander E. Patrakov <patrakov@ums.usu.ru>.
2496 2006-01-19 Bruno Haible <bruno@clisp.org>
2498 Let `make -k install' install more files.
2500 * Makefile.in (MAKE_K_FLAG): New variable. Use it everywhere where
2501 $(MAKE) and $(MDEFINES) are used.
2502 (CPROGDIRS): Remove $(XPROGDIRS). Treat $(XPROGDIRS) like
2503 $(CPROGDIRS) everywhere.
2504 ($(DEVDIRS) $(XDEVDIRS) $(OTHERDEVDIRS) $(TTYDEVDIRS)): Don't depend
2506 ($(OTHERDIRS)): Likewise.
2509 * src/devices/grohtml/post-html.cpp (get_html_translation): Remove
2510 failure test for font::name_to_index -- it can never fail.
2512 2006-01-19 Werner LEMBERG <wl@gnu.org>
2514 * src/devices/grops/grops.man: Fix section on creating EPS files.
2515 Don't use future time in manual.
2518 2006-01-15 Gaius Mulley <gaius@glam.ac.uk>
2520 * tmac/www.tmac: New macro LINKSTYLE which allows users to set
2521 various typographical URL attributes for non-HTML devices.
2523 * tmac/groff_www.man: Document LINKSTYLE.
2525 2006-01-11 Werner LEMBERG <wl@gnu.org>
2527 * configure.ac: Test for getc_unlocked (needed for localcharset).
2528 * configure, src/include/config.hin: Regenerated.
2530 * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Define
2533 * src/libs/libgroff/relocatable.h: New dummy header file for
2536 * src/libs/libgroff/localcharset.c: Updated to (unchanged) CVS
2539 2006-01-10 Bruno Haible <bruno@clisp.org>
2541 Work around unportability of nl_langinfo(CODESET).
2543 * m4/glibc21.m4: New file, from gnulib.
2544 * Makefile.sub (M4MACROS): Add m4/glibc21.m4.
2545 * configure.ac: Also test for stddef.h, and invoke jm_GLIBC21.
2546 * Makefile.in (HOST, GLIBC21): New variables.
2547 (MDEFINES): Pass them to subdirectories.
2548 * src/include/relocate.h (relocatep): Define with C linkage.
2549 * src/include/localcharset.h: New file, from gnulib.
2550 * src/libs/libgroff/localcharset.c: New file, from gnulib with a
2551 modification for relocate().
2552 * src/libs/libgroff/config.charset: New file, from gnulib.
2553 * src/libs/libgroff/ref-add.sin: New file, from gnulib.
2554 * src/libs/libgroff/ref-del.sin: New file, from gnulib.
2555 * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Also define LIBDIR.
2556 (OBJS): Add localcharset.o.
2557 (CSRCS): Add localcharset.c.
2558 (all): Add dependencies to charset.alias, ref-add.sed, ref-del.sed.
2559 (charset.alias): New rule.
2560 (PACKAGE): New variable.
2561 (ref-add.sed, ref-del.sed): New rules.
2562 (MKINSTALLDIRS): New variable.
2563 (install_data): Depend on install_charset_data.
2564 (install_charset_data): New rule for creating or updating
2566 (uninstall_sub): Depend on uninstall_charset_data.
2567 (uninstall_charset_data): New rule for uninstalling or updating
2569 * src/preproc/preconv/preconv.cpp: Include localcharset.h instead
2571 (main): Initialize default_encoding from locale_charset() instead of
2572 nl_langinfo(CODESET).
2574 * aclocal.m4, configure, src/include/config.hin: Regenerated.
2576 2006-01-10 Werner LEMBERG <wl@gnu.org>
2578 * src/preproc/preconv/preconv.cpp (conversion_iconv): Use
2579 ICONV_CONST in call to iconv. Reported by Robert Goulding.
2581 2006-01-07 Werner LEMBERG <wl@gnu.org>
2583 * font/devps/generate/freeeuro.sfd: Run auto-hinter with recent
2585 Bump font version to 001.001.
2587 * font/devps/generate/Makefile (freeeuro.afm, freeeuro.pfa):
2588 Call fontforge, not pfaedit.
2590 * font/devps/freeeuro.afm, font/devps/freeeuro.pfa: Regenerated.
2592 2006-01-05 Ruslan Ermilov <ru@FreeBSD.org>
2594 * tmac/doc-common: Add new FreeBSD and NetBSD versions.
2595 * tmac/groff_mdoc.man: Updated.
2597 2006-01-05 Werner LEMBERG <wl@gnu.org>
2599 * src/preproc/preconv/preconv.cpp: s/debug/debug_flag/.
2600 (raw_flag): New global variable.
2601 (do_file): Use .lf to set file name (if `raw_flag' isn't set).
2602 Don't pass BOM to `conversion_utf8'.
2604 (main): Handle `-r' command line switch to set `raw_flag'.
2605 (get_BOM): Fix encodings in `BOM_table'.
2607 * src/preproc/preconv/preconv.man: New file. Not complete yet.
2608 * src/preproc/proconv/Makefile.sub (MAN1): New variable.
2610 2006-01-04 Werner LEMBERG <wl@gnu.org>
2612 * src/preproc/preconv/preconv.cpp (emacs_to_mime): As suggested by
2613 Bruno, comment out most encodings to support only a small set of
2614 coding tags, thus reducing potential problems with legacy encodings
2615 and character sets in the future.
2616 Add many XEmacs coding tags (now commented out).
2618 (check_encoding_tag): Renamed to...
2619 (check_coding_tag): This.
2620 (get_BOM): Return encoding as specified by BOM.
2621 Test for UTF32-LE too.
2622 (do_file): Don't check for coding tag if a BOM has been found.
2624 2006-01-03 Bruno Haible <bruno@clisp.org>
2626 * m4/groff.m4: Renamed from aclocal.m4.
2627 * m4/codeset.m4: New file, from gnulib.
2628 * m4/iconv.m4: New file, from gnulib.
2629 * m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4: New files, from
2631 * config.rpath: New file, from gnulib.
2632 * config.guess, config.sub: New files, from gnulib.
2633 * Makefile.sub (M4MACROS): New variable.
2634 (configure): Fix typo.
2635 (aclocal.m4): New rule.
2636 (stamp-h.in): Depend on aclocal.m4.
2637 * configure.ac: Invoke AM_ICONV and AM_LANGINFO_CODESET.
2638 * Makefile.in (LIBICONV): New variable.
2639 (MDEFINES): Pass it to recursive makes.
2640 * src/preproc/preconv/preconv.cpp: Use HAVE_LANGINFO_CODESET and
2641 HAVE_ICONV instead of I18N macro.
2642 * src/preproc/preconv/Makefile.sub (EXTRA_LDFLAGS): New variable.
2644 * aclocal.m4, configure, src/include/config.hin: (Re)generated.
2646 2006-01-03 Werner LEMBERG <wl@gnu.org>
2648 * doc/Makefile.in (webpage.html): Simplify.
2649 * doc/Makefile.sub (webpage.html): Synchronize with doc/Makefile.in.
2650 * doc/webpage.ms, tmac/groff_www.man, tmac/www.tmac: Minor updates.
2652 2006-01-01 Werner LEMBERG <wl@gnu.org>
2654 * tmac/doc-common (Os): Add some Darwin versions.
2655 * tmac/groff_mdoc.man: Document them.
2657 2006-01-01 Bruno Haible <bruno@clisp.org>
2659 * src/preproc/preconv/preconv.cpp (emacs_to_mime): Various
2661 . Don't map ascii to latin-1.
2662 . Don't use IBMxxx encodings but cpxxx for portability.
2663 . Map cp932, cp936, cp949, cp950 to itself.
2664 (emacs2mime): Protect calls to strcasecmp.
2665 (conversion_iconv): Add missing call to iconv_close.
2666 (do_file): Emit error message in case of unsupported encoding.
2668 2005-12-31 Werner LEMBERG <wl@gnu.org>
2670 Integrate preconv into the groff binary. Changes based on a patch
2671 from Michail Vidiassov.
2673 * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase by 1.
2675 * src/roff/groff/groff.cpp (PRECONV_INDEX): New macro.
2676 (SOELIM_INDEX): Updated.
2677 (help, synopsis): Updated.
2678 (main): Add command line options `-k' and `-K enc' to select
2680 Add support for GROFF_ENCODING environment variable.
2682 * src/roff/groff/groff.man: Updated and revised.
2685 Start with autoconf support for preconv.
2687 * configure.ac: Call AC_C_BIGENDIAN.
2688 * configure, src/include/config.hin: Regenerated.
2690 2005-12-30 Werner LEMBERG <wl@gnu.org>
2692 New preprocessor `preconv' to convert input encodings to something
2693 groff can understand. Not yet integrated within groff. Proper
2694 autoconf stuff is missing too.
2696 Tomohiro Kubota has written a first draft of this program, and some
2697 ideas have been reused (while almost no code has been taken
2700 * src/preproc/preconv/preconv.cpp. src/preproc/preconv/Makefile.sub:
2703 * MANIFEST, Makefile.in (CCPROGDIRS), test-groff.in
2704 (GROFF_BIN_PATH): Add preconv.
2706 2005-12-12 Werner LEMBERG <wl@gnu.org>
2708 * aclocal.m4 (GROFF_MAKEINFO): Fix regexps to be POSIX conformant.
2709 In particular, don't use `\+' since it is a GNU sed extension.
2711 * configure: Regenerated.
2713 2005-12-09 Werner LEMBERG <wl@gnu.org>
2715 * src/libs/libgroff/make-uniuni: New script to generate uniuni.cpp.
2717 * src/libs/libgroff/uniuni.cpp: Regenerated, using data from Unicode
2721 * src/utils/afmtodit/make-afmtodit-tables: New script to generate
2724 * src/utils/afmtodit/afmtodit.tables: New file, representing Unicode
2727 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
2728 %AGL_to_unicode): Removed. Replace it with a tag.
2730 * src/utils/afmtodit/Makefile.sub (afmtodit): Adjust sed expression
2731 to replace tag with actual file contents.
2733 2005-12-08 Werner LEMBERG <wl@gnu.org>
2735 The change 2005-06-20 can indeed cause problems, so we follow the
2736 advice by using marks.
2738 * font/devps/prologue.ps (PBEGIN): Use `mark'.
2739 (PEND): Use `cleartomark'.
2741 2005-12-07 Michail Vidiassov <master@iaas.msu.ru>
2743 * src/utils/afmtodit.pl: Fix kerning output to avoid warnings for
2744 glyphs which have kern values but aren't handled (glyph variants,
2747 2005-12-02 Werner LEMBERG <wl@gnu.org>
2749 * src/devices/grops/ps.cpp (ps_printer::get_subfont): Use correct
2750 subfont index. Reported by Michail Vidiassov <master@iaas.msu.ru>.
2752 2005-11-28 Gaius Mulley <gaius@glam.ac.uk>
2754 * doc/Makefile.in: Separate rule for webpage.html so that extra
2755 command line options can be passed to grohtml.
2756 * doc/groff.css: Change all margins to 0%.
2757 * doc/webpage.ms: Now use new macros ALN, LNS, and LNE so that left
2758 navigation is exploited. Also update webpage to contain new
2759 sections on licenses, mailing lists, cvs/ftp access, groff
2760 dependencies, and bug reports.
2761 * tmac/groff_www.man: Document the new macros ALN, LNS, and LNE.
2762 * tmac/www.tmac: Implement the new macros ALN, LNS, and LNE.
2764 2005-11-25 Gaius Mulley <gaius@glam.ac.uk>
2766 * src/devices/grohtml/post-html.cpp
2767 (html_printer::do_file_components): Add fputs calls to emit the
2768 head contents and shut down the head tag whenever a new file
2769 component is generated.
2771 2005-11-22 Gaius Mulley <gaius@glam.ac.uk>
2773 * src/devices/grohtml/post-html.cpp (html_printer::flush_page): Add
2774 call to flush_text to flush any outstanding html tags on the
2777 2005-11-18 Werner LEMBERG <wl@gnu.org>
2779 * aclocal.m4 (GROFF_MAKEINFO): Use `groff.info' in tests.
2780 Announce makeinfo version.
2781 * configure: Regenerated.
2783 2005-11-18 Mike Frysinger <vapier@gentoo.org>
2785 * Makefile.in: Declare proper dependencies between make targets.
2787 * doc/Makefile.in: Rename groff info page to `groff.info'.
2788 * doc/Makefile.sub: Likewise.
2789 * doc/groff.texinfo: Likewise.
2791 2005-11-17 Peter O'Gorman <mlists@thewrittenword.com>
2793 * src/utils/pfbtops/pfbtops.c, src/utils/xtotroff/xtotroff.c: Move
2794 definition of __GETOPT_PREFIX to the beginning of file to ensure
2795 that it is defined even on platforms where getopt.h is already
2796 included by other header files.
2798 2005-11-10 Gaius Mulley <gaius@glam.ac.uk>
2800 * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
2801 Reset font to NULL to ensure that a font block is recreated during
2804 2005-11-04 Werner LEMBERG <wl@gnu.org>
2806 * aclocal.m4 (GROFF_MAKEINFO): Fix sed expression.
2807 * configure: Regenerated.
2809 2005-10-27 Werner LEMBERG <wl@gnu.org>
2811 * aclocal.m4 (GROFF_MAKEINFO): New function for checking whether
2812 makeinfo 4.8 or newer is available.
2813 * configure.ac: Call GROFF_MAKEINFO.
2814 * configure: Regenerated.
2816 * Makefile.in (MAKEINFO): Use autoconf variable.
2817 (MDEFINES): Add MAKEINFO.
2819 * doc/Makefile.in (MAKEINFO): Use autoconf variable.
2820 * doc/Makefile.sub (MAKEINFO): Remove.
2822 2005-10-26 Werner LEMBERG <wl@gnu.org>
2824 * REVISION: Set to 3.
2826 2005-10-17 Werner LEMBERG <wl@gnu.org>
2828 Mention $MANPAGER variable used with some `man' systems.
2830 * doc/webpage.ms, src/devices/grotty/grotty.man, NEWS: Updated.
2832 2005-09-13 Werner LEMBERG <wl@gnu.org>
2834 * tmac/hyphenex.us: New version (`ushyphex.tex' from ftp.dante.de).
2836 2005-09-04 Werner LEMBERG <wl@gnu.org>
2838 Version 1.19.2 released
2839 =======================
2841 * tmac/groff_ms.man, doc/groff.texinfo: Synchronize.
2843 * doc/webpage.ms: Updated.
2845 * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
2847 2005-09-04 Jörgen Grahn <jgrahn@algonet.se>
2849 * tmac/groff_ms.man: Document `PO' better.
2851 2005-09-03 Werner LEMBERG <wl@gnu.org>
2853 * NEWS: Document grotty changes.
2855 2005-09-01 Keith Marshall <keith.d.marshall@ntlworld.com>
2857 Backward compatibility support for `man' program.
2859 * tmac/an-old.tmac (LL): Initialize it to respect prior LL register
2860 assignment, prior `.ll' request and then package defaults, in this
2861 specified order of decreasing priority.
2863 * tmac/groff_man.man, doc/groff.texinfo (Man options): Document
2864 altered `LL' register initialization priorities.
2866 2005-08-29 Gary W. Swearingen <garys@opusnet.com>
2868 * tmac/groff_mdoc.man: Go into more details how the `AUTHORS'
2869 section should look like.
2871 2005-08-29 Werner LEMBERG <wl@gnu.org>
2873 * tmac/groff_mdoc.man: The month's name in a call to .Dd shouldn't
2876 2005-08-27 Bernd Warken
2878 * tmac/groff_man.man: Add man(7) too SEE ALSO and more minor
2881 2005-08-11 Bernd Warken
2883 * tmac/www.tmac (URL, MTO): Handle empty \\$1 better.
2885 2005-08-09 Bernd Warken
2887 * tmac/www.tmac (URL, MTO): Use bold series if color support is
2890 2005-08-02 Bernd Warken
2892 * doc/Makefile.sub (uninstall_sub): Use --remove, not --delete
2893 as argument to $(INSTALL_INFO). The latter isn't portable.
2894 Remove $(HTMLEXAMPLEFILES) too.
2896 * Makefile.in (uninstall_dirs): Remove $(datadir)/doc/groff and
2898 Suppress warning messages and return always true.
2900 * tmac/Makefile.sub (uninstall_sub): Remove www.tmac too.
2902 2005-07-02 Bernd Warken
2904 * src/devices/xditview/gxditview.man: Change many `.I' to `.B'.
2905 * man/groff_out.man: More markup and minor improvements.
2906 * src/roff/groff/groff.man: Minor improvements.
2908 2005-06-28 Werner LEMBERG <wl@gnu.org>
2910 * ChangeLog: Split off older entries into...
2911 * ChangeLog.115 ChangeLog.116, ChangeLog.117, ChangeLog.118: New
2914 2005-06-26 Bernd Warken
2916 * src/devices/xditview/gxditview.man: More minor fixes.
2918 2005-06-24 Werner LEMBERG <wl@gnu.org>
2920 * src/preproc/pic/troff.cpp (troff_output::set_fill,
2921 troff_output::set_color, troff_output::reset_color): Use .bcolor and
2922 .fcolor instead of \m and \M, respectively.
2924 2005-06-23 Bernd Warken
2926 * src/devices/xditview/gxditview.man: More minor fixes.
2927 * README: Formatting issues.
2928 Mention some problems with Debian.
2930 2005-06-23 Bernd Warken
2932 * src/devices/xditview/gxditview.man: Revised and improved.
2934 2005-06-22 Werner LEMBERG <wl@gnu.org>
2936 Another round in fixing getopt problems. Hopefully the last one!
2937 This time we use the getopt stuff from gnulib and define a prefix
2938 unconditionally so that there are no collisions with any other
2939 getopt implementations. This is a slight waste of space in case
2940 we already use a GNU getopt implementation, but on
2941 the other hand it really simplifies life.
2943 * src/include/getopt.h: Use gnulib version.
2945 * src/include/getopt_int.h: Use gnulib version.
2947 * src/include/groff-getopt.h: Removed. Obsolete now.
2949 * src/include/lib.h: Regarding getopt, don't handle any platform
2950 specially; just include getopt.h.
2951 (__GETOPT_PREFIX): Define (before getopt.h).
2953 * src/include/Makefile.sub (HDRS): Updated.
2955 * src/libs/libgroff/getopt1.c, src/libs/libgroff/getopt.c: Use
2958 * src/libs/libgroff/Makefile.sub (EXTRA_CFLAGS): Set
2961 * src/utils/pfbtops/pfbtops.c, src/utils/xtotroff/xtotroff.c
2962 (__GETOPT_PREFIX): Define (before getopt.h).
2964 2005-06-21 Werner LEMBERG <wl@gnu.org>
2966 * src/include/lib.h: Provide a fix for Mac OS X to not include
2969 2005-06-20 Denis M. Wilson <dmw@oxytropis.plus.com>
2971 * font/devps/prologue.ps (EP): Dont' use `bind'. Reason: Using
2972 `bind' to define a procedure which contains `showpage' means that an
2973 invocation of `showpage' may execute wrongly (the exact effect
2974 depending on the interpreter). Not usually a problem except under
2975 transformations, such as combining pages.
2976 (PEND): Don't call `clear'. Reason: Using `clear' in the definition
2977 of /PEND means that stack underflow will occur if the stack is
2978 deliberately non-empty before document inclusion. If included
2979 files are found to be generally badly behaved, we could replace the
2980 `clear' with `mark' in /PBEGIN and `cleartomark' in /PEND (I've
2981 never found this necessary).
2983 2005-06-20 Jörgen Grahn <jgrahn@algonet.se>
2985 * src/preproc/soelim/soelim.cpp (do_file): Append trailing zero
2986 earlier to get correct error message.
2988 2005-06-16 Bernd Warken
2989 * src/roff/nroff/nroff.sh: Add support for iso-8859-15.
2991 2005-06-15 Werner LEMBERG <wl@gnu.org>
2993 Another try to update getopt files. This time we add a dummy
2994 gettext.h file to satisfy the dependency.
2996 * src/include/getopt.h, src/libs/libgroff/getopt.c,
2997 src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
2999 * src/include/getopt_int.h: New file (from GNU libc CVS).
3001 * src/include/gettext.h: Dummy file which just defines a gettext()
3004 * src/include/groff-getopt.h: Updated.
3006 * src/include/Makefile.sub (HDRS): Add getopt_int.h and gettext.h.
3009 * src/libs/libdriver/input.cpp (IntArray): Remove superfluous
3010 `const' keywords in return value.
3012 * src/preproc/html/pushback.cpp (pushBackBuffer::~pushBackBuffer):
3013 Remove redundant variable `old'.
3014 (pushBackBuffer::skipToNewline): Remove redundant variable `ch'.
3016 * src/preproc/tbl/main.cpp (process_table): Remove redundant
3020 Fix more friend name injection problems since modern C++ compilers
3021 fail otherwise. We simply provide (global) declarations for all
3022 functions declared as friends. This is not really necessary but
3025 * src/preproc/eqn/lex.cpp: Provide declarations for get_char,
3026 peek_char, and get_location.
3028 * src/preproc/refer/ref.h: Provide declarations for
3029 compare_reference, same_reference, same_year, same_date,
3030 same_author_last_name, and same_author_name.
3032 * src/roff/troff/div.h: Provide declarations for do_divert and
3035 * src/roff/troff/env.h: Provide declarations for title_length,
3036 space_size, fill, no_fill, adjust, no_adjust, center, right_justify,
3037 vertical_spacing, post_vertical_spacing, line_spacing, line_length,
3038 indent, temporary_indent, do_underline, do_input_trap, set_tabs,
3039 margin_character, no_number, number_lines, leader_character,
3040 tab_character, hyphenate_request, no_hyphenate,
3041 hyphen_line_max_request, hyphenation_space_request,
3042 hyphenation_margin_request, line_width, tabs_save, tabs_restore,
3043 line_tabs_request, widow_control_request, and do_divert.
3045 * src/roff/troff/input.cpp: Provide declaration for chop_macro.
3047 * src/roff/troff/node.cpp: Provide declarations for class
3049 Provide declaration for make_tfont.
3051 2005-05-29 Werner LEMBERG <wl@gnu.org>
3053 * doc/fdl.texi: Updated to version 1.2. Reported by Bernd Warken.
3055 2005-05-28 Werner LEMBERG <wl@gnu.org>
3057 * src/devices/grolbp/lbp.cpp, src/devices/grolbp/lbp.h: Remove
3058 redundant semicolons.
3060 * src/preproc/eqn/Makefile.sub, src/preproc/html/Makefile.sub,
3061 src/preproc/soelim/Makefile.sub, src/preproc/tbl/Makefile.sub:
3062 Define `MLIB'. Some compilers need this for linking with libgroff.
3064 2005-05-27 Werner LEMBERG <wl@gnu.org>
3066 * MANIFEST, README, doc/webpage.ms: Updated.
3068 2005-05-26 Werner LEMBERG <wl@gnu.org>
3070 * All affected files: Update postal address of FSF.
3072 2005-05-25 Keith Marshall <keith.d.marshall@ntlworld.com>
3075 * README: More fixes.
3077 * README.CVS: Removed. Its contents is now part of the README file.
3079 2005-05-21 Werner LEMBERG <wl@gnu.org>
3081 * README: Updated. Based on a patch from Bernd Warken.
3083 2005-05-16 Keith Marshall <keith.d.marshall@ntlworld.com>
3085 Miscellaneous script portability enhancements.
3087 * aclocal.m4: (GROFF_CSH_HACK): Add space in shebang prototype for
3088 generated conftest.sh script, conforming to portability
3089 recommendation in autoconf docs.
3090 * configure: Likewise, for code generated by GROFF_CSH_HACK.
3091 * contrib/eqn2graph/eqn2graph.sh: Add space in shebang, conforming
3092 to portability recommendation in autoconf docs.
3093 * contrib/grap2graph/grap2graph.sh: Likewise.
3094 * contrib/pic2graph/pic2graph.sh: Likewise.
3095 * font/devps/generate/afmname: Likewise.
3096 * src/devices/xditview/ad2c: Likewise.
3097 * src/preproc/eqn/neqn.sh: Likewise.
3098 * src/roff/grog/grog.pl: Likewise.
3099 * src/roff/grog/grog.sh: Likewise.
3100 * src/roff/nroff/nroff.sh: Likewise.
3101 * PROBLEMS: Likewise, in embedded script examples.
3103 2005-05-16 Keith Marshall <keith.d.marshall@ntlworld.com>
3105 Improve portability of `pdfroff' shell script.
3107 * arch/misc/shdeps.sh: Add space in shebang, conforming to
3108 portability guidelines in `autoconf' docs.
3109 (PATH_SEARCH_SETUP): New substitution; emits PATH_SEPARATOR
3110 initialization code. Used by contrib/pdfmark/pdfroff.sh's
3111 `searchpath' function.
3113 2005-05-14 Werner LEMBERG <wl@gnu.org>
3115 * contrib/pic2graph/pic2graph.sh, contrib/graph2graph.sh,
3116 contrib/eqn2graph.sh: Add option `-trim' to `convert' which is
3117 needed for newer ImageMagick versions.
3119 2005-05-07 Werner LEMBERG <wl@gnu.org>
3121 * src/preproc/refer/refer.man: Many small typographic fixes.
3123 2005-05-06 Jeff Conrad <jeff_conrad@msn.com>
3125 * src/devices/grohtml/post-html.cpp (assert_state::~assert_state):
3126 Use `char *' cast for a_delete.
3128 2005-05-03 Werner LEMBERG <wl@gnu.org>
3130 * src/libs/libgroff/maxpathname.cpp: Include stdlib.h.
3131 src/libs/libgroff/relocate.cpp: Use path_name_max everywhere.
3133 2005-05-03 Jeff Conrad <jeff_conrad@msn.com>
3135 * src/devices/grohtml/post-html.cpp: Use casts to `char *' if using
3136 `a_delete' for `const char *'.
3138 2005-05-03 Werner LEMBERG <wl@gnu.org>
3140 * src/devices/grohtml/post-html.cpp,
3141 src/devices/grohtml/html-table.cpp,
3142 src/devices/grohtml/html-text.cpp, src/devices/grohtml/output.cpp:
3143 Replace malloc/free with new/delete/a_delete.
3145 * src/devices/grolbp/lbp.h: Remove superfluous semicolons which
3146 are prohibited with ANSI C++.
3147 (lbpprintf, vdmprintf): Remove useless `inline' keyword (since the
3148 function has a variable number of arguments).
3150 * src/preproc/grn/main.cpp (doinput): Change return type to `int'.
3151 Simplify function and update all callers.
3153 2005-05-02 Werner LEMBERG <wl@gnu.org>
3155 Undo getopt changes from 2005-04-30. We don't want a dependency
3158 * src/include/getopt_int.h: Removed.
3160 * src/include/getopt.h, src/include/groff-getopt.h,
3161 src/include/Makefile.sub, src/libs/libgroff/getopt.c,
3162 src/libs/libgroff/getopt1.c: Revert to previous version.
3165 * src/include/nonposix.h (access) [_MSC_VER]: New macro.
3167 * src/include/posix.h (F_OK): Define conditionally.
3169 * src/devices/grotty/tty.cpp (tty_printer::make_underline): Use
3170 different variable name in second `for' loop to avoid MSVC compiler
3173 2005-04-30 Werner LEMBERG <wl@gnu.org>
3175 AC_TYPE_SIGNAL from current autoconf can fail if CC=g++.
3177 * aclocal.m4 (GROFF_TYPE_SIGNAL): New function.
3178 * configure.ac: Use GROFF_TYPE_SIGNAL, not AC_TYPE_SIGNAL.
3179 * configure, src/include/config.hin: Regenerated.
3181 * PROBLEMS: Updated.
3184 Update getopt files.
3186 * src/include/getopt.h, src/libs/libgroff/getopt.c,
3187 src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
3189 * src/include/getopt_int.h: New file (from GNU libc CVS).
3191 * src/include/groff-getopt.h: Updated.
3193 * src/include/Makefile.sub (HDRS): Add getopt_int.h.
3196 * font/devutf8/NOTES: Updated.
3198 2005-04-28 Werner LEMBERG <wl@gnu.org>
3200 Bug fix for Win32 relocatable code. Based on a patch from Keith
3203 * src/libs/libgroff/maxpathname.cpp (PATH_MAX): Test for `_MAX_PATH'
3206 * src/libs/libgroff/relocate.c (DEBUG): Define it conditionally.
3207 (searchpath) [_WIN32]: Use `_fullpath', not `realpath'.
3209 2005-04-28 Keith Marshall <keith.d.marshall@ntlworld.com>
3211 Correct `gnu.eps' handling for build from distribution tarball, with
3212 separate source and build directories.
3214 * doc/Makefile.sub: (examples.stamp): New target; forces copy of
3215 grnexmpl.g, groff.css and gnu.eps from source to build directory;
3216 generate gnu.eps from gnu.xpm if required; touch examples.stamp.
3217 (prepare_examples): Make it depend on examples.stamp.
3218 (CLEANADD): Add examples.stamp.
3220 2005-04-27 Werner LEMBERG <wl@gnu.org>
3224 position: `(' position `)'
3228 * src/preproc/pic/pic.y (position, position_not_place): Handle
3229 additional parentheses.
3231 * doc/pic.ms: Updated.
3233 2005-04-23 Larry Jones <lawrence.jones@ugs.com>
3235 * src/utils/xtotroff/xtotroff.c (MapFont): Fix variable declaration.
3237 2005-04-18 Werner LEMBERG <wl@gnu.org>
3239 * src/roff/groff/pipeline.c: Don't include ctype.h.
3241 2005-04-13 Werner LEMBERG <wl@gnu.org>
3243 * src/roff/nroff/nroff.man: Document option `-M'.
3245 2005-04-13 Bruce Lilly <blilly@erols.com>
3247 * src/roff/nroff/nroff.sh: Make the script accept option `-M'.
3249 2005-04-01 Kees Zeelenberg <kzlg@users.sourceforge.net>
3250 Werner LEMBERG <wl@gnu.org>
3252 Add binary relocation support for Windows platforms.
3254 * src/include/Makefile.sub (defs.h): Add `INSTALLPATH'.
3256 * src/include/relocate.h, src/libs/libgroff/relocate.cpp: New files.
3258 * src/libs/libgroff/searchpath.cpp: Handle `relocate'.
3259 (search_path::search_path, search_path::open_file_cautious): Use
3262 * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
3263 src/include/Makefile.sub (HDRS): Updated.
3265 2005-04-01 Werner LEMBERG <wl@gnu.org>
3267 * src/devices/grohtml/post-html.cpp: Don't use strdup/free but
3270 * src/libs/libgroff/font.cpp: Replace strdup with strsave.
3272 * src/libs/libgroff/maxfilename.cpp: Don't include limits.h since
3273 lib.h already does it.
3275 * src/libs/libgroff/maxpathname.cpp: New file, defining
3278 * src/include/lib.h: Add prototype for path_name_max.
3280 * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS): Updated.
3282 * src/include/nonposix.h (PATH_EXT): New macro.
3284 2005-03-28 Werner LEMBERG <wl@gnu.org>
3286 Add support for double- and zero-width characters in grotty.
3288 * src/devices/grotty/tty.cpp (glyph): Add width.
3289 (tty_printer::make_underline, tty_printer::make_bold,
3290 tty_printer::add_character): Add parameter to pass character width.
3292 (tty_printer::end_page): Increase hpos by actual character width.
3294 * font/devutf8/R.proto: Specify zero width for non-spacing
3297 * tmac/unicode.tmac: Remove definitions for non-spacing entities.
3299 * Makefile.comm (extraclean): Remove more junk files.
3301 2005-03-25 Werner LEMBERG <wl@gnu.org>
3303 * configure.ac: Undo change from 2005-03-24.
3304 * configure: Regenerated.
3306 2005-03-24 Werner LEMBERG <wl@gnu.org>
3308 * Makefile.in (NOMAKEDIRS): Add contrib/gdiffmk/tests.
3309 (dist): Search Makefile while descending into $(EXTRADIRS).
3311 * doc/Makefile.in (.PHONY): Add.
3312 (clean): Don't remove *.png and *.eps.
3314 (realclean): Remove *.png and *.eps.
3315 (extraclean): Depend on distclean.
3317 * configure.ac: Add copyright.
3318 Handle contrib/pdfmark/Makefile.
3320 * configure: Regenerated.
3322 2005-03-18 Larry Kollar <kollar@alltel.net>
3324 Add numbered and definition lists to www.tmac.
3326 * tmac/www.tmac (www-ul-level1, www-ul-level2, www-ul-level3,
3327 www-ol-level1, www-ol-level2, www-ol-level3, www-ol-tmp): New
3328 auxiliary string registers.
3329 (www-ul-level, www-ol-level, www-dl-level, www-ol-ctr1, www-ol-ctr2,
3330 www-ol-ctr3, www-dl-shift): New auxiliary number registers.
3331 (www-level): Removed.
3332 (www-level1, www-level2, www-level3): Initialize to empty.
3333 (www-level0, www-level4, www-level5, www-level6, www-level7,
3334 www-level8, www-level9): New string registers.
3335 (www-push-li, www-pop-li): New macros.
3336 (www-push-level, www-pop-level): Renamed to...
3337 (www-push-ul-level, www-pop-ul-level): This.
3339 (www-push-ol-level, www-pop-ol-level): New macros.
3340 (ULS, ULE): Updated.
3341 (OLS, OLE, DLS, DLE): New user macros.
3342 (LI): Removed. It is aliased to one of...
3343 (www-li-ul, www-li-ol, www-li-dl): New macros.
3345 * tmac/groff_www.man: Document new macros.
3349 2005-03-18 Werner LEMBERG <wl@gnu.org>
3351 * tmac/doc-common (doc-operating-system-NetBSD-2.0.1,
3352 doc-operating-system-NetBSD-2.0.2): New strings.
3354 * tmac/groff_mdoc.man: Updated.
3356 2005-03-17 Werner LEMBERG <wl@gnu.org>
3358 * doc/Makefile.sub (CLEANADD): Add `groff.html'.
3360 2005-03-17 Werner LEMBERG <wl@gnu.org>
3362 * src/libs/libgroff/hypot.c: Renamed to...
3363 * src/libs/libgroff/hypot.cpp: This. Updated to C++.
3365 * src/libs/libgroff/Makefile.sub (CCSRCS, CSRCS): Updated.
3367 * src/include/lib.h: Updated.
3369 2005-03-16 Werner LEMBERG <wl@gnu.org>
3371 Add workaround for broken hypot() on Interix.
3373 * src/libs/libgroff/hypot.c: New wrapper file for `hypot'.
3375 * src/libs/libgroff/Makefile.sub (OBJS): Add `hypot.o'.
3376 (CSRCS): Add `hypot.c'.
3378 * src/include/lib.h: Declare `groff_hypot'.
3380 * src/preproc/grn/hgraph.cpp: Don't declare `hypot'.
3383 * src/preproc/pic/pic.h: Don't declare `hypot'.
3385 * src/preproc/pic/object.cpp (hypot): Use `groff_hypot'.
3387 2005-03-15 Gaius Mulley <gaius@glam.ac.uk>
3389 * src/devices/grohtml/post-html.cpp
3390 (html_printer::lookahead_for_tables): End .ce properly to avoid a
3393 2005-03-15 Werner LEMBERG <wl@gnu.org>
3395 makeinfo 4.8 doesn't produce good HTML output from groff.texinfo.
3397 * doc/fixinfo.sh: New script to postprocess makeinfo's HTML output.
3399 * doc/Makefile.in (.texinfo.html): Call fixinfo.sh.
3401 2005-03-14 Werner LEMBERG <wl@gnu.org>
3403 Add Cyrillic support to devutf8 and devhtml.
3405 * font/devutf8/R.proto, font/devhtml/R.proto: Add Cyrillic blocks.
3407 * tmac/unicode.tmac: New file.
3409 * tmac/tty.tmac: Include unicode.tmac if device is utf8.
3411 * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac.
3415 2005-03-02 Keith Marshall <keith.d.marshall@ntlworld.com>
3417 * src/libs/libdriver/printer.cpp (check_for_output_error): New
3418 function. It has been introduced to catch peculiar error contexts
3419 on MS-Windows platforms.
3421 2005-02-28 Werner LEMBERG <wl@gnu.org>
3423 * src/roff/troff/input.cpp (string_iterator::fill): Protect against
3426 * tmac/papersize.tmac: Convert `paper' string contents to lowercase.
3428 * configure: Regenerated.
3432 2005-02-28 Keith Marshall <keith.d.marshall@ntlworld.com>
3434 Integrate `pdfmark' into normal groff build system;
3435 install macro `pdfmark' packages, build and install `pdfroff',
3436 and PDF format documentation.
3438 * Makefile.comm: Add PDFDOCDIR.
3440 * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS,
3441 pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables.
3442 (unstall_dirs): Add pdfdocdir.
3444 * aclocal.m4: (GROFF_GHOSTSCRIPT_PREFS): New function; support
3445 `--with-alt-gs' option, set ALT_GHOSTSCRIPT_PROGS.
3446 (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of
3447 GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT.
3448 (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up.
3449 (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option,
3451 (GROFF_AWK_PATH): New function; support `--with-awk' option, force
3452 use of GROFF_AWK_PREFS.
3453 (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH
3454 and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc.
3456 * configure.ac: Add AC_PREREQ(2.59), GROFF_PDFDOC_PROGRAMS.
3457 Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and
3458 also by modified GROFF_HTML_PROGRAMS).
3460 2005-02-27 Gaius Mulley <gaius@glam.ac.uk>
3462 * src/devices/grohtml/html-text.cpp (html_text::do_pre): Preserve
3464 (html_text::done_para): Unset `start_space'.
3465 (html_text::remove_para_align): Call `retrieve_para_space' for the
3468 * src/devices/grohtml/post-html.cpp (html_printer::emit_raw): Unset
3470 (html_printer::do_check_center): Emit vertical space if necessary.
3472 * src/roff/troff/env.cpp (environment_switch): Preserve
3473 `seen_space', `seen_eol', and `suppress_next_eol' while switching
3476 * src/roff/troff/node.cpp (suppress_node::suppress_node): Set
3479 2005-02-20 Werner LEMBERG <wl@gnu.org>
3481 * src/preproc/eqn/eqn.man, NEWS: Document various extensions of
3484 2005-02-17 Werner LEMBERG <wl@gnu.org>
3486 * doc/pic.ms, man/groff.man: Fix typos.
3488 * doc/groff.texinfo: Fix typos.
3489 (\LEmacro): Get proper mathematical spacing.
3491 2005-02-16 Werner LEMBERG <wl@gnu.org>
3493 * aclocal.m4 (GROFF_APPRESDIR_CHECK): Improve warning message.
3494 * configure: Regenerated with autoconf 2.59b.
3496 2005-02-16 Gaius Mulley <gaius@glam.ac.uk>
3498 * src/devices/grohtml/post-html.cpp (html_printer::is_line_start,
3499 html_printer::start_font): Fix handling of preformatted text.
3501 2005-02-15 Gaius Mulley <gaius@glam.ac.uk>
3503 These patches modify the indentation implementation to use `<p
3504 style=margin-left: n%>'. Many thanks to Peter and Larry for
3505 suggesting this solution. Grohtml only uses tables for `.IP' and
3506 related tags when the first operand has a short width.
3508 Similarly, they modify all vertical space code. By default, grohtml
3509 sets up a style sheet which uses no vertical space between `table',
3510 `pre', and `p' tags. It forces spaces when it needs them using
3511 `style="margin-top: 1em"'.
3513 * src/devices/grohtml/html-table.cpp: Include `html-text.h'.
3514 (html_table::emit_table_header, html_table::emit_new_row):
3516 (html_table::set_space): New function.
3517 (html_indent::html_indent): Don't set `is_used'.
3518 (html_indent::begin): Rewritten.
3519 (html_indent::end): Remove code in function.
3521 * src/devices/grohtml/html-table.h: Updated.
3522 (html_table): Make `out' public.
3524 * src/devices/grohtml/html-text.cpp (html_text::html_text):
3525 Initialize `start_space' with FALSE.
3526 (html_text::end_tag) <P_TAG, PRE_TAG>: Updated.
3527 (html_text::issue_tag): Add argument to handle space style.
3528 (html_text::start_tag) <P_TAG, PRE_TAG>: Updated.
3529 (html_text::flush_text): Don't set `start_space'.
3530 (html_text::push_para): Don't set `p->really_issued'.
3531 (html_text::do_emittext): Updated.
3532 (html_text::do_para): Add paremeter to handle space.
3534 (html_text::retrieve_para_space): New function.
3536 * src/devices/grohtml/html-text.h (STYLE_VERTICAL_SPACE): New macro.
3537 (tag_definition): Remove `really_issued'.
3538 (html_text): Updated.
3540 * src/devices/grohtml/post-html.cpp (html_printer): Add variables
3541 `current_column' and `row_space'.
3543 (html_printer::emit_raw, html_printer::write_header,
3544 html_printer::do_indent, html_printer::do_check_center,
3545 html_printer::do_tab_ts): Handle vertical space.
3546 (html_printer:do_tab_te, html_printer::do_end_para): Call
3547 `remove_para_space'.
3548 (html_printer::do_col): Rewritten.
3549 (html_printer::flush_globs): Remove debugging code.
3550 (html_printer::is_line_start): New function.
3551 (html_printer::start_font): Use `is_line_start'.
3552 (html_printer::writeHeadMetaStyle): New function.
3553 (html_printer::do_file_components, html_printer::~html_printer):
3554 Call `writeHeadMetaStyle'.
3556 * tmac/www.tmac (www-handle-percent): New macro.
3557 (MPIMG): Handle percent values for width and height parameters.
3560 * tmac/groff_www.man: Updated.
3562 2005-02-14 Werner LEMBERG <wl@gnu.org>
3564 * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
3565 $psname and $italic_angle.
3566 Immediately restart file input loops if `split' returns an empty
3569 2005-02-13 Michail Vidiassov <master@iaas.msu.ru>
3570 Werner LEMBERG <wl@gnu.org>
3572 Update afmtodit to better support Unicode (Michail).
3573 Update afmtodit to use Perl 5 syntax (Werner).
3575 * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
3577 Decorate variables with `my' where necessary.
3578 Use `defined' where necessary to avoid warnings.
3579 Don't use `do' for subroutine calls.
3580 Other minor syntax updates.
3581 Check for both `uXXXX[X[X]]' and `uniXXXX'.
3582 Handle glyph variants properly.
3583 (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
3586 * src/utils/afmtodit/afmtodit.man: Updated.
3588 2005-02-13 Werner LEMBERG <wl@gnu.org>
3590 Make groff.texinfo work with texinfo 4.8.
3592 * doc/groff.texinfo (@Var): Use @r and @slanted.
3593 (@defdummy, @Def*): Use @c to avoid empty lines.
3594 (\angles): Replaced with...
3595 (\Langlemacro, \Ranglemacro): New TeX macros.
3596 (@Langlemacro, @Ranglemacro): New variables defined with @set.
3597 (@angles): Use @Langlemacro and @Ranglemacro.
3598 (\LE): Replaced with...
3599 (\LEmacro): New TeX macro.
3600 (@LEmacro): New variable defined with @set.
3601 (@LE): Use @LEmacro.
3602 (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
3603 variables defined with @set.
3604 (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
3605 (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
3608 Other minor updates.
3610 * doc/texinfo.tex: Update to texinfo version 4.8.
3612 * README.CVS: Updated.
3614 2005-02-09 Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
3616 * doc/groff.texinfo (ms Document Control Registers): Document `HY'
3617 and `FAM' registers.
3619 2005-02-05 Werner LEMBERG <wl@gnu.org>
3621 * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
3622 tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
3625 2005-02-01 Werner LEMBERG <wl@gnu.org>
3627 * src/roff/groff/groff.man: Add information about paper size.
3629 2005-01-25 Werner LEMBERG <wl@gnu.org>
3631 * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale. From
3634 2005-01-22 Ruslan Ermilov <ru@FreeBSD.org>
3636 * tmac/doc.tmac (Sm): Improved. It didn't work properly in many
3638 (Re): Emit a warning if called without `.Rs'.
3639 (doc-finish-reference): Use parameter for decreasing
3640 `doc-reference-count'.
3641 (doc-print-reference): Pass specific count parameters to
3642 `doc-finish-reference'.
3644 2005-01-21 Werner LEMBERG <wl@gnu.org>
3646 * src/libs/libdriver/input.cpp (delete_current_env, do_file):
3647 Reset pointers to zero after deallocation. This fixes a crash
3648 if a driver is called with multiple input files. Reported by
3649 Ken Chilton <ken@chiltonfamily.org>.
3651 * src/devices/grops/grops.man: Add more info on DSC.
3653 2005-01-17 Ruslan Ermilov <ru@FreeBSD.org>
3655 * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
3658 2005-01-17 Werner LEMBERG <wl@gnu.org>
3660 * src/roff/troff/div.cpp (top_level_diversion::space): Protect
3661 against division by zero.
3663 2005-01-13 Ruslan Ermilov <ru@FreeBSD.org>
3665 * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
3667 2004-12-19 Werner LEMBERG <wl@gnu.org>
3669 * install-sh: New version; taken from texinfo CVS.
3671 2004-12-17 Werner LEMBERG <wl@gnu.org>
3673 * tmac/devtag.tmac: Protect against loading twice.
3674 Protect agains compatibility mode.
3675 * tmac/www.tmac: Protect against loading twice.
3676 Load `devtag.tmac' before switching off compatibility mode.
3677 * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
3679 2004-12-16 Mike Bianchi <mbianchi@Foveal.com>
3681 * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
3682 * configure: Updated.
3684 2004-12-15 Thomas Klausner <wiz@netbsd.org>
3686 * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
3688 2004-12-15 Werner LEMBERG <wl@gnu.org>
3690 Make `test-groff' work again -- previously, wrong paths have been
3691 used. Additionally, it can now be called from anywhere.
3693 * test-groff.in: Don't test for groff binary. This is no longer
3694 necessary since the proper paths are determined by `configure'.
3695 (EXEEXT): Removed. No longer used.
3696 (srcdir, builddir): Use values provided by the configure script.
3697 (XENVIRONMENT): Updated.
3701 2004-12-14 Gaius Mulley <gaius@glam.ac.uk>
3703 Make .tag and .taga work for all devices (but only grohtml actually
3706 * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
3707 (text_glob::is_br, page::add_tag, html_printer::troff_tag,
3708 html_printer::handle_assertion): Don't use hard-coded string
3710 (html_printer::lookahead_for_table): Reset `tbl' properly if
3712 (html_printer::devtag): New function, handling `devtag'.
3713 (html_printer::special): Don't handle `html-tag'.
3715 * src/include/printer.h, src/libs/libdriver/printer.cpp
3716 (printer::devtag): New virtual function.
3718 * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
3721 * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
3722 src/roff/troff/node.cpp: s/html-tag/devtag/.
3724 * src/roff/troff/input.cpp (tag, taga): Always call
3727 * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
3728 macros instead of HTML-TAG*.
3730 * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
3732 * tmac/www.tmac: Load devtag.tmac.
3733 Replace HTML-TAG* macros with DEVTAG* macros.
3734 (HTML, HTML-NS): Changed definitions.
3736 (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
3738 * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
3740 2004-12-10 Werner LEMBERG <wl@gnu.org>
3742 Import Mike's `gdiffmk' package.
3744 * contrib/gdiffmk/*: New files.
3745 * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
3748 2004-12-08 Werner LEMBERG <wl@gnu.org>
3750 Import Keith's `pdfmark' package. Integration is very preliminary.
3752 * contrib/pdfmark/*: New files.
3753 * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
3756 2004-12-07 Gaius Mulley <gaius@glam.ac.uk>
3758 Fix a bug with title handling in HTML.
3760 * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
3761 text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
3763 (html_printer::handle_tag_within_title): New function.
3764 (html_printer::do_title): Use it.
3766 * tmac/s.tmac (TL): Don't set `need_eo_tl'.
3767 (cov*tl-au-print): Emit `.eo.tl' tag.
3769 2004-12-05 Alejandro López-Valencia <dradul@etb.net.co>
3771 * man/groff_char.man: Minor imrovements.
3773 2004-12-04 Werner LEMBERG <wl@gnu.org>
3775 * src/preproc/eqn/eqn.man: Revised.
3777 2004-11-25 Werner LEMBERG <wl@gnu.org>
3779 * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
3783 Remove X_NOT_STDC_ENV conditional.
3784 (Version_string, program_name): New global variables.
3785 (groff_flag): Removed.
3787 (usage): Take a stream as argument.
3790 (main): Add `long_options' array for `--help' and `--version'.
3791 Make `-g' a dummy option.
3792 Handle `-v' and unknown options.
3793 Remove unused `position' variable.
3795 * src/utils/xtotroff/Makefile.sub (MAN1): Define.
3796 (XLIBS): Add LIBGROFF.
3798 * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
3801 * src/devices/xditview/Dvi.c (default_font_map): Split into three
3802 parts to avoid compiler warning.
3803 (resources): Don't initialize with `default_font_map'.
3804 (ClassInitialize): Initialize first element of `resources'.
3806 * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
3809 * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
3810 src/utils/pfbtops/pfbtops.man: Revised, updated.
3812 * configure.ac: Generate src/utils/xtotroff/Makefile.
3813 * configure: Regenerated.
3815 2004-11-24 Werner LEMBERG <wl@gnu.org>
3817 First fixes to get produce HTML.
3819 * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
3822 * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
3823 (HR, LI): Use `HTML</p>', not `HTML'.
3825 * doc/webpage.ms: Minor updates.
3827 2004-11-23 Larry Kollar <kollar@alltel.net>
3829 Add option -S grohtml to determine the file split level.
3831 * src/devices/grohtml/post-html.cpp (split_level): New global
3833 (html_header::determine_header_level): Use split_level.
3834 (main): Handle `-S' command line option.
3837 * src/preproc/html/pre-html.cpp (scanArguments): Updated.
3839 * src/devices/grohtml/grohtml.man: Document it.
3842 * NEWS: Document it.
3844 2004-11-23 Y T <doarhop@hotmail.com>
3846 * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
3847 the volume and number refer entries.
3849 2004-11-22 Werner LEMBERG <wl@gnu.org>
3851 * src/devices/grohtml/html-table.cpp
3852 (html_table::emit_table_header): Don't emit `cols' attribute which
3853 doesn't exist in HTML 4.0 and is thus invalid.
3855 * NEWS: More minor fixes and updates.
3857 2004-11-18 Werner LEMBERG <wl@gnu.org>
3859 * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
3860 (HTML</p>): Minor clean-up.
3862 * tmac/groff_www.man: Updated.
3864 * src/devices/grohtml/grohtml.man: Revised and updated.
3868 2004-11-18 Gaius Mulley <gaius@glam.ac.uk>
3870 * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
3871 Fix space insertion.
3872 (html_printer::do_links): Fix rules generation around automatic
3875 * tmac/www.tmac (LK): Use HTML-TAG-NS.
3877 No longer emit empty line for non-HTML devices.
3879 2004-11-17 Werner LEMBERG <wl@gnu.org>
3881 * doc/Makefile.in (prepare_examples, webpage.html): Handle
3884 * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
3885 prepare_examples, webpage.html): Handle `groff.css'.
3887 2004-11-15 Werner LEMBERG <wl@gnu.org>
3889 * NEWS, README, doc/webpage.ms: Updated.
3891 * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
3893 2004-10-30 Gaius Mulley <gaius@glam.ac.uk>
3895 * src/include/printer.h (printer): Remove virtual function
3897 Update all source files.
3899 * src/devices/grohtml/post-html.cpp (html_printer): New member
3900 function `round_width'.
3902 2004-10-20 Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
3904 * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
3905 column key letter suffix.
3907 2004-10-14 Werner LEMBERG <wl@gnu.org>
3909 * Makefile.in (check): Depend on `site.exp' and `docheck'.
3910 (docheck): Run dejagnu's `runtest' if it exists.
3911 (site.exp): Create dejagnu configuration file.
3913 * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
3915 2004-10-13 Werner LEMBERG <wl@gnu.org>
3917 * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
3918 src/devices/grohtml/post-html.cpp (make_val,
3919 html_printer::handle_state_assertion): Fix compiler warnings.
3921 * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
3922 (diversion::diversion): Fix order of initializers.
3924 * src/roff/troff/div.h: Don't include `mtsm.h'.
3926 * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
3927 (environment::environment): Fix order of initializers.
3928 (environment::make_tag, environment::construct_format_state): Fix
3931 * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
3932 (input_iterator::input_iterator, macro::macro): Fix order of
3935 * src/roff/troff/mtsm.cpp: Include only necessary header files.
3936 (state_set::add, state_set::val): Fix compiler warnings.
3938 * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
3939 (bool_value_state, int_value_state, units_value_state,
3940 string_value_state): Remove comma after last element which causes
3941 an error with g++ 3.3.3.
3943 * src/roff/troff/node.cpp: Include `stringclass.h'.
3944 (hline_node::hline_node, vline_node::vline_node,
3945 space_char_hmotion_node, left_italic_corrected_node): Fix compiler
3947 (zero_width_node::zero_width_node): Fix order of initializers.
3949 * src/roff/troff/node.h: Don't include `mtsm.h'.
3950 (hmotion_node): Fix compiler warnings.
3952 * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
3954 2004-10-12 Gaius Mulley <gaius@glam.ac.uk>
3956 * doc/groff.css: New file.
3958 * doc/webpage.ms: Use `groff.css'.
3961 * tmac/an-old.tmac (need_eo_h): New number register.
3962 (TH): Emit `.eo.tl' tag after title.
3963 (SH): Set `need_eo_h'.
3964 (an-trap): Handle `need_eo_h'.
3965 (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
3967 * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
3968 (TL): Always start diversion.
3970 (@AI): Always call `par@reset'.
3971 (@AB): Update code for -Thtml.
3972 (cov*tl-au-print): Handle -Thtml.
3973 (par@reset): Handle `need_eo_tl', `need_eo_h'.
3975 (@IT-html): Removed.
3976 (@SH): Set `need_eo_h' for -Thtml.
3977 (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
3979 (@NH): s/HTML-TAG/HTMl-TAG-NS/.
3980 Set `need_eo_h' for -Thtml.
3981 (@EQ, @EN): Don't handle -Thtml specially.
3982 (par@load-init): Don't handle -Thtml specially.
3984 * tmac/www.tmac (www:paraspace): New macro.
3985 (HTML-NS, HTML-TAG-NS): Use new `tag' request.
3986 (HTML</p>, HTML-TAG-NEXT): New macros.
3987 (HnE): Emit tag `.eo.h' instead of break.
3988 (HR): s/HTML-NS/HTML/.
3989 (www-end-nowhere): End diversion only if `www-html' not set.
3991 (ULS, ULE): s|HTML|HTML</p>|.
3992 (LI): Call `www:paraspace'.
3995 2004-10-11 Gaius Mulley <gaius@glam.ac.uk>
3997 * src/roff/troff/request.h (macro): Make `p' public.
3998 New variable `is_a_diversion'.
3999 New member function `is_diversion'.
4002 * src/devices/grohtml/html.h (simple_output): New member function
4005 * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
4006 computation of `total'.
4007 (tabs::check_init): New function.
4008 (html_table::emit_table_header): Emit style data.
4009 (html_table::insert_column): Improved.
4011 * src/devices/grohtml/html-table.h: Updated.
4013 * src/devices/grohtml/html-text.cpp (html_text::html_text):
4014 Initialize `start_space' with TRUE.
4015 (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
4017 (html_text::flush_text): Set `start_space' flag.
4018 (html_text::uses_indent, html_text::remove_para_space,
4019 html_text::get_alignment): New functions.
4020 (html_text::push_para): Updated.
4021 (html_text::do_para): Check for empty argument.
4022 Don't set `space_emitted'.
4023 (html_text::do_space, html_text::emit_space): Updated.
4025 * src/devices/grohtml/html-text.h (tag_definition): New variable
4027 (html_text): New member function `uses_indent', `remove_para_space',
4030 * src/devices/grohtml/output.cpp (simple_output::force_nl): New
4032 (simple_output:nl): Always emit `\n'.
4034 * src/devices/grohtml/post-html.cpp: Include `string.h'.
4035 (BASE_POINT_SIZE): Removed.
4036 (base_point_size, head_info): New global variables.
4037 (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
4039 (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
4041 (page::add_and_encode): Pass additional parameter for tag flag.
4042 (assert_pos): New structure.
4043 (assert_state): New class.
4044 (html_printer): Remove `indentation', `prev_indent'.
4045 Add variables `troff_indent', `device_indent', `temp_indent'.
4046 Add variables `seen_indent', `next_indent', `seen_pageoffset',
4047 `next_pageoffset', `seen_linelenght', `next_linelength',
4048 `seen_center', `next_center', `seen_space', `seen_break', `as'.
4049 Add member functions `do_check_center', `do_space', `do_head',
4050 `get_troff_indent', `restore_troff_indent', `handle_assertion',
4051 `handle_state_assertion', `do_end_para', `set_char_and_width'.
4052 Change argument to `do_fill' to `char *'.
4054 (html_printer::emit_raw): Call `shutdown_table'.
4056 (html_printer::do_center): Simplified.
4057 (html_printer::do_title): Improved.
4058 (html_printer::write_header): Emit one more newline.
4060 (html_printer::do_heading, html_printer::do_indent,
4061 html_printer::do_eol, html_printer::do_tab_ts,
4062 html_printer::do_tab, html_printer::do_tab0,
4063 html_printer::calc_po_in, html_printer::next_horiz_pos,
4064 html_printer::remove_courier_tabs,
4065 html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
4067 (html_printer::do_linelength, html_printer::do_pageoffset,
4068 html_printer::do_indentation, html_printer::do_tempindent,
4069 html_printer::do_tab_te): Simplified.
4070 (html_printer::do_pointsize): Check whether point size is really
4071 associated a `.tl' tag.
4072 (html_printer::do_break): Rewritten.
4073 (html_printer::troff_tag): Improved.
4074 (html_printer::flush_globs): Updated.
4075 (html_printer::lookahead_for_tables): Handle `is_br'.
4077 (html_printer::set_char): Check `sbuf_style.f'.
4078 (html_printer::write_navigation): Use string comparison.
4079 (html_printer::~html_printer): Emit `head_info'.
4080 (html_printer::special): Rewritten.
4081 (get_str, make_val): New functions.
4082 (main): New option `s' to set the base point size.
4084 * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
4086 2004-10-10 Gaius Mulley <gaius@glam.ac.uk>
4088 * src/roff/troff/node.cpp: New extern `debug_state'.
4089 Include `stringclass.h' and `mtsm.h'.
4090 Implement new classes and class members from `node.h'.
4091 (real_output_file): Make `fp' public.
4092 (troff_output_file): New variables `cur_div_level' and `tag_list'.
4093 Update constructors.
4094 (troff_output_file::really_print_line): Check whether we should push
4095 the current troff state and use the state at the start of the
4096 invocation of this diversion.
4097 (troff_output_file::add_to_tag_list): New member function.
4098 (node::add_char): Handle `glyph_comp_np'.
4100 * src/roff/troff/node.h: Include `mtsm.h'.
4101 (node): New variables `state', `push_state', `div_nest_level',
4102 `is_special'. Update constructors, all descendants.
4103 Pass additional argument to `add_char' member function.
4104 New virtual member functions `is_tag', `debug_node',
4105 `debug_node_list'. Update all descendants.
4106 (tag_node): New class for handling tags.
4107 (output_file): Add variable `state'.
4109 2004-10-09 Gaius Mulley <gaius@glam.ac.uk>
4111 * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
4112 providing a minimal troff state machine to emit meta tags for the
4113 post-grohtml device driver.
4115 * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
4118 2004-10-09 Werner LEMBERG <wl@gnu.org>
4120 * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
4122 2004-10-06 Gaius Mulley <gaius@glam.ac.uk>
4124 * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
4126 * src/roff/troff/div.h: Include `mtsm.h'.
4127 (diversion): New variables `any_chars_added', `needs_push',
4128 `saved_seen_break', `saved_seen_space', `saved_seen_eol',
4129 `saved_suppress_next_eol', `modified_tag'.
4130 New virtual member function `is_diversion'. Update all descendants.
4132 * src/roff/troff/div.cpp (diversion::diversion,
4133 macro_diversion::macro_diversion): Updated.
4134 (do_divert): Handle `seen_break', `seen_space', `seen_eol',
4135 `suppress_next_eol'.
4136 (top_level_diversion::space): Handle `curenv->seen_space'.
4137 (page_offset): Update tag handling.
4138 (space_request, blank_line, flush_output): Don't call `add_html_tag'.
4140 * src/roff/troff/env.h (environment): Make `tabs' public.
4141 Remove `ignore_next_eol', `emitted_node'.
4142 Update `output_line', `output'.
4143 New variables `seen_space', `seen_eol', `suppress_next_eol',
4145 New member functions `construct_state', `make_tag',
4146 `construct_format_state, `construct_new_line_state,
4148 Remove `add_html_tag', `make_html_tag'.
4150 * src/roff/troff/env.cpp: New externs `suppress_push',
4151 `get_diversion_state', `global_diverted_space'.
4152 (pending_output_line): New variable `was_centered'.
4153 Update constructor and all callers.
4154 (pending_output_line::output): Call `curenv->construct_format_state'.
4155 (environment::environment, environment::copy): Updated.
4156 (environment::output): Handle `was_centered'.
4157 (environment::add_char): Handle construct and diversion state.
4158 (environment::add_node): Handle construct state.
4159 (environment::newline): Handle `was_centered'.
4160 (environment::output_line): Updated.
4161 (environment::possibly_break_line): Updated.
4162 Update tag handling.
4163 (environment::add_html_tag): Replaced with...
4164 (environment::make_tag): New function.
4165 (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
4166 (environment::dump_troff_state): New debugging function.
4167 (environment::construct_state, environment::construct_format_state,
4168 environment::construct_new_line_state): New functions.
4169 (environment::do_break): Updated.
4170 Handle `global_diverted_space'.
4171 (environment::handle_tag): Update tag handling.
4172 (point_size, fill, do_break_request): Don't call `add_html_tag'.
4173 (no_fill): Don't call `add_html_tag'.
4174 Set `suppress_next_eol'.
4175 (center, right_justify, line_length, indent, temporary_indent,
4177 Update tag handling.
4179 * src/roff/troff/input.cpp: Don't include `stringclass.h'.
4180 (input_iterator): New variables `is_diversion', `diversion_state'.
4181 Update constructors.
4182 (input_stack): New member functions `get_div_level',
4183 `get_diversion_state', `check_end_diversion'.
4184 New variables `div_level', `diversion_state'. Initialize them.
4185 (suppress_push, global_diverted_space): New global variables.
4186 (input_stack::finish_get, input_stack::finish_peek,
4187 input_stack::remove_boundary, input_stack::end_file,
4188 input_stack::clear, input_stack::pop_macro): Call
4189 `check_end_diversion'.
4190 (input_stack::push): Handle `div_level' and `diversion_state'.
4191 (get_diversion_state): New function.
4192 (diverted_space_node::reread): Handle `global_diverted_space'.
4193 (macro::macro): Update constructors.
4194 (macro::is_diversion): New function.
4195 (macro::operator=): Set `is_a_diversion'.
4196 (string_iterator): New member function `is_diversion'.
4197 (string_iterator::string_iterator): Update constructors.
4198 (string_iterator::fill): Set `div_nest_level'.
4199 (macro_iterator): New member function `is_diversion'.
4200 (do_if_request): Handle `suppress_push'.
4201 (tag, taga): New functions.
4202 (init_input_requests): Add `tag' and `taga' requests.
4204 2004-10-05 Gaius Mulley <gaius@glam.ac.uk>
4206 * src/include/font.h (font): New member function
4207 `get_image_generator'.
4208 New variables `unscaled_charwidths' and `image_generator'.
4210 * src/libs/libgroff/font.cpp (font::get_width): Always return the
4211 character's unscaled width if `font::unscaled_charwidths' is set.
4212 (font::get_image_generator): New function.
4213 (font::load_desc): Check the `unscaled_charwidths' and
4214 `image_generator' keywords.
4216 * src/libs/libgroff/fontfile.cpp: Initialize
4217 `font::unscaled_charwidths' and `font::image_generator'.
4219 * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
4221 * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
4223 * man/groff_font.man: Document `unscaled_charwidths' and
4226 * src/preproc/html/pre-html.cpp: Include `device.h'.
4227 (image_gen): New global variable.
4228 (imageList::createPage): Use `image_gen'.
4229 (main): Use `image_generator' keyword.
4231 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
4233 * tmac/html.tmac: Handle \[sqrtex].
4235 2004-10-04 Gaius Mulley <gaius@glam.ac.uk>
4237 * src/include/printer.h (printer): New virtual method `round_width'.
4239 * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
4240 src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
4241 src/devices/grotty/tty.cpp (printer::round_width): New function
4244 * src/devices/grohtml/post-html.cpp (printer::round_width): New
4246 (html_printer::set_numbered_char): Use it.
4248 2004-10-03 Gaius Mulley <gaius@glam.ac.uk>
4250 * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
4252 * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
4254 * configure: Regenerated.
4256 * Makefile.in (GHOSTSCRIPT): New variable.
4257 (MDEFINES): Add GHOSTSCRIPT.
4259 2004-10-03 Werner LEMBERG <wl@gnu.org>
4261 * INSTALL.gen: Updated (taken from texinfo CVS).
4263 2004-09-28 Werner LEMBERG <wl@gnu.org>
4267 2004-09-28 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
4269 * tmac/groff_www.man: Revised and updated.
4271 2004-09-26 Werner LEMBERG <wl@gnu.org>
4273 Fix \$@ and \$* to handle any number of arguments.
4275 * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
4278 * src/roff/troff/input.cpp (input_iterator::internal_level):
4280 (input_stack): New member functions `increase_level' and
4282 (input_stack::get_level): Don't use `internal_level'.
4283 (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
4284 (end_quote_iterator): Completely removed.
4285 (interpolate_arg): Build string for \$@ and \$* which is then
4286 pushed onto the input stack.
4288 2004-09-23 Keith Marshall <keith.d.marshall@ntlworld.com>
4290 * tmac/groff_ms.man, doc/groff.texinfo (ms Document Control
4291 Registers): Document changes from 2004-09-19.
4293 2004-09-23 Werner LEMBERG <wl@gnu.org>
4295 * tmac/an-old.tmac (ne): Using default scaling operator.
4297 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
4299 This change implements the following features:
4302 New numeric register: Defines number of lines following LP, PP,
4303 QP, IP or XP, which must be kept together, before any automatic
4304 page break. If insufficient space remains on the current page, a
4305 page break is forced before the new paragraph begins.
4308 New numeric register: Sets number of lines of following paragraph
4309 which must be kept with a heading, defined by NH or SH, before any
4310 automatic page break. If insufficient space remains on the
4311 current page, a page break is forced before the heading.
4314 (Thanks to Joerg van den Hoff, for this idea).
4316 New numeric register: Sets the first level of heading (set with
4317 NH), which will keep the same point size as body text; e.g. if
4318 GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
4319 point size specified by \n[PS], but .NH 2 and .NH 1 will have
4320 progressively larger point sizes, determined by \n[PSINCR] (see
4324 New numeric register: Sets the point size increment for each level
4325 of heading, (set with NH), below the threshold level set by
4326 GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
4327 then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
4328 and all other levels will remain at 10pt, (because \n[PS] = 10).
4331 Existing macro now accepts a numeric argument, to make heading
4332 size match that of NH with same argument value, when the
4333 GROWPS/PSINCR feature is enabled.
4336 New string, set by NH macro, replaces the existing (undocumented)
4337 use of SN, to represent the assigned section number.
4340 New string, set by NH macro, represents the assigned section
4341 number, but omits the terminal period (periods at intermediate
4342 levels are retained).
4345 String set by NH macro, originally undocumented, now implemented
4346 as an alias for SN-DOT (which reproduces original behaviour).
4348 * tmac/s.tmac (PORPHANS): New register.
4349 (par*start): Use it.
4350 (HORPHANS, GROWPS, PSINCR): New registers.
4351 (SH-NO-TAG, @SH): Use them.
4354 2004-09-19 Keith Marshall <keith.d.marshall@ntlworld.com>
4356 * NEWS, doc/groff.texinfo (ms Display and Keeps), tmac/groff_ms.man:
4357 Document the deletion of `Ds' and `De' macros.
4359 2004-09-10 Werner LEMBERG <wl@gnu.org>
4361 In tbl, handle \a as an interpreted leader character if in
4364 * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
4365 LEADER_CHAR): New macros.
4366 (compatible_flag): New declaration.
4368 * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
4369 LEADER_3, and LEADER_4 to `state'.
4370 (table_input::get): Handle `\a'.
4372 * src/preproc/tbl/table.cpp (PREFIX): Removed.
4373 (LEADER_REG): New macro.
4374 (table::init_output): Define LEADER_REG string register if in
4377 * src/preproc/tbl/tbl.man: Document it.
4379 2004-08-18 Werner LEMBERG <wl@gnu.org>
4381 * tmac/doc.tmac (An): Fix error message.
4383 2004-08-06 Werner LEMBERG <wl@gnu.org>
4385 * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
4386 file can't be opened. UNIX tbl has the same behaviour.
4388 2004-08-05 Y T <doarhop@hotmail.com>
4390 * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
4391 (DBRead): If in compatibility mode, take into account the text
4392 when computing figure boundaries.
4394 2004-08-05 Werner LEMBERG <wl@gnu.org>
4396 * src/preproc/soelim/soelim.man: Improved. Based on suggestions
4397 from Tadziu Hoffmann.
4399 2004-08-03 Werner LEMBERG <wl@gnu.org>
4401 * doc/meref.me: Document `_M' register.
4403 2004-08-03 Martin Husemann <martin@duskware.de>
4405 Make hpftodit work correctly on big-endian systems.
4407 * src/utils/hpftodit/hpftodit.cpp (File): New method
4408 `get_uint32(char *)'.
4409 (entry): New member `orig_value'.
4410 (read_tags): Use new method.
4411 (output_font_name, read_and_output_pcltypeface, dump_ascii):
4414 2004-08-01 Werner LEMBERG <wl@gnu.org>
4416 * tmac/s.tmac: Undo change 2003-06-29. The proper macro definitions
4417 are already in X11's `macros.t' file.
4419 2004-08-01 Jeff Conrad <jeff_conrad@msn.com>
4421 * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
4423 (read_and_output_pcltypeface): Handle strings with length <= 4.
4425 2004-07-27 Egil Kvaleberg <egil@kvaleberg.no>
4427 * tmac/s.tmac (pg@top): Don't save `PO' register.
4428 (pg*end-col, pg*end-page): Directly use `PO' register.
4430 2004-07-27 Werner LEMBERG <wl@gnu.org>
4432 * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
4434 * src/preproc/refer/refer.cpp (output_references): Check for
4436 * src/preproc/refer/refer.man: Improve documentation of
4437 `bibliography' command.
4439 2004-07-26 Werner LEMBERG <wl@gnu.org>
4441 Add requests `fcolor' and `gcolor'.
4443 * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
4445 (init_env_requests): Add `fcolor' and `gcolor'.
4447 * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
4449 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo
4450 (Colors): Document new requests.
4452 2004-07-24 Werner LEMBERG <wl@gnu.org>
4454 Add support for fractional point sizes in ms macros. A value for
4455 PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
4456 by 1000. For example, `.nr PS 10250' sets the font size to 10.25p.
4458 * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
4459 PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
4461 * tmac/groff_ms.man, docs/groff.texinfo (ms Document Control
4462 Registers), NEWS: Document it.
4464 2004-07-19 Werner LEMBERG <wl@gnu.org>
4466 * src/preproc/pic/lex.cpp (for_input): Add member `from'.
4468 (do_for, for_input::get, for_input::peek): Handle negative `by'.
4469 * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
4471 2004-07-08 Thomas Klausner <wiz@netbsd.org>
4473 * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
4474 * tmac/groff_mdoc.man: Updated.
4476 2004-07-05 Werner LEMBERG <wl@gnu.org>
4478 * doc/groff.texinfo (Manipulating Hyphenation): Further improve
4479 documentation of `hcode'.
4481 2004-07-04 Sang Dae Yu <sdyu@bh.knu.ac.kr>
4483 Improve appearance of arrows in pic.
4485 * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
4487 Use two line segments for drawing non-filled arrow head.
4488 (line_object::print, spline_object::print): Shorten line length to
4489 avoid arrow sticking.
4490 (arc_object::print): Take arrow direction into account.
4492 2004-07-03 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
4494 * tmac/groff_www.man: Update documentation of .MPIMG.
4496 2004-07-03 Werner LEMBERG <wl@gnu.org>
4498 * tmac/an-old.tmac (RI): Always start with font `R'.
4499 (RI, IR): Properly end with font `R'.
4501 2004-07-02 Paul Eggert <eggert@cs.ucla.edu>
4503 * man/ditroff.man, man/groff_font.man, man/groff_out.man,
4504 src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
4505 src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
4506 Don't pass more than six arguments to .R, .I, .B, etc., for
4507 compatibility with traditional troff macros.
4509 2004-07-02 Werner LEMBERG <wl@gnu.org>
4511 * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
4512 s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
4514 (PUSH_COMP_MODE): New internal character constant.
4517 * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
4518 PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
4519 (token::next, macro::append): Handle PUSH_COMP_MODE.
4520 (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
4521 POP_GROFFCOMP after each of the decoded arguments to make them
4522 independent from the compatibility mode status.
4523 (comp_mode): Add `COMP_ENABLE'.
4524 (do_define_string, do_define_macro): Handle COMP_ENABLE.
4525 (define_string, append_string, define_macro, define_indirect_macro,
4526 append_macro, append_indirect_macro): Handle `compatible_flag'.
4527 (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
4529 * man/groff_diff.man, doc/groff.texinfo: Updated.
4531 2004-07-01 Werner LEMBERG <wl@gnu.org>
4533 * doc/groff.texinfo: Improve documentation of `hcode'.
4534 Use @documentencoding and convert document to latin-1; to do that
4535 make latin characters active and assign proper macros (within a
4536 @tex...@end tex environment).
4537 * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
4538 * doc/Makefile.sub (groff): Ditto.
4540 2004-06-29 Werner LEMBERG <wl@gnu.org>
4542 Implement two new conditional operators `F <name>' and `S <name>'
4543 which check whether <name> is a valid font or style, respectively.
4545 * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
4546 (text_file::text_file): Updated.
4547 (text_file::error): Don't emit message if `silent' is set.
4548 (font::load_font): Add optional third argument (which is directly
4550 (font::load): Add optional second argument to check the header of
4551 a font only, without emitting warning or error messages.
4552 * src/include/font.h (font): Updated.
4554 * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
4556 * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
4557 fourth argument to check a font without mounting.
4558 (check_font, check_style): New functions.
4559 * src/roff/troff/node.h: Updated.
4561 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
4564 2004-06-27 Werner LEMBERG <wl@gnu.org>
4566 Implement new string-valued register `.sty' to return the current
4569 * env.cpp (environment::get_style_name_string): New function.
4570 (init_env_requests): Add `.sty' register.
4571 * env.h (environment): Updated.
4572 * node.cpp (font_info): Make `get_style_name' a friend.
4573 (get_style_name): New function.
4576 * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
4579 2004-06-15 Werner LEMBERG <wl@gnu.org>
4581 * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
4584 2004-06-10 Colin Percival <colin.percival@wadham.ox.ac.uk>
4586 * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
4587 and \n[mo] to avoid dependency on current date.
4589 2004-06-08 Werner LEMBERG <wl@gnu.org>
4591 * Makefile.sub (install_data): New target.
4593 2004-06-04 Werner LEMBERG <wl@gnu.org>
4595 * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
4597 2004-06-03 Werner LEMBERG <wl@gnu.org>
4599 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
4601 (install_data): Add $(srcdir).
4603 * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
4606 2004-06-02 Werner LEMBERG <wl@gnu.org>
4608 * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
4609 Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
4610 Add test for Xmu library.
4611 (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
4612 GROFF_APPRESDIR_DEFAULT): New macros.
4614 * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
4615 and GROFF_APPRESDIR_DEFAULT.
4617 * configure: Regenerated.
4619 * Makefile.in (appresdir): New variable.
4620 (MDEFINES): Add appresdir.
4622 * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
4624 (install_data, uninstall_sub): New targets to handle GXditview.ad.
4626 * src/utils/indxbib/Makefiles.ub (install_data): Depend on
4627 `$(srcdir)/eign', not `eign'.
4629 * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
4631 * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
4632 src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
4633 Protect (g)xditview with `\%' to avoid hyphenation.
4634 Other minor formatting.
4636 2004-06-01 Werner LEMBERG <wl@gnu.org>
4638 Integrate gxditview into groff's standard directory hierarchy.
4640 * src/xditview/*: Moved to ...
4641 * src/devices/xditview/*: Here.
4642 Moved DviChar.h and XFontName.h to src/include.
4643 Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
4644 Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
4645 Moved xtotroff.c to new directory src/utils/xtotroff.
4646 Provide proper Makefile.sub files (reusing the stuff from
4648 DESC renamed to DESC.in.
4649 Removed GXDitview-ad.h, INSTALL, Imakefile.in.
4650 Converted everything from K&R to ANSI C.
4651 Decorated with const where appropriate.
4652 Cast string constants with `String' and `char *' where appropriate.
4653 Made it compile with C++ (used as a C compiler).
4654 Removed other minor compiler warnings.
4656 * src/devices/xditview/device.c: Include config.h, string.h, and
4658 Don't declare `exit', `strtok', `strchr', and `getenv'.
4661 * src/devices/xditview/font.c: Don't declare `XParseFontName' and
4664 * src/devices/xditview/xditview.c: Include config.h.
4665 Include stdio.h earlier.
4666 Protect declaration of `popen' and `pclose' with
4667 NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
4668 Replace `caddr_t' with `XtPointer'.
4669 (MakePromptFunc): New typedef.
4670 (DoPrint): Use RETSIGTYPE.
4671 (promptfunction): Change type to MakePromptFunc.
4672 (MakePrompt): Use MakePromptFunc for third argument.
4675 * src/devices/xditview/ad2c: Add casts to `String'.
4677 * src/include/XFontName.h (XFontNameString): Don't use array
4679 Add prototypes for `XParseFontName', `XFormatFontName',
4680 `XCompareFontName', and `XCopyFontName'.
4682 * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
4685 * src/utils/xtotroff/xtotroff.c: Include getopt.h.
4686 Don't declare `XParseFontName' and `XFormatFontName'.
4688 (main): Remove `optind' and `optarg'.
4690 * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
4691 (to select programs which need X).
4692 Make XDEVIDIRS depend on `FORCE'.
4693 (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
4695 (MDEFINES): Updated.
4696 (LIBDIRS): Use XLIBDIRS.
4697 (CPROGDIRS): Use XPROGDIRS.
4698 (DEVDIRS): Remove font directories for gxditview.
4699 (ALLDIRS, DISTDIRS): Add XDEVDIRS.
4700 (EXTRADIRS): Remove src/xditview.
4702 * Makefile.sub (DISCLEANFILES): Updated.
4704 * Makefile.comm (LIBXUTIL): New variable.
4705 (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
4706 (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
4708 * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
4710 * aclocal.m4 (GROFF_X11): New function.
4712 * configure.ac: Call GROFF_X11.
4713 Don't create src/xditview/Imakefile.
4714 Don't emit notice how to build gxditview.
4716 * configure: Regenerated.
4718 * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
4720 2004-05-28 Akihiro Sagawa <sagawa@sohgoh.net>
4722 * Makefile.in (CPPFLAGS): Define.
4723 (MDEFINES): Add CPPFLAGS.
4725 2004-05-27 Werner LEMBERG <wl@gnu.org>
4727 * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
4729 2004-05-26 Niklas Edmundsson <nikke@acc.umu.se>
4731 Fix problems with `friend name injections'.
4733 * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
4734 make_script_box), src/roff/troff/div.h (end_diversions),
4735 src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
4738 2004-05-25 Bernd Warken <bwarken@mayn.de>
4740 * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
4742 2004-05-25 Werner LEMBERG <wl@gnu.org>
4744 * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
4745 src/libs/libgroff/color.cpp: Include lib.h.
4747 2004-05-25 Paul Eggert <eggert@cs.ucla.edu>
4749 * PROBLEMS: Update documentation for problems with Sun C++ 5.0
4750 through Forte 6u1, and for how to get GNU make on Solaris.
4752 2004-05-24 Werner LEMBERG <wl@gnu.org>
4754 * PROBLEMS: Document problems with gcc 3.4.0 on Sun. Reported
4757 2004-05-15 Keith Marshall <keith.d.marshall@ntlworld.com>
4759 * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
4762 2004-05-14 Werner LEMBERG <wl@gnu.org>
4764 * REVISION: Set to 2.
4766 * aclocal.m4 (GROFF_STDINT_H): Removed.
4767 (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
4769 * configure.ac: Updated.
4770 * configure, src/include/config.hin: Regenerated.
4772 * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
4773 inttypes.h conditionally.
4775 2004-05-13 Werner LEMBERG <wl@gnu.org>
4777 Version 1.19.1 released
4778 =======================
4780 2004-05-10 Stephen Gildea <http://www.gildea.com/stephen>
4782 * src/preproc/refer/label.y (same_author_last_name,
4783 same_author_name): Handle empty sort keys.
4785 2004-05-10 Werner LEMBERG <wl@gnu.org>
4787 * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
4790 * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
4791 doc-str-Lb-librt): Reset font.
4792 (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
4793 Provide `doc-str-Lb' to reset font.
4794 * tmac/groff_mdoc.man: Updated.
4796 2004-05-08 Jan Schaumann <jschauma@netmeister.org>
4798 * src/preproc/html/pre-html.cpp (make_message): Make it work for
4799 snprintf versions which don't conform to ANSI C 99 (this is,
4800 counting the string's trailing null byte in the return value).
4802 2004-05-07 Keith Marshall <keith.d.marshall@ntlworld.com>
4804 * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
4805 that all implementations of sprintf handle null pointers correctly.
4807 2004-05-04 Werner LEMBERG <wl@gnu.org>
4809 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4810 Document `.U' register.
4812 * src/roff/troff/env.cpp (environment::mark_last_line)
4813 [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
4815 2004-05-04 Larry Kollar <kollar@alltel.net>
4817 New read-only register `.U'; it returns 1 in safer mode and 0
4820 * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
4823 2004-05-03 Werner LEMBERG <wl@gnu.org>
4825 * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
4827 2004-04-17 Werner LEMBERG <wl@gnu.org>
4829 * src/include/font.h (font): Use `int' for ch_index.
4830 * src/libs/libgroff/font.cpp (font::alloc_ch_index,
4831 font::compact): Updated.
4833 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
4836 * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
4837 (hyphen_word): Fix compiler warnings.
4838 * src/roff/troff/input.cpp (get_char_for_escape_name): Return
4841 (get_delim_number, get_line_arg): Change second argument type to
4843 (macro_header::copy, token::next, do_define_string,
4844 do_define_character, substring_request, asciify_macro,
4845 unformat_macro, read_size, non_interpreted_node::interpret,
4846 while_request, main: Fix compiler warnings.
4847 (read_color_draw_node): Initialize `col'.
4849 * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
4850 `start_col' and `end_col' of type `int'.
4851 (vertical_rule): Make `col' of type `int'.
4853 * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
4856 * src/preproc/refer/label.y (uppercase_array, lowercase_array):
4858 (format_serial): Use them to remove dependency on ASCII.
4860 * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
4862 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
4865 * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
4867 (glyph): Change type of `hpos' to `int'.
4869 * src/devices/lbp/lbp.cpp (strsep): Removed. Unused.
4870 * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
4872 * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
4874 * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
4876 2004-04-16 Werner LEMBERG <wl@gnu.org>
4878 * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
4879 src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
4880 src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
4881 `double' instead of `float' everywhere.
4882 * src/preproc/grn/main.cpp: Use `double' instead of `float'
4884 (main): Add return value.
4885 * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
4887 Update all user functions.
4889 * src/include/search.h, src/include/ptable.h, src/include/printer.h,
4890 src/preproc/eqn/box.h, src/preproc/pic/object.h,
4891 src/preproc/refer/refer.h, src/preproc/tbl/table.h,
4892 src/preproc/tbl/table.cpp, src/roff/troff/env.h,
4893 src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
4894 src/roff/troff/input.cpp, src/roff/troff/request.h,
4895 src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
4898 * src/utils/indxbib/signal.c: Include stdlib.h.
4900 2004-04-14 Keith Marshall <keith.d.marshall@ntlworld.com>
4902 * tmac/s.tmac (@init, RP): Allow initialization of the PO register
4903 before the first page.
4905 2004-04-14 Thomas Klausner <wiz@netbsd.org>
4907 * tmac/doc-common (doc-volume-as-*): Use lowercase names.
4908 (doc-operating-system-*): Updated.
4909 * tmac/doc-syms (doc-str-St-*): Various small fixes.
4910 (doc-str-Lb-*): Add more library names.
4912 2004-04-10 Art Haas <ahaas@airmail.net>
4914 * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
4917 2004-04-09 Art Haas <ahaas@airmail.net>
4919 * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
4921 2004-04-09 Keith Marshall <keith.d.marshall@ntlworld.com>
4923 * arch/misc/shdeps.sh: Generate better comment for sed script.
4925 2004-04-08 Art Haas <ahaas@airmail.net>
4927 * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
4928 src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
4929 src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
4930 src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
4931 (polyfill), src/preproc/grn/main.cpp (polyfill),
4932 src/preproc/refer/command.cpp (command_table),
4933 src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
4934 gcc 3.5 doesn't like).
4936 2004-04-08 Werner LEMBERG <wl@gnu.org>
4938 Removing many compiler warnings. groff should now compile with
4939 a C++ compiler used for C files also. [Simple variable renamings
4940 to avoid shadowing aren't logged in detail.]
4942 * src/devices/grodvi/dvi.cpp: Some local variable renamings.
4943 (draw_dvi_printer::draw) ['c']: Enclose in block.
4945 * src/devices/grohtml/post-html.cpp: Some local variable renamings.
4946 (page::add_line): Fix typos.
4947 * src/devices/grohtml/html-text.cpp: Some local variable renamings.
4949 * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
4950 Some local variable renamings.
4951 * src/devices/grolbp/lbp.h: Some local variable renamings.
4953 * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
4956 * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
4957 Remove redundant local variable declaration.
4958 * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
4959 Don't use `caddr_t' but `void *'.
4960 Enclose functions with `extern "C"' for C++.
4962 * src/libs/libdriver/input.cpp (remember_filename,
4963 remember_source_filename): Use cast for string constant.
4965 * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
4966 src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
4967 src/libs/libgroff/geometry.cpp: Some local variable renamings.
4968 * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
4970 Enclose functions with `extern "C"' for C++.
4971 * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
4972 (needs_quoting): Return `int'.
4973 (quote_arg): Add proper casts to malloc and realloc.
4974 * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
4975 various MS Windows environments.
4976 (spawnvp_wrapper): Add proper cast to malloc.
4978 * src/preproc/eqn/box.h: Remove redundant declarations of
4979 `make_script_box', `make_mark_box' and `make_lineup_box'.
4980 * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
4981 * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
4984 * src/preproc/grn/hpoint.cpp: Some local variable renamings.
4985 * src/preproc/grn/hgraph.cpp: Some local variable renamings.
4986 (dx, dy): Renamed functions to...
4987 (deltax, deltay): This.
4988 * src/preproc/grn/main.cpp: Some local variable renamings.
4989 (deffont): Add `const'.
4990 (initpic, conv): Use cast for string constant.
4992 * src/preproc/html/pre-html.cpp: Some local variable renamings.
4993 (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
4994 (char_buffer::run_output_filter): Second argument is unused.
4995 * src/preproc/html/pushback.cpp: Some local variable renamings.
4997 * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
4998 * src/preproc/pic/object.cpp: Some local variable renamings.
5000 * src/preproc/refer/label.y (lookup_label): Remove redundant
5001 declaration of local variable.
5003 * src/preproc/soelim.cpp: Remove redundant declaration of
5004 `interpret_lf_args'.
5006 * src/preproc/tbl/main.cpp: Some local variable renamings.
5008 * src/roff/groff/groff.cpp (main): Use cast for string constant.
5009 * src/roff/groff/pipeline.c: Enclose declarations of `error',
5010 `c_fatal', and `i_to_a' with `extern "C"' for C++.
5011 Don't use C++-style comments.
5013 * src/roff/troff/env.h: Remove redundant declaration of `title'.
5014 * src/roff/troff/node.h, src/roff/troff/env.cpp,
5015 src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
5017 * src/roff/troff/div.h: Remove redundant declaration of
5019 * src/roff/troff/troff.h: Remove redundant declaration of
5021 * src/roff/troff/input.cpp: Remove redundant declaration of
5022 `handle_first_page_transition' and `process_input_stack'.
5024 * src/utils/hpftodit.cpp: Some local variable renamings.
5026 * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
5028 Don't define RETSIGTYPE.
5029 * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
5031 * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
5032 (error): Use `const' in argument.
5033 (main): Remove redundant declaration of `optind'.
5034 Move declaration of `Version_string' to top-level.
5036 * PROBLEMS: Document difficulties compiling signal.c if a C++
5037 compiler is used for C.
5039 2004-04-07 Werner LEMBERG <wl@gnu.org>
5041 * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
5043 2004-04-06 Keith Marshall <keith.d.marshall@ntlworld.com>
5045 Make scripts like nroff.sh and neqn.sh portable across various
5046 (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
5047 non-POSIX path separators. The idea is to extend those scripts to
5048 decide at run-time (of the script) which path separator to use.
5050 * arch/misc/Makefile.sub: New file.
5051 * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
5052 This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
5053 a proper definition of the variable `GROFF_RUNTIME'.
5055 * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
5056 (MDEFINES): Add SH_DEPS_SED_SCRIPT.
5057 (PROGDEPDIRS): New variable.
5059 (PROGDIRS): Add PROGDEPDIRS.
5061 * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
5062 Don't substitute @SEP@ and @BINDIR@.
5063 * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
5064 (PATH): Use GROFF_RUNTIME.
5066 * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
5067 Don't substitute @SEP@ and @BINDIR@.
5068 * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
5069 (PATH): Use GROFF_RUNTIME.
5071 2004-04-05 Keith Marshall <keith.d.marshall@ntlworld.com>
5073 * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
5074 Cygwin which doesn't handle stderr correctly.
5076 2004-03-08 Werner LEMBERG <wl@gnu.org>
5078 * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
5079 against empty argument. Problem reported by <cgd@broadcom.com>.
5081 2004-03-05 Keith Marshall <keith.d.marshall@ntlworld.com>
5083 * Makefile.in (SEP): Replaced with...
5084 (RT_SEP, SH_SEP): Separators for the target platform's native path
5085 separator and the build environment, respectively.
5086 (fontpath, tmacpath): Use RT_SEP.
5087 (MDEFINES): Updated.
5089 * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
5090 * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
5091 * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
5093 2004-03-05 Werner LEMBERG <wl@gnu.org>
5095 * font/devlj4/Makefile.sub (LJ4RES): Set to 1200. This helps to
5096 reduce alignment problems with newer printers which use built-in
5097 TrueType fonts (instead of the older Intellifonts). The ideal
5098 solution is to provide a second set of groff metric files, but this
5099 is extremely time-consuming to produce, given that HP's metric
5100 files are very rudimentary.
5102 2004-03-01 Werner LEMBERG <wl@gnu.org>
5104 * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
5105 s/operand/argument/ in error message.
5107 2004-03-01 Keith Marshall <keith.d.marshall@ntlworld.com>
5109 * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
5112 2004-03-01 Antti Kantee <pooka@netbsd.org>
5114 * tmac/s.tmac (XE): Fix error message.
5116 2004-02-27 Jeff Conrad <jeff_conrad@msn.com>
5118 * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
5121 * src/roff/groff/pipeline.c: Declare strcasecmp.
5122 (run_pipeline) [_WIN32]: Use function name variants which don't
5124 Fix stream handling.
5126 2004-02-27 Keith Marshall <keith.d.marshall@ntlworld.com>
5128 * src/include/nonposix.h: Fix declaration of `system_shell_name'.
5129 Declare `spawnvp_wrapper' and macro definitions of spawnvp only
5130 for platforms which use the native Win32 runtime libraries.
5131 (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
5133 * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
5134 QUOTE_ARG_REALLOC_ERROR): Fix string.
5136 * src/preproc/html/pre-html.cpp: Remove declaration of
5138 Don't use __MINGW32__.
5139 s/DEBUG_FILE/DEBUG_FILE_DIR/.
5140 (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
5141 (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
5142 (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
5143 calls to `set_redirection' and `WAIT'.
5144 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
5145 Fix calls to `set_redirection' and `save_and_redirect'.
5146 (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
5147 to `set_redirection' and `save_and_redirect'.
5148 (usage): Fix message.
5149 (makeTempFiles, main): Use `DEBUG_FILE'.
5151 2004-02-21 Werner LEMBERG <wl@gnu.org>
5153 * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
5155 2004-02-21 Keith Marshall <keith.d.marshall@ntlworld.com>
5157 * src/libs/libgroff/quotearg.c: New file, providing proper argument
5158 quoting for MSVC's spawn* and exec* functions.
5159 * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
5160 spawnvp with proper quoting for MSVC.
5162 * src/libs/libgroff/assert.cpp (program_name),
5163 src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
5164 * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
5166 * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
5168 * src/include/error.h (program_name): Declare as `extern "C"'.
5169 * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
5171 2004-02-21 Jeff Conrad <jeff_conrad@msn.com>
5173 * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
5175 [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
5177 2004-02-20 Jeff Conrad <jeff_conrad@msn.com>
5179 * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
5181 (sbasename) [__MSDOS__ || ...]: New function.
5182 (system_shell_name) [__MSDOS__ || ...]: Use a different, more
5184 (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
5185 (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
5187 Use STDOUT_FILENO instead of hardcoded file handle.
5188 (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
5190 2004-02-19 Werner LEMBERG <wl@gnu.org>
5192 * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
5193 avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
5195 2004-02-18 Werner LEMBERG <wl@gnu.org>
5197 * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
5198 new font and mapping files.
5200 2004-02-18 Jeff Conrad <jeff_conrad@msn.com>
5201 Keith Marshall <keith.d.marshall@ntlworld.com>
5203 * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
5204 an input pipe. This is needed for the MSVC compiler to make troff's
5207 * src/roff/troff/div.cpp: Include nonposix.h.
5208 (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
5210 2004-02-17 Werner LEMBERG <wl@gnu.org>
5212 * font/devlj4/generate/special.awk: New script.
5213 * font/devlj4/generate/Makefile (S): Use special.awk.
5214 * font/devlj4/*: Regenerated, including the following new files:
5215 Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
5216 MS Symbol (SYMBOL), Wingdings (WINGDINGS).
5217 * NEWS: Document new lj4 fonts and revised hpftodit.
5219 2004-02-17 Paco Andrés Verdú <pandres@dragonet.es>
5221 * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
5223 2004-01-25 Werner LEMBERG <wl@gnu.org>
5225 * src/libs/libgroff/progname.cpp: Replaced with...
5226 * src/libs/libgroff/progname.c: New file.
5227 * src/libs/libgroff/Makefile.sub: Updated accordingly.
5229 2004-01-17 Werner LEMBERG <wl@gnu.org>
5231 * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
5233 2004-01-16 Jeff Conrad <jeff_conrad@msn.com>
5235 * font/devlj4/generate/wingdings.map,
5236 font/devlj4/generate/symbol.map: Include unnamed glyphs.
5237 Use groff glyph names where possible.
5238 * src/devices/grolj4/lj4_font.man: Minor updates.
5240 2004-01-13 Werner LEMBERG <wl@gnu.org>
5242 * tmac/www.tmac (DC): Handle TTY devices.
5244 * doc/webpage.ms: Document viewCVS from ffii.org.
5245 * NEWS, README: Updated.
5247 * src/roff/groff/groff.man: Mention lj4_font man page.
5249 * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
5251 (FONTS): Add SYMBOL and WINGDINGS.
5252 (SYMBOL, WINGDINGS): New targets.
5254 2004-01-13 Jeff Conrad <jeff_conrad@msn.com>
5256 * src/devices/grolj4/lj4_font.man: New man page.
5257 * src/devices/grolj4/Makefile.sub (MAN5): New variable.
5258 * src/devices/grolj4.man: Mention lj4_font man page.
5260 * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
5261 * src/utils/hpftodit/hpftodit.man: Document it.
5263 Remove details about fonts (which are now in lj4_font.man).
5265 * font/devlj4/generate/symbol.map,
5266 font/devlj4/generate/wingdings.map: New files.
5268 2004-01-12 Werner LEMBERG <wl@gnu.org>
5270 * README: Mention ffii's viewcvs access.
5272 2004-01-09 Werner LEMBERG <wl@gnu.org>
5274 * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
5276 2004-01-09 Jeff Conrad <jeff_conrad@msn.com>
5278 Revert most of the change from 2004-01-03 to better control used
5281 * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
5282 (text_symbol_sets, special_symbol_sets): New arrays.
5283 (symbol_set_table): New global variable.
5284 (read_symbol_sets): Use search order given in the text_symbol_sets
5285 and special_symbol_sets arrays. If command line flag -a is not
5286 given, search both arrays.
5287 (output_charset): Require x_height_tag only for command line flag -i.
5289 2004-01-06 Werner LEMBERG <wl@gnu.org>
5291 Implement string-valued registers \n[.m] and \n[.M] to return the
5292 name of the current drawing and background color, respectively.
5294 * src/roff/troff/symbol.h: Moved to...
5295 * src/include/symbol.h: Here.
5296 Small fixes to make it work outside of the `troff' directory.
5297 * src/roff/troff/symbol.cpp: Moved to...
5298 * src/libs/libgroff/symbol.cpp: Here.
5299 Small fixes to make it work outside of the `troff' directory.
5301 * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
5302 (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
5305 * src/include/color.h: Include symbol.h.
5306 (color): Add new field `nm'.
5307 * src/libs/libgroff/color.cpp (color::color): Updated.
5309 * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
5310 src/roff/troff/node.cpp, src/roff/troff/number.cpp,
5311 src/roff/troff/reg.cpp: Don't include symbol.h.
5313 * src/roff/troff/env.cpp: Don't include symbol.h.
5314 (environment::get_glyph_color_string,
5315 environment_get_fill_color_string): New member functions.
5316 (init_env_requests): Handle `.m' and `.M' registers.
5317 * src/roff/troff/input.cpp: Don't include symbol.h.
5318 (default_symbol): Moved to symbol.cpp/symbol.h.
5319 (do_glyph_color, do_fill_color, define_color): Pass symbol name
5320 to color constructor.
5321 * src/roff/troff/env.h: Updated.
5323 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
5324 Document new registers.
5326 2004-01-05 Werner LEMBERG <wl@gnu.org>
5328 * src/roff/troff/node.cpp (space_node::get_breakpoints,
5329 space_node::nbreaks): Protect against zero `next' field.
5331 2004-01-03 Jeff Conrad <jeff_conrad@msn.com>
5333 In hpftodit, use the symbol sets offered in the TFM.
5335 * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
5336 (symbol_set, text_symbol_sets, special_symbol_sets,
5337 symbol_set_table): Removed.
5338 (get_printcode): Removed.
5339 (read_symbol_sets): Initialize `symbol_set' field with
5341 Simplify code to just use the `kind' value.
5342 (output_charset): Improve output formatting.
5343 (dump_symbols): Simplified.
5345 2004-01-02 Werner LEMBERG <wl@gnu.org>
5347 * font/devlj4/generate/text.map: Add more MSL numbers.
5349 2004-01-02 Jeff Conrad <jeff_conrad@msn.com>
5351 * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
5352 (text_symbol_sets): Add more symbol sets.
5353 (debug_flag): New static variable (moved from `main').
5354 (get_printcode, show_symset): New functions.
5355 (main): Remove `debug_flag'.
5356 (output_charset): Use `show_symset'.
5357 (dump_symbols): Use `show_symset'.
5358 Print symsets for all glyphs.
5359 (read_map): Actually call `unicode_to_ucode_make' but this time
5362 2004-01-01 Werner LEMBERG <wl@gnu.org>
5364 * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
5365 Fix placement of comments.
5367 2004-01-01 Jeff Conrad <jeff_conrad@msn.com>
5369 * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
5370 option `-d' is given.
5371 (output_charset): Improve warning messages to give more information.
5372 (dump_symbols): Make information more precise.
5374 (read_map): Don't call unicode_to_ucode_name; the glyph names must
5375 appear as-is and shouldn't be decomposed.
5377 2003-12-31 Werner LEMBERG <wl@gnu.org>
5379 * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
5380 * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
5381 (FONTS): Add TrueType font families Arial and Times New Roman.
5382 (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
5383 * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
5386 2003-12-31 Jeff Conrad <jeff_conrad@msn.com>
5388 * test-groff.in (SEP): Quote value.
5389 * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
5390 `tem' to `char*' to avoid deallocation of a pointer to a constant
5391 object which some compilers don't like.
5393 2003-12-31 Werner LEMBERG <wl@gnu.org>
5395 * font/devlj4/generate (text.map, special.map): Rewritten to work
5396 with the new hpftodit version.
5398 2003-12-30 Jeff Conrad <jeff_conrad@msn.com>
5400 * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
5401 set and 8bit character code for all glyphs also.
5403 2003-12-30 Werner LEMBERG <wl@gnu.org>
5405 * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
5407 2003-12-29 Werner LEMBERG <wl@gnu.org>
5409 More fixes for MSVC compiler.
5411 * doc/Makefile.sub (GROFF_BIN_PATH): Use $(SEP).
5413 * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
5414 STDERR_FILENO) [_MSC_VER]: Define conditionally.
5415 (getpid) [_MSC_VER]: Remove.
5416 Include direct.h and process.h conditionally.
5418 * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
5419 parentheses for a_delete.
5421 * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
5423 * test-groff: Replaced with...
5424 * test-groff.in: This new template to handle path separator
5427 * configure.ac: Check for direct.h and process.h.
5428 Generate test-groff script.
5429 * configure, src/include/config.hin: Regenerated.
5431 2003-12-28 Werner LEMBERG <wl@gnu.org>
5433 Add integral extension glyph.
5434 Add new option `-x' to afmtodit to suppress use of built-in AGL.
5436 * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
5438 * font/devps/generate/textmap: Provide entry for `integralex' to
5439 override (old) PUA value of the AGL.
5440 * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
5441 * font/devps/*: Regenerated.
5443 * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
5444 * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
5446 2003-12-27 Werner LEMBERG <wl@gnu.org>
5448 Add forgotten `coproduct' symbol (already available for DVI).
5450 * font/devhtml/R.proto, font/devps/generate/textmap,
5451 font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
5452 src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
5453 U+2210 (\[coproduct]).
5455 2003-12-26 Jeff Conrad <jeff_conrad@msn.com>
5457 hpftodit has been extended to handle TrueType metric files and
5458 more glyphs. See hpftodit.man for more details.
5460 * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h,
5461 ctype.h, and unicode.h.
5462 s/msl/charcode/ everywhere since we now handle Unicode values also.
5463 (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
5464 Use it where appropriate.
5465 (MULTIPLIER): Replaced with...
5466 (multiplier): New global static variable.
5468 (tag_type): Add more TFM tags.
5469 (tag_name): New array.
5470 (ENUM_TYPE, FLOAT_TYPE): Removed.
5471 (BYTE_TYPE): New value assigned.
5472 (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
5473 (text_symbol_sets, special_symbol_sets): Extended to cover more
5475 (check_type): Add return value.
5476 (check_units): Add parameters to get ppi and upem values.
5477 Handle TrueType TFM data.
5478 (output_font_name): New function.
5479 (output_charset): Add parameter to handle TFM type.
5480 Handle TrueType TFMs also.
5481 (em_fract): New macro.
5482 (dump_tags): Be much more verbose and handle more tags.
5483 (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
5484 (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
5486 (read_map): Add parameter to handle TFM type.
5487 Handle both MSL and Unicode mappings.
5488 (main): Add two new command line options `-a' and `-q'.
5489 Updated to make use of new functions.
5492 * src/utils/hpftodit/hpuni.cpp: New file.
5494 * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
5497 2003-12-25 Werner LEMBERG <wl@gnu.org>
5499 * src/include/nonposix.h (read) [_MSC_VER]: Define.
5501 2003-12-24 Werner LEMBERG <wl@gnu.org>
5503 * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
5504 by Michail Vidiassov <master@iaas.msu.ru>.
5506 2003-12-20 Werner LEMBERG <wl@gnu.org>
5508 * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
5510 Add missing latin-2 glyphs.
5511 * font/devutf8/R.proto: Add missing latin-2 glyphs.
5513 * tmac/troffrc: Load `composite.tmac' earlier.
5515 * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
5516 u00{53,73}_0327, and u0049_0307.
5517 * tmac/X.tmac: Add u00{47,67}_0306.
5518 * tmac/tty-char.tmac: Use composite glyph names for readability.
5522 * src/include/unicode.h: Remove `extern' keywords.
5524 2003-12-20 Nilgün Belma Bugüner <nilgun@superonline.com>
5526 * tmac/latin5.tmac: New file.
5528 2003-12-19 Werner LEMBERG <wl@gnu.org>
5530 Add some glyphs needed for Turkish.
5532 * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
5535 * tmac/composite.tmac: Add `,' as a synonym for `ac' accent.
5536 * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
5537 u00{53,73}_0327, and u0049_0307.
5539 2003-12-18 Werner LEMBERG <wl@gnu.org>
5541 * src/devices/grops/ps.cc (ps_output::put_float): Revert change
5543 Remove trailing zeros.
5545 2003-12-17 Werner LEMBERG <wl@gnu.org>
5547 Make \? transparent to end-of-sentence recognition.
5549 * src/roff/troff/input.cc (non_interpreted_node): Add
5550 `ends_sentence' member function.
5552 2003-12-16 Werner LEMBERG <wl@gnu.org>
5554 * doc/groff.texinfo: Document `dt' request correctly.
5555 Other minor typographical improvements.
5557 2003-12-10 Michail Vidiassov <master@iaas.msu.ru>
5559 * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
5561 2003-12-10 Richard Stallman <rms@gnu.org>
5563 * LICENSE: Better wording.
5565 2003-12-09 Werner LEMBERG <wl@gnu.org>
5567 * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
5568 * configure, NEWS: Updated.
5570 2003-12-08 Werner LEMBERG <wl@gnu.org>
5572 * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
5574 2003-12-07 Bernd Warken <bwarken@mayn.de>
5578 2003-12-07 Werner LEMBERG <wl@gnu.org>
5580 * INSTALL: Improved.
5582 2003-12-05 Keith Marshall <keith.d.marshall@ntlworld.com>
5584 Use path separator character of target platform for compiled-in
5587 * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
5588 * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
5589 * configure: Regenerated.
5590 * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
5592 2003-12-05 Werner LEMBERG <wl@gnu.org>
5594 * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
5595 Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
5597 2003-12-04 Bernd Warken <bwarken@mayn.de>
5599 * LICENSE: New file.
5601 2003-12-03 Werner LEMBERG <wl@gnu.org>
5603 * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
5604 ligatures present in AFM files since groff currently only
5605 understands some standard ligatures and nothing else.
5607 2003-12-03 Jeff Conrad <jeff_conrad@msn.com>
5609 * src/roff/groff/groff.cpp (main): Don't run the spooler if
5612 * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
5615 Don't use Unix wait flags.
5617 2003-12-02 Werner LEMBERG <wl@gnu.org>
5619 * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
5620 src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
5621 src/roff/troff/uniuni.cpp: Moved to...
5622 * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
5623 src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
5624 src/libs/libgroff/uniuni.cpp: Here.
5626 * src/include/Makefile.sub.old (HDRS),
5627 src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
5628 src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
5630 2003-12-01 Keith Marshall <keith.d.marshall@ntlworld.com>
5632 * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
5636 2003-12-01 Werner LEMBERG <wl@gnu.org>
5638 * groff.texinfo: Document special behaviour of `.vs 0'.
5639 Improve documentation of `cflags' request.
5642 2003-11-29 Werner LEMBERG <wl@gnu.org>
5644 * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
5645 * font/devlj4/CORONET: Regenerated.
5647 2003-11-24 Werner LEMBERG <wl@gnu.org>
5649 * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
5650 if processing hyphenation patterns in traditional mode.
5651 Improve error messages.
5653 2003-11-20 Werner LEMBERG <wl@gnu.org>
5655 * src/roff/troff/node.cpp (troff_output_file::put_char_width,
5656 troff_output_file::put_char): Fix type of local variable `c'.
5658 2003-11-19 Werner LEMBERG <wl@gnu.org>
5660 * src/roff/groff/pipeline.c (P): Removed. Updated all function
5662 (i_to_a): Removed. libgroff already provides this function.
5663 (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
5665 2003-11-18 Keith Marshall <keith.d.marshall@ntlworld.com>
5667 * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
5670 2003-11-17 Werner LEMBERG <wl@gnu.org>
5672 * COPYING: Use correct version.
5674 2003-11-11 Werner LEMBERG <wl@gnu.org>
5676 LynxOS 4.0.0 doesn't declare vfprintf.
5678 * configure.ac: Check for vfprintf.
5679 * configure: Regenerated.
5680 * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
5681 * src/include/config.hin: Regenerated.
5683 2003-11-10 Werner LEMBERG <wl@gnu.org>
5685 LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
5687 * configure.ac: Check for vsnprintf.
5688 * configure: Regenerated.
5689 * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
5691 * src/include/config.hin: Regenerated.
5693 2003-11-09 Werner LEMBERG <wl@gnu.org>
5695 * aclocal.m4: Updated syntax to autoconf 2.59.
5696 (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
5697 Don't check for gsos2.
5698 (GROFF_SRCDIR, GROFF_BUILDDIR): Removed. autoconf 2.59 provides
5699 working abs_top_srcdir and abs_top_builddir.
5701 * configure.ac: Updated syntax to autoconf 2.59.
5702 Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
5703 Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
5704 * configure: Regenerated.
5706 * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
5707 s/@groff_top_builddir@/@abs_top_builddir@/.
5709 * src/roff/groff/pipeline.c (xstrsignal):
5710 s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
5712 2003-11-07 Werner LEMBERG <wl@gnu.org>
5714 * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
5715 make start angle smaller than end angle to circumvent a bug in tpic
5716 handling of some versions of dvipdfm (and dvipdfmx).
5718 2003-10-30 Werner LEMBERG <wl@gnu.org>
5720 * src/devices/grops/grops.man: Improve section on creating EPS.
5722 2003-10-29 Werner LEMBERG <wl@gnu.org>
5724 * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
5727 2003-10-28 Werner LEMBERG <wl@gnu.org>
5729 * doc/groff.texinfo: Fix documentation of `.if'.
5731 2003-10-27 Michail Vidiassov <master@iaas.msu.ru>
5733 * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
5734 the form `uniXXXX' also.
5736 2003-10-27 Werner LEMBERG <wl@gnu.org>
5738 * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
5739 contrib/pic2graph/pic2graph.sh: Implement secure management of
5741 Pass `-P-pletter' to groff to avoid data outside of the converted
5742 area -- some versions of `convert' (for example 5.3.8) don't check
5743 the bounding box of the image but always use a fixed image size
5744 (letter paper format).
5745 * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
5746 contrib/pic2graph/pic2graph.man: Updated.
5748 * src/roff/groff/groff.man: Document $TMP and $TEMP.
5750 2003-10-26 Werner LEMBERG <wl@gnu.org>
5752 * src/preproc/pic/troff.cpp (troff_output::simple_circle,
5753 troff_output::simple_ellipse, troff_output::simple_arc,
5754 troff_output::simple_line, troff_output::simple_spline,
5755 troff_output::simple_polygon): Insert a space before arguments.
5756 (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
5757 latter doesn't produce a node, so the following `.sp -1' would do
5759 Don't emit `.sp -1' after \M. This also doesn't produce a token
5760 (and we don't have to care about compatibility mode).
5761 (troff_output::set_color, troff_output::reset_color): Don't emit
5762 `.sp -1' after \M and \m.
5764 * src/roff/troff/input.cpp (old_have_input): New global variable.
5765 (input_stack::get): Handle `old_have_input'.
5766 (process_input_stack) <token::TOKEN_NEWLINE>: Call
5767 `trapping_blank_line' depending on `old_have_input', not
5770 2003-10-20 Keith Marshall <keith.d.marshall@ntlworld.com>
5772 * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
5773 (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
5774 default directory names for temporary files.
5775 [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
5777 * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
5778 [__MSDOS__] (run_pipeline): Honour environment variables.
5779 Don't use `tmpnam' but `tempnam' to work around messy
5782 * README.MinGW: New file.
5784 2003-10-16 Werner LEMBERG <wl@gnu.org>
5786 * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
5787 `(*t)->next' without testing validity of `*t'.
5788 (usage): Make it more readable.
5790 2003-10-16 Keith Marshall <keith.d.marshall@ntlworld.com>
5792 Make html device run under both MS-DOS and Win32.
5794 * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
5795 MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
5796 spawn or fork+exec has to be used, and whether parent must sleep
5797 until the child process terminates. Used in
5798 `char_buffer::run_output_filter'.
5799 (copyofstdoutfd): Removed.
5800 (char_buffer): Replace `write_file_html' and `write_file_troff'
5801 member functions with `emit_troff_output' and `run_output_filter'.
5802 (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
5804 (replaceFd): Replaced with...
5805 (set_redirection): New auxiliary function.
5806 (waitForChild): Replaced with...
5807 (save_and_redirect): New auxiliary function for.
5809 (char_buffer::do_html, char_buffer::do_image): Simplified, using new
5812 2003-10-14 Keith Marshall <keith.d.marshall@ntlworld.com>
5814 * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
5815 (GROFF_LIBC): New function.
5816 * configure.ac: Call GROFF_LIBC.
5818 * configure: Regenerated.
5820 * src/include/lib.h: Handle __MINGW32__.
5821 * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
5822 Add macro for `pipe'.
5825 * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
5828 * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
5831 2003-10-12 Werner LEMBERG <wl@gnu.org>
5833 * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
5834 src/roff/troff/input.cc (usage): Updated.
5836 * NEWS, doc/groff.texinfo: Updated.
5838 2003-10-12 Peter Miller <millerp@canb.auug.org.au>
5840 * src/libs/libgroff/searchpath.cpp
5841 (search_path::open_file_cautious): New function which also handles
5842 `-' as stdin and stdout depending on the access mode.
5843 * src/include/searchpath.h (search_path): Updated.
5845 * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
5846 * src/devices/grops/ps.h: Include `searchpath.h'.
5847 * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
5848 Open resource file with `include_search_path.open_file_cautious'.
5849 * src/devices/grops/grops.man: Document new `-I' switch.
5851 * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
5852 (main), src/devices/grolj4/lj4.cpp (main),
5853 src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
5855 * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
5857 (include_search_path): New global variable.
5858 (include_path_append): Removed.
5859 (main): Use `include_search_path.command_line_dir' to handle `-I'.
5860 (do_file): Simplify, using new
5861 `include_search_path.open_file_cautious'.
5863 * src/roff/groff/groff.cpp (print_commands): Accept file handle as
5865 (main): Pass arguments to `-I' to both troff and devices.
5866 Improve handling of `-V'.
5867 * src/roff/groff/groff.man: Document changes to -I and -V.
5869 * src/roff/troff/input.cpp (include_search_path): New global
5871 (next_file, source, ps_bbox_request, transparent_file,
5872 process_input_file): Use new
5873 `include_search_path.open_file_cautious'.
5874 (main) Handle `-I' switch.
5875 * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
5876 Use new `include_search_path.open_file_cautious'.
5877 * src/roff/troff/node.h: New extern symbol `include_search_path'.
5878 * src/roff/troff/troff.man: Document new `-I' switch.
5880 2003-09-15 Ruslan Ermilov <ru@FreeBSD.org>
5882 Support multiple calls of .Lb in LIBRARY section.
5884 * tmac/doc-common (doc-in-library-section): New register.
5885 (doc-section-library): New string.
5886 (Sh): Set `doc-in-library-section'.
5888 * tmac/doc-syms (Lb): Insert breaks before and after arguments
5889 if in LIBRARY section.
5890 * tmac/doc.tmac (doc-save-global-vars): Updated.
5891 * NEWS, tmac/groff_mdoc.man: Updated.
5893 2003-09-14 Ruslan Ermilov <ru@FreeBSD.org>
5895 * tmac/doc-common (doc-default-operating-system): New variable.
5898 2003-09-08 Werner LEMBERG <wl@gnu.org>
5900 * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
5902 2003-08-31 Werner LEMBERG <wl@gnu.org>
5904 * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
5905 (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
5906 $(DEVFILES) are not empty.
5907 * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
5909 2003-08-23 Stephen Gildea <http://www.gildea.com/stephen>
5911 * src/preproc/refer/ref.cpp (reference::compute_sort_key): Always
5912 insert SORT_SEP. With certain combinations of sort specifications,
5913 refer sorted entries in the wrong order. In particular, entries
5914 with a missing field should be be sorted before all entries that
5915 have that field, before refer looks to the next field.
5917 2003-08-23 Werner LEMBERG <wl@gnu.org>
5919 * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
5920 g++ linker is used. Reported by Mark J. Reed
5921 <mark.reed@turner.com>.
5923 2003-08-16 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
5925 Add key character `x' to tbl which makes tbl call a user-defined
5926 macro on a table cell.
5928 * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
5929 * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
5930 `set_modifier' after printing the compatibility request.
5931 (set_modifier): Print call to `m->macro' if not empty.
5932 * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
5934 (process_format): Implement cases `x' and `X'.
5935 * src/preproc/tbl/tbl.man, NEWS: Updated.
5937 2003-08-15 Werner LEMBERG <wl@gnu.org>
5939 * doc/groff.texinfo: Minor fixes.
5941 2003-08-09 Werner LEMBERG <wl@gnu.org>
5943 * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
5945 2003-08-07 Werner LEMBERG <wl@gnu.org>
5947 * doc/Makefile.sub: Not all shells expand wildcards in the `for'
5948 argument list to nothing if there is no file to match. Use `ls' as
5949 a protection, similar to autoconf.
5951 * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
5952 empty argument lists.
5954 * doc/groff.texinfo: Improve documentation how vertical spacing
5955 and line breaks interact.
5958 * tmac/www.tmac: Initialize `www-htmlimage-gap'.
5960 2003-08-03 Werner LEMBERG <wl@gnu.org>
5962 * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
5963 EPS (using eps2eps or similar programs to compute the bounding box).
5965 2003-07-24 Werner LEMBERG <wl@gnu.org>
5967 * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
5968 * doc/texinfo.tex: Updated from texinfo 4.6.
5969 * README.CVS: From now on we need texinfo 4.6.
5971 2003-07-23 Werner LEMBERG <wl@gnu.org>
5973 Add requests `dei1' and `ami1' for completeness.
5975 * src/roff/troff/input.cc (calling_mode): Remove
5976 CALLING_DISABLE_COMP.
5977 (comp_mode): New enumeration.
5978 (do_define_string, define_string, define_nocomp_string,
5979 append_string, append_nocomp_string): Updated.
5980 (do_define_macro): Add third parameter.
5981 (define_macro, define_nocomp_macro, define_indirect_macro,
5982 append_macro, append_nocomp_macro, append_indirect_macro): Updated.
5983 (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
5986 (init_input_requests): Add `dei1' and `ami1'.
5988 * tmac/trace.tmac: Handle de1 and am1.
5989 (de): Improve tracing message.
5990 (am): Add missing `do'.
5993 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
5994 Document new requests.
5996 2003-07-22 Heinz-Jürgen Oertel <hj.oertel@surfeu.de>
5998 Add option -G to .MPIMG to insert a gap between text and the image.
6000 * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
6001 www-finish-left-ll): Updated.
6002 (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
6003 (MPIMG): Make option -L and -R optional.
6004 Implement option -G.
6006 2003-07-22 Gaius Mulley <gaius@glam.ac.uk>
6008 * src/devices/grohtml/post-html.cpp
6009 (html_printer::do_file_components): Don't use `stdout' as lvalue
6010 since it can be a macro.
6012 2003-07-22 Werner LEMBERG <wl@gnu.org>
6014 * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
6015 the corresponding test in aclocal.m4.
6017 2003-07-21 Werner LEMBERG <wl@gnu.org>
6019 * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
6020 names but RGB values directly. Otherwise pnmtopng depends on
6021 an external file `rgb.txt' which maps colour names to values.
6023 2003-07-20 Werner LEMBERG <wl@gnu.org>
6025 * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
6026 * configure, src/include/config.hin: Regenerated.
6028 * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
6030 2003-07-19 Werner LEMBERG <wl@gnu.org>
6032 * PROBLEMS: Add solution for UTF-8 problem with hyphens.
6034 2003-07-18 Werner LEMBERG <wl@gnu.org>
6036 * *.man: Switch to non-compatibility mode temporarily if GNU
6037 syntax extensions are used in the particular man page.
6039 * PROBLEMS: Add solutions for SGR problems.
6041 2003-07-17 Werner LEMBERG <wl@gnu.org>
6043 Don't ignore grotty's command line options if \X'tty: sgr ...' is
6044 used to change the drawing scheme.
6046 * src/devives/grotty/tty.cpp (bold_flag_option,
6047 underline_flag_option, italic_flag_option, reverse_flag_option,
6048 bold_underline_mode_option): New global variables.
6049 (update_options): New function.
6050 (tty_printer::special): Call update_options.
6051 (main): Don't set xxx_flag but xxx_flag_option, then call
6054 2003-07-14 Werner LEMBERG <wl@gnu.org>
6056 Make grotty emit proper Unicode box drawing characters for -Tutf8.
6058 * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
6060 (hline_char, vline_char): New global variables.
6061 (tty_printer::tty_printer): Initialize them.
6062 (tty_printer::draw): Emit START_LINE and END_LINE flags for both
6063 horizontal and vertical lines.
6064 (crossings): New global array.
6065 (tty_printer::end_page): Use it to determine the proper crossing
6066 character for -Tutf8.
6068 2003-07-12 Werner LEMBERG <wl@gnu.org>
6070 * doc/Makefilesub (HTMLDOCFILESALL): New macro.
6071 (HTMLDOCFILES): Revert to `pic.html'.
6072 (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
6074 2003-07-11 Werner LEMBERG <wl@gnu.org>
6076 * doc/pic.ms: Improve documentation of absolute coordinates.
6077 Document absolute positioning of pictures.
6079 * NEWS: Add new pic capability.
6081 2003-07-09 Hartmut Henkel <hartmut_henkel@gmx.de>
6083 * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
6086 2003-07-07 Werner LEMBERG <wl@gnu.org>
6088 Implement support for dashed and dotted ellipses in pic. Based on
6089 a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
6091 * src/preproc/pic/common.cpp (common_output::ellipse_arc,
6092 common_output::dashed_ellipse, common_output::dotted_ellipse): New
6093 functions. Ellipse arcs are approximated with circle arcs.
6094 * src/preproc/pic/common.h (common_output): Updated.
6095 * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
6097 * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
6099 * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
6101 2003-07-06 Werner LEMBERG <wl@gnu.org>
6103 Make grotty work on platforms which have unsigned char as the
6104 default for char. Based on a patch by Thomas Klausner
6107 * src/devices/grotty/tty.cpp (schar): New typedef.
6108 Updated calls to declare_ptable and implement_ptable.
6109 (glyph): Use schar for back_color_idx and fore_color_idx.
6110 (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
6111 (tty_printer::tty_color, tty_printer::tty_printer,
6112 tty_printer::color_to_idx, tty_printer::put_color): Updated.
6114 2003-07-06 Ruslan Ermilov <ru@FreeBSD.org>
6116 * src/roff/nroff/nroff.sh: Add option -d for completeness.
6117 * src/roff/nroff/nroff.man: Updated.
6119 2003-07-05 Werner LEMBERG <wl@gnu.org>
6121 * NEWS, tmac/groff_www.man: Updated.
6122 * doc/Makefile.sub: Updated.
6124 2003-07-05 Gaius Mulley <gaius@glam.ac.uk>
6126 Implement support for multiple HTML output files.
6128 * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
6129 -j command line option.
6131 * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
6133 (file): New fields `new_output_file', `require_links',
6135 (file::file): Updated.
6136 (files::set_file_name, files::set_links_required,
6137 files::are_links_required, files::is_new_output_file,
6138 files::file_name, files::next_file_name): New functions.
6139 (header_desc): New fields `no_of_level_one_headings',
6141 (header_desc::header_desc): Updated.
6142 (header_desc::write_headings): Handle multiple files.
6143 (html_printer::write_header): Save file name in which header occurs.
6144 (html_printer::determine_header_level): Possibly split files on
6146 (html_printer::do_links, html_printer::troff_tag): Updated.
6147 (html_printer::insert_split_file, html_printer::do_job_name,
6148 html_printer::emit_link, html_printer::write_navigation,
6149 html_printer::do_file_components): New functions.
6150 (html_printer::~html_printer): Handle multiple files.
6151 (main): Handle command line option `-j'.
6153 * src/devices/grohtml/grohtml.man: Updated.
6155 * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
6158 * tmac/www.tmac (JOBNAME): New macro.
6159 * tmac/s.tmac (SH-NO-TAG): New macro.
6160 (@SH): Call SH-NO-TAG.
6163 2003-07-05 Ruslan Ermilov <ru@FreeBSD.org>
6165 * tmac/groff_mdoc.man: Improve documentation of punctuation
6168 2003-07-04 Ruslan Ermilov <ru@FreeBSD.org>
6170 * tmac/doc.tmac (Bd): Change to doc-Li-font later.
6172 2003-07-03 Werner LEMBERG <wl@gnu.org>
6174 * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
6176 2003-07-01 Ruslan Ermilov <ru@FreeBSD.org>
6178 * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
6179 after `/*' and `*/'.
6181 (Fn, Fo): Reduce indentation in synopsis.
6183 * tmac/doc-common (doc-check-depth): New macro.
6184 (doc-end-macro, Sh, Ss): Use it.
6185 (Cd): Fix behaviour in synopsis.
6186 (In): Make it parsed and callable.
6187 If not in the synopsis, represent the C header file enclosed in
6189 (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
6190 Use minus, not hyphen.
6192 * tmac/groff_mdoc.man: Updated.
6194 2003-07-01 Werner LEMBERG <wl@gnu.org>
6196 Integrated grap2graph, contributed by Eric S. Raymond.
6198 * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
6200 * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
6201 contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
6203 2003-07-01 Colin Watson <cjwatson@debian.org>
6205 * src/xditview/*.c: Add prototypes, fix return types, add includes.
6206 Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
6208 2003-06-31 Ruslan Ermilov <ru@FreeBSD.org>
6210 * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
6212 2003-06-31 Werner LEMBERG <wl@gnu.org>
6214 * doc/Makefile.sub (CLEANADD): Remove all files created by
6215 running `make groff.{pdf,dvi}'.
6217 * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
6220 2003-06-30 Werner LEMBERG <wl@gnu.org>
6222 * Makefile.in (SHELL): Define as @SHELL@.
6223 (mkinstalldirs): Use $(SHELL).
6224 (MDEFINES): Add $(SHELL).
6225 * Makefile.comm (SHELL): Removed.
6227 2003-06-29 Werner LEMBERG <wl@gnu.org>
6229 * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
6230 The X11 documentation files use them.
6231 * tmac/groff_ms.man, doc/groff.texinfo: Document them.
6233 2003-06-15 Robert Goulding <goulding@Princeton.EDU>
6235 * tmac/e.tmac (@C): Handle .ad also.
6237 2003-06-12 Werner LEMBERG <wl@gnu.org>
6239 * src/preproc/tbl/tbl.man: Document formatting of text blocks.
6241 * src/roff/troff/input.cc (token::next) <handle_escape_char>:
6242 Assign `n' even here. It is possible to construct a node
6243 immediately following an escape character:
6251 2003-06-10 Werner LEMBERG <wl@gnu.org>
6253 * README.WIN32: Removed.
6254 * MANIFEST: Updated.
6256 2003-06-07 Werner LEMBERG <wl@gnu.org>
6258 * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
6260 2003-06-05 Werner LEMBERG <wl@gnu.org>
6262 * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
6263 in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
6265 2003-06-03 Werner LEMBERG <wl@gnu.org>
6267 * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
6268 is done by the calling function.
6270 2003-05-22 Ruslan Ermilov <ru@FreeBSD.org>
6272 * tmac/X.tmac: Fix definition of `em'.
6274 2003-05-22 Werner LEMBERG <wl@gnu.org>
6276 * src/roff/troff/input.cc (return_macro_request): Fix detection of
6279 2003-05-18 Werner LEMBERG <wl@gnu.org>
6281 * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
6282 to make items work which consist only of a tag.
6284 2003-05-17 Werner LEMBERG <wl@gnu.org>
6286 * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
6287 aren't stretched in a tag (this can fail with unformatted boxes).
6288 Instead, insert a break and go back one line.
6290 2003-05-16 Werner LEMBERG <wl@gnu.org>
6292 * src/roff/troff/input.cc (return_macro_request): If called with
6293 argument pop macro twice. We need this to trace `return'.
6295 * tmac/trace.tmac: Handle `return'.
6298 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
6301 2003-05-15 Larry Kollar <kollar@alltel.net>
6303 * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
6304 registers `FPS', `FVS', and `FPD'.
6306 2003-05-15 Werner LEMBERG <wl@gnu.org>
6308 * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
6311 2003-05-03 Ruslan Ermilov <ru@FreeBSD.org>
6313 * tmac/groff_mdoc.man: Slight improvements.
6315 2003-05-03 Werner LEMBERG <wl@gnu.org>
6317 * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
6318 `doc-header-space' after header line if register `cR' is set.
6320 2003-05-02 Werner LEMBERG <wl@gnu.org>
6324 2003-05-01 Ruslan Ermilov <ru@FreeBSD.org>
6326 * tmac/doc-common (Nd): Use \[em].
6328 2003-05-01 Werner LEMBERG <wl@gnu.org>
6330 * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
6331 doc-footer-space): Initialize to 0.5i.
6332 (doc-setup-page-layout): Don't set doc-header-space and
6335 2003-04-30 Werner LEMBERG <wl@gnu.org>
6337 * REVISION: Set to 1.
6339 * doc/pic.ms: Document possible problems with `figname'.
6341 2003-04-29 Werner LEMBERG <wl@gnu.org>
6343 Version 1.19 released
6344 =====================
6346 * VERSION: Set to 1.19.
6347 * REVISION: Set to 0.
6348 * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
6350 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
6351 Define charset as `US-ASCII' in html output.
6353 * tmac/www.tmac (ULE): Add missing scaling indicator.
6355 * win32-diffs: Removed.
6357 2003-04-28 Werner LEMBERG <wl@gnu.org>
6359 * doc/groff.texinfo: Document `dn' and `dl' registers if used with
6361 Document how to insert discardable whitespace with `.ss'.
6363 2003-04-27 Werner LEMBERG <wl@gnu.org>
6365 * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
6366 work with plain TeX also.
6368 * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
6370 2003-04-25 Gaius Mulley <gaius@glam.ac.uk>
6372 * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
6375 2003-04-24 Werner LEMBERG <wl@gnu.org>
6377 * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
6378 vbox with positive height and zero depth if in TeX mode.
6380 * NEWS: Document glyph name changes for grodvi and grolj4.
6382 2003-04-23 Werner LEMBERG <wl@gnu.org>
6384 * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
6385 * doc/pic.ms: Fixed.
6387 2003-04-21 Werner LEMBERG <wl@gnu.org>
6389 HP-UX 10.20 has `snprintf' but it isn't declared.
6391 * configure.ac: Add declaration test for snprintf.
6392 * configure: Regenerated.
6393 * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
6394 * src/include/config.hin: Regenerated.
6396 2003-04-19 Werner LEMBERG <wl@gnu.org>
6398 Add keyword `figname' to pic, specifying the name of the picture
6399 box in TeX mode. Based on a patch from William J Poser
6400 <wjposer@unagi.cis.upenn.edu>.
6402 * src/preproc/pic/pic.y: New token `FIGNAME'.
6403 (macro_name): New rule of type <str>.
6404 (placeless_element): Handle `FIGNAME'.
6405 * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
6406 * src/preproc/pic/main.cpp (graphname): New global variable.
6407 (do_picture): Initialize `graphname'.
6408 * src/preproc/pic/pic.h: Updated.
6409 * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
6412 (tex_output::text): Beautify output.
6413 * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
6414 `shaded' and `outlined' unconditionally.
6415 * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
6418 * PROBLEMS, README.CVS: Mention that bison version 1.875b or
6419 greater is necessary.
6421 2003-04-17 Hartmut Henkel <hartmut_henkel@gmx.de>
6423 Add option -r to soelim to avoid emission of `.lf' lines.
6424 Add option -t to produces TeX comment lines instead of `.lf' lines.
6426 * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
6429 (main): Handle `-r' and `-t'.
6430 (set_location): Handle `raw_flag' and `tex_flag'.
6431 * src/preproc/soelim/soelim.man, NEWS: Updated.
6433 2003-04-17 Werner LEMBERG <wl@gnu.org>
6435 * tmac/hyphenex.sh: Replaced with...
6436 * tmac/hyphenex.pl: This perl script to avoid sed compatibility
6439 * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
6440 if --quiet is used for the configure script.
6441 * configure: Regenerated.
6443 2003-04-16 Werner LEMBERG <wl@gnu.org>
6445 * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
6446 Add `const' to second argument.
6447 (html_printer::add_table_end): Add `const' to argument.
6448 * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
6449 `const' to arguments.
6450 * src/devices/grohtml/html-text.h: Updated.
6452 * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
6453 * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
6456 * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
6457 cast for integer constant.
6459 * src/preproc/html/pre-html.cpp (image_device): Use `const'.
6460 (writeNbytes): Add `const' to first argument.
6461 (writeString): Add `const' to argument.
6462 (char_buffer::can_see): Add `const' to third argument.
6463 * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
6464 `const' to argument.
6465 * src/preproc/html/pushback.h: Updated.
6467 * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
6468 (include_path_append): Add `const' to argument.
6471 * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
6473 (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
6474 * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
6476 (unicode_decompose_init::unicode_decompose_init): Updated.
6477 * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
6479 (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
6480 * src/roff/troff/input.cc (process_startup_file): Add `const' to
6483 * tmac/hyphenex.sh: Make script more portable by using a here
6486 2003-04-15 Werner LEMBERG <wl@gnu.org>
6488 Renamed all `*.cc' files to `*.cpp'.
6489 Updated all configuration files, makefiles, and documentation.
6491 2003-04-14 Werner LEMBERG <wl@gnu.org>
6493 * tmac/hyphenex.sh: Slight improvements.
6495 2003-04-13 Werner LEMBERG <wl@gnu.org>
6497 * font/devascii/R.proto, font/devcp1037/R.proto,
6498 font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
6499 character slots with unnamed glyphs.
6501 * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
6502 (an-first): New global variable.
6503 (an-header): Emit vertical space between multiple man pages.
6505 2003-04-11 Werner LEMBERG <wl@gnu.org>
6507 * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
6510 2003-04-10 Werner LEMBERG <wl@gnu.org>
6512 * PROBLEMS: Revised.
6514 2003-04-10 Bernd Warken <bwarken@mayn.de>
6516 * doc/webpage.ms: Improved.
6518 2003-04-09 Werner LEMBERG <wl@gnu.org>
6520 Add register \n[.height] which returns the value of \H.
6521 Add register \n[.slant] which returns the value of \S.
6523 * src/roff/troff/env.cc (init_env_requests): Implement.
6524 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
6527 2003-04-08 Werner LEMBERG <wl@gnu.org>
6529 * tmac/html.tmac: Move some of the data into html-end.tmac.
6530 Remove most of the character translations for eqn since html fonts
6531 now cover those characters.
6533 * tmac/html-end.tmac: New file.
6534 * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
6535 * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
6536 * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
6538 2003-04-07 Werner LEMBERG <wl@gnu.org>
6540 * man/groff_out.man: Document negative values of `N' if -Thtml is
6543 2003-04-06 Werner LEMBERG <wl@gnu.org>
6545 * Makefile.comm (depend.temp): Check location of YTABC.
6547 2003-04-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6549 * doc/Makefile.in (TROFFBIN): New variable for troff
6551 (GROFFBIN): New variable for groff binary path.
6552 (groff_bin_path): Rename to GROFF_BIN_PATH.
6553 (TROFF): Use TROFFBIN.
6554 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
6555 * doc/Makefile.sub (GROFFBIN): New variable for groff
6557 (groff_bin_path): Rename to GROFF_BIN_PATH.
6558 (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
6560 * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
6561 with INSTALL_SCRIPT.
6562 (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
6563 * Makefile.dev (all): Depend on DEVSCRIPTS.
6564 (install_dev): Likewise.
6565 * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
6567 * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
6568 (DEVGENSCRIPTS): New variable to hold generated scripts.
6570 2003-04-05 Werner LEMBERG <wl@gnu.org>
6572 * src/libs/libdriver/input.cc (IntArray::operator[],
6573 IntArray::get_data): Remove meaningless `const' in return value.
6575 * README.CVS: New file.
6577 2003-04-04 Werner LEMBERG <wl@gnu.org>
6579 Check for stdint.h in C++, not in C.
6581 * aclocal.m4 (GROFF_STDINT_H): New function,
6582 * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
6584 * configure, src/include/config.hin: Regenerated.
6585 * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
6588 Fix handling of in grohtml. To do this, troff emits `N'
6589 with a negative value, representing the width of the unbreakable
6590 space (only for -Thtml). grohtml then converts this back to
6591 and uses the value of N as its width.
6593 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
6594 unbreakable_space_node::tprint): Emit `N-<width>'.
6595 * src/include/printer.h (printer::set_numbered_char): Make it
6597 Make members `font_table' and `nfonts' protected instead of private.
6598 * src/devices/grohtml/post-html.cc
6599 (html_printer::set_numbered_char): New member function.
6602 * src/libs/libgroff/maxfilename.cc:
6603 s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
6605 * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
6608 2003-04-03 Sergey A. Osokin <osa@freebsd.org.ru>
6610 * man/roff.man: Small fixes.
6612 2003-04-03 Werner LEMBERG <wl@gnu.org>
6614 Make groff independent from locale's numeric settings.
6616 * configure.ac: Check for `setlocale'.
6617 * configure, src/include/config.hin: Regenerated.
6619 * src/include/lib.h: Handle HAVE_SETLOCALE.
6621 * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
6622 (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
6623 (main), src/preproc/pic/main.cc (main): Call `setlocale'.
6626 * doc/groff.texinfo: Change dir category to `Typesetting'.
6627 (Man font macros): Mention that there is no space between arguments
6630 * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
6631 (*printer::change_color, *printer::change_fill_color): Add missing
6634 2003-04-02 Werner LEMBERG <wl@gnu.org>
6636 * src/devices/grohtml/html-table.cc (html_table::emit_col,
6637 html_table::is_gap): Compute table widths after converting border
6638 positions to avoid rounding errors.
6640 2003-04-01 Werner LEMBERG <wl@gnu.org>
6642 * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
6643 `space_emitted' properly.
6645 2003-03-31 Werner LEMBERG <wl@gnu.org>
6647 * src/devices/grohtml/html-table.cc: Fix column width calculation.
6648 (html_table::set_linelength): Don't add 1.
6649 (html_table::add_indent): Don't subtract 1.
6651 * tmac/html.tmac: Set default page offset to zero.
6653 2003-03-30 Werner LEMBERG <wl@gnu.org>
6655 Make groff emit ` ' for `\ ' and `\~' if `-Thtml' is used.
6657 * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
6658 unbreakable_space_node::tprint): New functions.
6659 (troff_output_file): Make space_char_hmotion_mode::tprint and
6660 unbreakable_space_node::tprint to friends.
6661 * src/roff/troff/node.h: Updated.
6663 * font/devhtml/R.proto: Add ` ' at position 0xA0 (as defined
6664 in the HTML standard).
6666 2003-03-29 Werner LEMBERG <wl@gnu.org>
6668 * src/roff/troff/env.cc (point_size): Fix emission of html tag.
6669 Otherwise, the following code
6678 produces `x a' instead of `xa'. This is a temporary fix, disabling
6679 font changes in diversions for -Thtml.
6681 * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
6683 (an-do-tag-html): Merge with ...
6684 (an-do-tag): This macro.
6685 Change code slightly to circumvent grohtml bug.
6686 * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
6688 * src/devices/grohtml/html-table.cc (html_table::emit_col,
6689 html_table::is_gap): Round `width' properly.
6691 * tmac/html.tmac: Provide some default layout parameters for
6694 * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
6697 2003-03-28 Werner LEMBERG <wl@gnu.org>
6699 src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
6701 2003-03-27 Werner LEMBERG <wl@gnu.org>
6703 * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
6706 2003-03-20 Werner LEMBERG <wl@gnu.org>
6708 * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
6710 * doc/groff.texinfo: Updated.
6712 2003-03-19 Werner LEMBERG <wl@gnu.org>
6714 * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
6715 TOKEN_END_TRAP>: Reset `have_input'.
6717 2003-03-18 Werner LEMBERG <wl@gnu.org>
6719 * src/roff/groff/groff.man: Mention groff_trace man page.
6721 2003-03-16 Werner LEMBERG <wl@gnu.org>
6723 * Makefile.in (LIBEXT): New variable to indicate the file extension
6724 of library files. Computed heuristically from $(OBJEXT).
6725 (MDEFINES): Add $(LIBEXT).
6726 * Makefile.lib, Makefile.comm: Use it.
6728 * src/utils/pfbtops/pfbtops.c (get_text): New function. Split
6729 overlong lines into smaller chunks.
6730 (get_binary): New function.
6732 * src/utils/pfbtops/pfbtops.man: Updated.
6734 2003-03-15 Colin Watson <cjwatson@debian.org>
6736 * src/roff/groff/groff.man: Minor syntax fix.
6738 2003-03-14 Egil Kvaleberg <egil@kvaleberg.no>
6740 * src/devices/grops/ps.cc (ps_printer::media_set,
6741 ps_printer::~ps_printer): Handle zero paper width and length.
6743 2003-03-13 Werner LEMBERG <wl@gnu.org>
6745 Add options -p and -l to grodvi.
6747 * src/devices/grodvi/dvi.cc: Include paper.h.
6748 (landscape_flag, user_paper_length, user_paper_width): New global
6750 (dvi_printer::begin_page): Emit `papersize' special.
6751 Set color after initialization of `cur_h' and `cur_v'.
6752 (main): Add options `-l' and `-p'.
6753 * font/devdvi/Makefile.sub (DESC): Set `papersize'.
6754 * src/devices/grodvi/grodvi.man, NEWS: Updated.
6756 * src/devices/grops/psrm.cc (valid_input_table): Fixed.
6758 2003-03-12 Werner LEMBERG <wl@gnu.org>
6760 * src/devices/grops/grops.man: Move documentation of .PSPIC to...
6761 * man/groff_tmac.man: This man page.
6762 * man/groff_font.man: Declare `paperwidth' and `paperlength' as
6765 * tmac/X.tmac: Don't load pspic.tmac.
6767 2003-03-11 Werner LEMBERG <wl@gnu.org>
6769 Make variable `pr' local to libdriver/input.cc. Based on a patch
6770 by Bernd Warken <bwarken@mayn.de>.
6772 * src/include/driver.h (pr): Removed.
6774 * src/libs/libdriver/input.cc (pr): New global variable.
6775 (do_file): Deallocate `pr'.
6776 * src/libs/libdriver/printer.cc (pr): Removed.
6778 * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
6779 (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
6780 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
6781 (main): Don't delete `pr'.
6783 2003-03-10 Werner LEMBERG <wl@gnu.org>
6785 * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
6786 * tmac/papersize.tmac: New file.
6787 * tmac/troffrc: Include `papersize.tmac'.
6788 * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
6789 * tmac/an-old.tmac: Set LT to LL by default.
6791 * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
6792 doc/groff.texinfo: Updated.
6794 * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
6795 bug which caused all odd iso papers to have wrong dimensions.
6797 * src/devices/grops/ps.cc (user_paper_width): New global variable.
6798 (main) <'p'>: Set `user_paper_width' also.
6799 (ps_printer::media_width, ps_printer::media_height): Use values
6800 given with option `-p'.
6802 2003-03-09 Werner LEMBERG <wl@gnu.org>
6804 * src/include/nonposix.h: Provide default for SET_BINARY.
6806 * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
6807 src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
6810 * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
6811 (main): Treat \r\n as \n.
6813 2003-03-08 Werner LEMBERG <wl@gnu.org>
6815 * tmac/an-old.tmac: Use register `HY' to control hyphenation.
6816 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
6818 2003-03-07 Werner LEMBERG <wl@gnu.org>
6820 Added support to access more than 256 glyphs in Type 1 fonts.
6822 * src/devices/grops/ps.cc (subencoding): New structure.
6823 (style): Add `sub' field.
6825 (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
6826 Add `set_subencoding', `get_subfont' and `encode_subfont' member
6829 (ps_printer::set_char): Use `set_subencoding'.
6830 (make_subencoding_name): New function.
6831 (ps_printer::set_style): Handle case where `sty.sub' is not zero.
6832 (ps_printer::~ps_printer): Emit subencoding definitions.
6834 * src/devices/grops/psrm.cc (valid_input_table): New array to
6835 properly support EBCDIC.
6836 (white_space): Add `\f'.
6837 (ps_get_line): Change first argument to be of type `string &'.
6838 Updated all callers.
6839 This allows to get lines of arbitrary length.
6840 Use `valid_input_table'.
6841 Remove warning about non-conforming PS line length. This seems
6842 not to be of great importance -- for example, dvips don't emit
6844 (PS_LINE_MAX): Removed.
6845 (matches_comment): Change first argument to be of type `string &'.
6847 * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
6849 * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
6850 %AGL_to_unicode, %default_ligatures): New hash tables.
6851 Read all map entries.
6852 Add unencoded characters.
6853 Check for default ligatures if there are no `L' entries.
6854 Print all kern entries.
6855 Print all characters in charset.
6856 * src/utils/afmtodit/afmtodit.man: Updated.
6858 * font/devps/*: Regerated all fonts.
6860 * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
6861 of characters, just use `.trin'. Otherwise the mapping depends
6862 on the font encoding.
6863 * tmac/ps.tmac: Add `fi' and `fl'.
6864 Improve `Fi' and `Fl'.
6865 * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
6866 * tmac/Xps.tmac: Fix `em'.
6870 2003-03-04 Werner LEMBERG <wl@gnu.org>
6872 * src/roff/troff/input.cc (charinfo_to_node_list): Reset
6875 2003-03-03 Werner LEMBERG <wl@gnu.org>
6877 * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
6879 * font/devps/generate/textmap: Remove entry `similarequal'.
6880 * font/devps/symbolmap: Updated.
6882 2003-03-02 Werner LEMBERG <wl@gnu.org>
6884 * src/libs/libgroff/font.cc (font::load): Fix error message for
6887 * src/devices/grops/grops.man: Improve documentation of the -b
6890 * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
6891 `ascii' and `cp1047'.
6893 2003-03-01 Werner LEMBERG <wl@gnu.org>
6895 Document composite glyphs and the `composite' request.
6897 * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
6899 2003-02-28 Werner LEMBERG <wl@gnu.org>
6901 * font/devdvi/generate/ec.map: Add some more Unicode entities.
6902 * font/devdvi/*EC: Updated.
6904 * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
6905 * tmac/latin1 (latin1-tr): Undo any previous mapping.
6906 * tmac/troffrc: Load `composite.tmac'.
6907 * tmac/Makefile.sub (NORMALFILES): Updated.
6909 * doc/groff.texinfo (Input Encodings): New section.
6912 2003-02-27 Werner LEMBERG <wl@gnu.org>
6914 * doc/texinfo.tex: New version 2003-02-11.06.
6916 * tmac/doc-common (Dt): Don't emit warning for unknown section.
6917 * tmac/groff_mdoc.man: Fix description of `Dt'.
6919 2003-02-26 Egil Kvaleberg <egil@kvaleberg.no>
6921 * font/devps/prologue.ps: Fix for included Postscript that does
6922 a setpagedevice -- which is now safely ignored.
6926 * src/devices/grops/ps.cc: Now sets the page size in the generated
6927 document. This is done in two ways: Via a %%-comment for gv and
6928 the like, and via a PageSize and setpagedevice for programs that
6929 understands Postscript proper, like ps2pdf.
6931 * src/devices/grops/ps.h: New broken-flag to avoid page size
6932 definition, if required.
6934 * src/devices/grops/grops.man: New broken-flag 16 mentioned.
6936 * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
6937 Not really necessary due to the fix in prologue.ps, but cleaner:
6938 Such information does not belong in an .eps file.
6940 * doc/Makefile.sub: See doc/Makefile.in.
6942 2003-02-26 Ralph Corderoy <ralph@inputplus.co.uk>
6944 * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
6945 instead of P1 since the latter is broken in some versions of netpbm.
6946 * configure: Updated.
6948 2003-02-26 Larry Kollar <kollar@alltel.net>
6950 Make man pages more customizable.
6952 * tmac/an-old.tmac (FT): New register holding footer distance from
6954 (HF): New string holding the default heading font.
6955 (TH): Handle registers `IN' and `SN' set on the command line.
6957 (PT, BT): New strings to customize header and footer lines.
6958 (an-header, an-footer): Use them.
6960 * tmac/groff_man.man: Document changes.
6962 * doc/groff.texinfo: Document man changes.
6963 Document Ultrix extensions of man.
6965 2003-02-26 Werner LEMBERG <wl@gnu.org>
6967 * src/roff/troff/input.cc (do_width, do_if_request): Reset
6968 `have_input' after changing back to old environment.
6970 * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
6971 function up to be defined before first call. This is necessary to
6972 avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
6974 * src/utils/afmtodit/afmtodit.pl: Make script search for files in
6975 the default font directory also. Based on a patch from James
6976 J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
6977 * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
6978 * src/utils/afmtodit/afmtodit.man: Document it.
6982 * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
6984 2003-02-25 Gaius Mulley <gaius@glam.ac.uk>
6986 * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
6987 (GROFF_PNMTOPS_NOSETPAGE): New macro.
6988 * configure.ac: Use it.
6989 * configure: Regenerated.
6990 * Makefile.in: Updated.
6992 * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
6993 (CLEANADD): Add www.tmac-sed.
6994 (pnmtops_nosetpage): Define default.
6995 (install_data): Handle www.tmac-sed and substitute
6996 @PNMTOPS_NOSETPAGE@.
6997 (stamp-sed): Add www.tmac.
6998 * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
6999 It now breaks URLs at suitable places.
7000 (www:substring_ok): New register set by...
7001 (www:@test_substring): New macro.
7002 (www:error): New alias to www-error.
7003 (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
7005 (URL): Use www:url_breaks.
7006 (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
7007 (CDS, CDE): New macros.
7009 2003-02-25 Werner LEMBERG <wl@gnu.org>
7011 * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
7014 2003-02-24 Werner LEMBERG <wl@gnu.org>
7016 Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
7017 can be negative also.
7019 * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
7021 (read_char_table): Avoid negative ascenders.
7022 (output_charset): Add cast.
7023 * font/devlj4/*: Regenerated.
7025 Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
7028 * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
7029 * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
7031 * font/devdvi/*: Regenerated.
7033 Map `la' and `ra' to U+27E8 and U+27E9. These two characters have
7034 normal width, while the previously used characters (U+2329 and
7035 U+232A) are classified as wide due to canonical equivalence with the
7036 CJK punctuation characters U+3008 and U+3009.
7038 * font/devutf8/R.proto: Updated.
7039 * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
7041 * man/groff_char.man: Simplify handling of table traps by
7042 introducing `start block' and `end block' macros.
7043 (Ns, Ne, 2s, 2e, Ds, De): New macros.
7044 (DL): Make it work with Unix troff also.
7045 Fix code values of `la' and `ra'.
7047 * tmac/dvi.tmac: Define `<>' for CW and CWI.
7049 2003-02-23 Gaius Mulley <gaius@glam.ac.uk>
7051 * src/devices/grohtml/post-html.cc (element_list::~element_list):
7052 New destructor, fixing a major memory leak.
7054 2003-02-22 Werner LEMBERG <wl@gnu.org>
7056 * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
7057 to be in conformance with Unicode 3.0 and newer.
7059 * font/devlj4/generate/text.map: Add `Eu'.
7060 * font/devlj4/generate/special.map: Flip `*e' and `+e'.
7061 * font/devlj4/S: Regenerated.
7063 * man/groff_char.man: Completely rewritten.
7065 * doc/groff.texinfo: Fix description of request and macro arguments.
7067 2003-02-20 Gaius Mulley <gaius@glam.ac.uk>
7071 * src/devices/grohtml/html-table.cc (html_table::~html_table):
7072 Deallocate `columns' list.
7073 * src/devices/grohtml/post-html.cc (char_block::~char_block):
7075 (text_glob::text_glob_html, text_glob::text_glob_special,
7076 text_glob::text_glob_line, text_glob::text_glob_auto_image,
7077 text_glob::text_glob_tag): Avoid memory leaks.
7078 (text_glob::remember_table): Free memory before reassigning.
7080 2003-02-19 Werner LEMBERG <wl@gnu.org>
7082 Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
7083 alias `hbar'), the Planck constant over two pi.
7085 * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
7086 `+e' for position 34.
7087 * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
7088 `u2662' and `u2661'.
7089 * font/devdvi/{MI,S}: Regenerated.
7090 * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
7091 * font/devlbp/*: Add `hbar' alias.
7092 * font/devlj4/generate/special.map: Ditto.
7093 * font/devlj4/S: Regenerated.
7094 * font/devps/generate/symbolchars: Add `+e'.
7095 * font/devps/generate/textmap: Fix PS name for `-h'.
7097 * font/devps/symbolmap: Regenerated.
7099 * src/devices/grops/ps.cc (transform_fill): Removed since unused.
7101 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
7103 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
7106 * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
7108 * tmac/tty-char.tmac: Add `+e'.
7110 2003-02-17 Werner LEMBERG <wl@gnu.org>
7112 Another round trying to really fix problems with `have_input'.
7114 * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
7115 (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
7117 * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
7118 handling if both foreground and background colors are default.
7120 * doc/groff.texinfo (Debugging): Document .lf differences to
7123 2003-02-16 Werner LEMBERG <wl@gnu.org>
7125 * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
7126 null-bytes in created string.
7128 * src/roff/troff/input.cc (lookup_color, interpolate_macro,
7129 alias_macro, lookup_request): Improve warning messages.
7131 * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
7133 Free `last_image_filename'.
7135 * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
7137 (imageList::createPage, imageList::createImage): Use `free', not
7139 (imageItem::~imageItem): Free `imageName'.
7140 (addRegDef): Use `strsave', not `strdup'.
7141 (get_resolution): Free `pathp'.
7143 2003-02-15 Werner LEMBERG <wl@gnu.org>
7145 * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
7148 2003-02-14 Werner LEMBERG <wl@gnu.org>
7150 Add memory management for colors to deallocate unnamed colors
7153 * src/include/color.h (color): New members `free_list' and `next'.
7154 New member functions `new' and `delete'.
7156 * src/libs/libgroff/color.cc: Implement it.
7158 * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
7159 for array size of new operator.
7161 * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
7162 redundant comparison.
7164 * src/roff/troff/input.cc (word_space_node::reread,
7165 hmotion_node::reread): Avoid warning about unused parameter.
7166 (reset_output_registers): Remove redundant parameter.
7167 (define_color): Undo change 2003-02-12.
7169 * src/roff/troff/reg.h: Updated.
7171 * src/roff/troff/node.cc (troff_output_file::really_print_line,
7172 output_file::put_filename, real_output_file::really_put_filename,
7173 ascii_output_file::really_print_line,
7174 break_char_node::get_hyphen_list): Avoid warning about unused
7176 (suppress_node::tprint): Updated.
7178 * configure.ac: Check declaration for rand() and srand().
7179 * configure: Regenerated.
7181 * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
7183 * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
7186 * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
7187 to avoid compiler warnings.
7189 * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
7192 * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
7194 * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
7196 Updated all callers.
7198 * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
7200 * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
7201 * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
7203 * src/devices/grohtml/post-html.cc (html_printer::emit_line):
7204 Parameter is unused.
7205 (html_printer::add_table_end): Define parameter conditionally.
7206 * src/devices/grohtml/output.cc (simple_output::special): Parameter
7209 * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
7210 (lbp_printer::set_char): Last parameter is unused.
7212 * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
7214 2003-02-13 Werner LEMBERG <wl@gnu.org>
7216 New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
7217 Make \D'f ...' move horizontally again for backwards compatibility.
7218 Replace it with \D'Fg ...' where appropriate to avoid dependency
7219 on horizontal resolution.
7221 * src/roff/troff/input.cc (do_get_long_name): New function.
7222 (get_long_name): Call it.
7224 (read_draw_node): Handle `\D'Fx ...' by calling ...
7225 (read_color_draw_node): New function.
7227 (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
7229 Pass it to `do_get_long_name' which is used instead of
7232 * src/libs/libdriver/input.cc (color_from_Df_command): Remove
7233 unnecessary value guard.
7234 (parse_D_command) <'f'>: Add horizontal shift.
7236 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
7237 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
7238 (FILL_MAX): Removed.
7240 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
7243 2003-02-12 Werner LEMBERG <wl@gnu.org>
7245 * src/roff/troff/input.cc (do_name_test, do_expr_test,
7246 do_zero_width): Push `\n' if closing delimiter is missing.
7248 (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
7249 <'F'>: Make \F non-transparent at the beginning of line.
7250 (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
7251 token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
7254 (define_color): Free color in case of reassignment.
7256 * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
7257 @DefescListEnd): Use @Var, not @var.
7260 * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
7262 * src/preproc/pic/object.cc (object_spec::~object_spec): Free
7263 `shaded' and `outlined' arrays.
7264 (object_spec::object_spec): Initialize `shaded' and `outlined'.
7265 (graphic_object::set_fill_color, graphic_object::set_outline_color):
7267 (closed_object::set_fill_color): Ditto.
7268 * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
7270 (troff_output::reset_color): Use a_delete instead of free.
7271 * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
7273 2003-02-11 Werner LEMBERG <wl@gnu.org>
7275 * doc/groff.texinfo: Improve documentation of `ad'.
7276 Document that \D'f...' is dependent on the horizontal resolution.
7277 * man/groff_diff.man: Improve documentation of \D'f...'.
7279 * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
7280 compensating \h'...' for \D'f ...' since the latter no longer moves
7282 * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
7284 2003-02-10 Werner LEMBERG <wl@gnu.org>
7286 Improve error messages for `x F' (and `F') commands.
7288 * src/include/error.h: Add declaration for
7289 `current_source_filename'.
7290 * src/libs/libgroff/filename.cc: Add `current_source_filename'.
7291 * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
7292 parameter for source file string.
7293 Updated all callers.
7295 * src/libs/libdriver/input.cc: Add `current_source_filename'.
7296 (remember_source_filename): New function.
7297 (parse_x_command <'F'>, do_file <'F'>): Use it.
7299 2003-02-09 Werner LEMBERG <wl@gnu.org>
7301 Make grotty not emit warnings about unknown colors more than
7304 * src/devices/grotty/tty.cc: Include `ptable.h'.
7305 (TTY_MAX_COLORS): Removed.
7306 (DEFAULT_COLOR_IDX): Defined to -1.
7307 (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
7308 (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
7309 Change `tty_colors' to be a ptable.
7310 First arg of `put_color' is now `char'.
7311 New functions `make_rgb_string' and `tty_color'.
7312 (tty_printer::tty_printer): Use `tty_color'.
7313 (tty_printer::color_to_idx): Return value is now `char'.
7316 * src/include/color.h (color): Add `print_color' member function.
7317 * src/libs/libgroff/color.cc (color::print_color): Implement it.
7319 2003-02-08 Werner LEMBERG <wl@gnu.org>
7323 * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
7326 * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
7327 assume that value has been allocated with `new[]', thus use
7328 `a_delete' for deallocation.
7330 * src/libs/libdriver/input.cc (get_integer_arg,
7331 get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
7334 * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
7335 * src/libs/libgroff/nametoindex.cc
7336 (character_indexer::named_char_index): Use `new <type>[1]'.
7338 * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
7340 * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
7341 (split_text): Use `a_delete'.
7343 * src/preproc/pic/pic.y (define_label, define_variable): Use `new
7346 * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
7347 harmless memory leak.
7348 (hyphen_trie::read_patterns_file): Initialize `buf'.
7349 * src/roff/troff/node.cc (troff_output_file::troff_output_file):
7350 Initialize `current_fill_color'and `current_glyph_color'.
7351 * src/roff/troff/glyphuni.cc
7352 (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
7353 * src/roff/troff/uniuni.cc
7354 (unicode_decompose_init::unicode_decompose_init): Ditto.
7355 * src/roff/troff/uniglyph.cc
7356 (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
7358 2003-01-26 Werner LEMBERG <wl@gnu.org>
7360 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
7361 `access' before calling `unlink'.
7362 (do_file): Handle __EMX__.
7364 * src/include/nonposix.h: Handle __EMX__.
7366 * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
7367 (fontpath,tmacpath): Use it.
7369 Sorted alphabetically.
7371 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
7373 * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
7376 2003-01-27 Werner LEMBERG <wl@gnu.org>
7378 * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
7379 New files, copied from gnulib.
7380 * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
7381 * configure.ac: Updated.
7382 * configure: Regenerated.
7384 * src/include/config.hin: Regenerated.
7385 * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
7386 Don't define `strcasecmp' as `strcmp'.
7387 [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
7388 Dont define `strncasecmp' as `strncmp'.
7390 * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
7393 2003-01-26 Werner LEMBERG <wl@gnu.org>
7395 * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
7398 2003-01-25 Werner LEMBERG <wl@gnu.org>
7400 * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
7402 2003-01-24 Werner LEMBERG <wl@gnu.org>
7404 Add US-english hyphenation exceptions (converted from Barbara
7405 Beeton's hyphenation exception log reports which appear irregularly
7408 * tmac/hyphen.us: Updated to latest version.
7409 * tmac/README: Updated.
7410 * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
7411 * tmac/troffrc: Load `hyphenex.us'.
7412 * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
7413 * doc/groff.texinfo: Updated.
7415 2003-01-23 Werner LEMBERG <wl@gnu.org>
7417 Improve hyphenation slightly. This is a first step in redesigning
7418 the hyphenation algorithm to make it more flexible (e.g. allowing
7419 kerns and ligatures between the hyphenation character and the
7420 following character -- while not used normally in English, other
7421 languages like German would benefit).
7423 * src/roff/troff/env.cc (environment::hyphenate_line): Use
7424 assertion instead of if-clause.
7425 Let `get_hyphen_list' return the number of involved characters in
7426 the hyphenation pattern instead of computing it directly (which
7427 often yields too small values).
7428 * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
7429 * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
7432 2003-01-22 Werner LEMBERG <wl@gnu.org>
7434 Fixing a bug which caused groff to hang if the hyphenation exception
7435 dictionary tried to grow.
7437 * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
7438 hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
7439 pointer to dictionary.
7441 2003-01-20 Werner LEMBERG <wl@gnu.org>
7443 * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
7444 negative left italic correction.
7445 * src/utils/afmtodit/afmtodit.man: Document it.
7447 * font/devps/generate/Makefile (RFLAG): Add `-m'.
7448 * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
7449 S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
7453 2003-01-16 Werner LEMBERG <wl@gnu.org>
7457 2003-01-16 Jörgen Grahn <jgrahn@algonet.se>
7459 * src/preproc/refer/refer.man: Mention REFER environment variable.
7461 2003-01-05 Werner LEMBERG <wl@gnu.org>
7463 Similar to \[is], the square root glyph (\[sr]) and the square root
7464 extension glyph (\[radicalex]) are now text symbols. The new
7465 mathematical versions are called \[sqrt] and \[sqrtex],
7468 * font/devX*/S: Regenerated.
7469 * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
7470 * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
7471 * font/devdvi/EX, font/devdvi/S: Regenerated.
7472 * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
7473 * font/devlj4/generate/special.map: Add `sqrt'.
7474 * font/devlj4/S: Regenerated.
7475 * font/devps/generate/textmap: Add `sqrt'.
7476 * font/devps/S, font/devps/symbolmap: Regenerated.
7478 * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
7479 SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
7480 * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
7481 overlap horizontally.
7483 * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
7484 * tmac/dvi.tmac: Add `sr', and `sqrtex'.
7487 * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
7488 and `sqrtex' are overlapping glyphs.
7490 2003-01-04 Werner LEMBERG <wl@gnu.org>
7492 * font/devdvi/generate/texsy.map: Add `is'.
7493 * font/devps/symbolmap: Regenerated.
7494 * font/devdvi/*TC, MI, S: Regenerated.
7496 * tmac/dvi.tmac: Remove `is'.
7498 2003-01-03 Werner LEMBERG <wl@gnu.org>
7500 `is' is now a text symbol (only relevant for dvi). The math variant
7501 can be accessed with `integral'.
7503 * font/devX*/S: Regenerated.
7504 * font/devdvi/generate/texex.map: Remove `is'.
7505 * font/devdvi/EX: Updated.
7506 * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
7507 * font/devlj4/generate/special.map: Ditto.
7508 * font/devlj4/S: Regenerated.
7509 * font/devps/generate/textmap: Add `integral'.
7510 * font/devps/S: Regenerated.
7512 * tmac/dvi.tmac: Define `is'.
7514 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
7516 * src/preproc/tbl/main.cc (process_format): Fix error message.
7518 2003-01-02 Werner LEMBERG <wl@gnu.org>
7520 * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
7521 * font/devps/textmap: Fix entries for `ne' and `nc'.
7522 * font/devps/symbolmap: Regenerated.
7524 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
7525 src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
7526 `38', `58', `78', `-+', `|=', `nc', `ne'.
7528 * tmac/dvi.tmac: Add `nm', `ne', `nc'.
7529 Use `schar' for `aq'.
7530 * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
7531 * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
7532 * tmac/tty.tmac: Add `ne'.
7534 * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
7535 for fallback glyphs.
7537 2002-12-29 Werner LEMBERG <wl@gnu.org>
7541 * font/devX*/*: Regenerated.
7542 * font/devdvi/generate/ec.map: Remove `eq'.
7543 * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
7544 Assign `|=' to position 39.
7545 * font/devdvi/*EC, S: Regenerated.
7546 * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
7547 * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
7548 Assign `|=' to position 549.
7549 * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
7551 Add `uni2243' for `|='.
7553 * tmac/ec.tmac: Add `eq'.
7554 * tmac/dvi.tmac: Add `=~'.
7555 * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
7558 2002-12-21 Werner LEMBERG <wl@gnu.org>
7560 * font/devdvi/generate/tc.map: Remove `**'.
7561 * font/devdvi/*TC: Regenerated.
7562 * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
7564 * font/devutf8/NOTES: Updated.
7566 * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
7567 Don't give default parameter to `set_macro'.
7568 * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
7569 instead of `set_macro'.
7570 (charinfo::setx_macro): Implement it.
7571 (charinfo::set_macro): Don't change `mode'.
7573 * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
7574 * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
7575 * tmac/dvi.tmac: Define `!=' with `.schar'.
7577 2002-12-20 Werner LEMBERG <wl@gnu.org>
7579 * font/devX*/S: Regenerated.
7580 * font/devdvi/generate/ec.map: Remove `pl'.
7581 * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
7582 * font/devdvi/*{TC,EC}: Regenerated.
7583 * font/devhtml/R.proto: Add `-+'.
7584 Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
7585 * font/devlbp/*: Remove `or'.
7586 * font/devlj4/generate/special.map: Remove `or'.
7587 * font/devlj4/S: Regenerated.
7588 * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
7589 `seveneighths', `threeeighths'.
7591 Replace `minusplus' with `uni2213'.
7592 * font/devps/symbolmap: Regenerated.
7593 * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
7596 * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
7598 * src/roff/troff/node.cc (troff_output_file::put_char_width):
7599 Call glyph_color and fill_color even if tcommand_flag isn't set.
7600 (make_node, node::add_char): Check not ci->is_fallback but
7603 * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
7604 * tmac/ec.tmac: Add .rchar entry for `f/'.
7605 Don't remove `12', `14', `34'.
7606 Define `pl' to be always roman.
7607 * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
7608 Define `18', `38', `58', `78'.
7609 * tmac/tty.tmac: Add `-+'.
7610 * tmac/dvi.tmac: Define `f/'.
7611 (dvi-frac): Use `f/'.
7612 * tmac/X.tmac (X-frac, X-frac-mono): New macros.
7613 Define `18', `38', `58', `78'.
7615 2002-12-15 Colin Watson <cjwatson@debian.org>
7617 * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
7619 2002-12-10 Werner LEMBERG <wl@gnu.org>
7621 Add glyph `tno', a textual variant of `no'.
7623 * font/devX*/*: Regenerated.
7624 * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
7625 * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
7626 * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
7627 * font/devdvi/*: Regenerated.
7628 * font/devlbp/*: Add `tno'.
7629 * font/devlj4/generate/tex.map: Replace `no' with `tno'.
7630 * font/devlj4/*: Regenerated.
7631 * font/devps/generate/textmap: Replace `no' with `tno'.
7632 * font/devps/generate/symbolchars: Add `no'.
7633 * font/devps/*: Regenerated.
7635 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
7637 * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
7638 * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
7642 * tmac/dvi.tmac: Replace most `\\' with `\E'.
7643 Add definition for `sd'.
7644 * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
7646 * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
7648 2002-12-08 Werner LEMBERG <wl@gnu.org>
7650 * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
7651 mode to avoid rounding errors.
7652 (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
7654 * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
7655 src/roff/troff/troff.man: Improve documentation of -T.
7657 2002-12-07 Jeff Conrad <jeff_conrad@msn.com>
7659 * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
7660 (run_pipeline) [_WIN32]: Provide working function without `fork'.
7662 2002-12-06 Werner LEMBERG <wl@gnu.org>
7664 * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
7665 glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
7666 Scaling Euro.sansserif glyphs down to have the same height as
7668 Removed unnecessary points; added some extrema.
7670 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
7673 2002-12-04 Werner LEMBERG <wl@gnu.org>
7675 * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
7676 and `Euro.symbol.bold.slanted'.
7677 Improve some glyph offsets and widths.
7678 * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
7680 * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
7682 * font/devps/generate/sfdtopfa.pe: Generate PFA in current
7685 * tmac/europs.tmac: Updated to new glyph indices.
7686 Use Euro.symbol for font familiy `A'.
7688 * doc/groff.texinfo: Minor improvements.
7690 2002-12-02 Werner LEMBERG <wl@gnu.org>
7692 * font/devdvi/generate.tc.map: s/%O/%0/.
7693 * font/devdvi/*TC: Regenerated.
7695 * src/roff/troff/div.cc (init_div_requests): Sorted.
7697 * tmac/dvi.tmac: Remove `Ye'.
7698 * tmac/ec.tmac: Remove `Ye'.
7699 Add .rchar entry for `de'.
7701 * man/groff.man, man/groff_diff.man: Document register `.pe'.
7702 * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
7705 2002-11-30 Werner LEMBERG <wl@gnu.org>
7707 Add PS font for various Euro glyphs.
7709 * font/devps/generate/freeeuro.sfd: New master font file for
7711 * font/devps/generate/sfdtopfa.pe: New conversion script for
7713 * font/devps/generate/Makefile (FONTS): Add `EURO'.
7714 (EURO, freeeuro.afm, freeeuro.pfa): New rules.
7715 * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
7717 * font/devps/EURO: Generated from `freeeuro.afm'.
7718 * font/devps/download: Add `freeuro.pfa'.
7719 * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
7722 * tmac/europs.tmac: New file.
7723 * tmac/ps.tmac: Include `europs.tmac'.
7724 * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
7726 2002-11-29 Werner LEMBERG <wl@gnu.org>
7728 * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
7729 * font/devdvi/S: Regenerated.
7730 * font/devhtml/R.proto: Fix `CR' and `ci'.
7732 * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
7734 * font/devps/symbolmap: Regenerated.
7735 * font/devutf8/R.proto: Fix `CR' and `ci'.
7737 * font/devutf8/NOTES: Updated.
7739 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
7742 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
7744 * tmac/dvi.tmac: Add `lh' and `rh'.
7745 * tmac/Xps.tmac: Fix `lh' and `rh'.
7746 * tmac/X.tmac: Add `OK'.
7747 * tmac/lj4.tmac: Ditto.
7749 2002-11-24 Werner LEMBERG <wl@gnu.org>
7751 * font/devX*/S: Regenerated.
7752 * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
7753 `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
7754 * font/devdvi/generate/texsy.map: Remove `or' glyph.
7755 * font/devdvi/S: Regenerated.
7756 * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
7757 `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
7758 `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
7759 `bracketleftbt', `bracketrighttp', `bracketrightex',
7760 `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
7761 `braceex', `braceleftex', `bracerightex', `bracerighttp',
7762 `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
7764 * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
7765 * font/devutf8/NOTES: Updated.
7766 * font/devlj4/generate/special.map: Add glyph `braceex'.
7767 * font/devlj4/S: Regenerated.
7769 * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
7771 2002-11-14 Werner LEMBERG <wl@gnu.org>
7773 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
7776 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
7778 * doc/texinfo.tex: New version from texinfo 4.3.
7779 * doc/groff.texinfo: Updated for texinfo 4.3.
7780 Use @tie{} where appropriate.
7781 * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
7782 * font/devdvi/generate/tc.map: Remove `rn'.
7783 * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
7784 * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
7786 * font/devX100/*, font/devX100-12/*, font/devX75/*,
7787 font/devX75-12/*: Regenerated.
7789 * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
7790 Use .char (again) for `br', `ul', `rn', `or', and `ru'.
7791 Improve definition of `an'.
7792 * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
7794 * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
7795 * tmac/X.tmac: Add definition for `or'.
7796 * tmac/Xps.tmac: Undo change 2002-11-05.
7797 * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
7799 2002-11-11 Werner LEMBERG <wl@gnu.org>
7801 * src/roff/troff/node.cc (troff_output_file::put_char): Always
7804 2002-11-10 Werner LEMBERG <wl@gnu.org>
7806 Added three new requests `schar', `fschar', and `rfschar'. `schar'
7807 defines a glyph which is searched after the check for fonts declared
7808 with `.special' (and before the check for all mounted special
7809 fonts). `fschar' defines a glyph for a particular font which is
7810 searched after the check for fonts declared with `.fspecial' (and
7811 before the check for fonts declared with `.special'). `rfschar'
7812 removes glyphs defined with `fschar'.
7814 * src/roff/troff/token.h (char_mode): New enum.
7815 Declare do_define_character.
7816 * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
7818 (charinfo::is_fallback): Updated.
7819 (charinfo::is_special): New method.
7820 * src/roff/troff/input.cc (do_define_character): Add and use
7821 optional second parameter used as a prefix for font-specific glyph
7823 (define_character, define_fallback_character): Updated.
7824 (define_special_character): New function.
7825 (init_input_requests): Add `schar'.
7826 (charinfo::charinfo, charinfo::set_macro): Updated.
7827 * src/roff/troff/node.cc: Include `stringclass.h'.
7828 (make_glyph_node): Handle special glyphs defined with `.schar' and
7830 (define_font_special_character, remove_font_special_character): New
7832 (init_node_requests): Sorted.
7833 Add `fschar' and `rfschar'.
7834 * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
7835 Document new requests.
7837 * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
7838 * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
7840 2002-11-08 Werner LEMBERG <wl@gnu.org>
7842 Added new font `SC' (cmtex10) to devdvi.
7844 * devdvi/generate/Makefile (FONTS): Add `SC'.
7846 * devdvi/generate/textex.map: New map file for cmtex.
7848 * devdvi/Makefile.sub (DEVFILES): Updated.
7849 * tmac/dvi.tmac: Add fspecial entries for SC.
7850 Add `MI', `S' and `CW' to the `special' call. Otherwise, `SC' is
7851 found before `S' since the font position of `SC' is lower due to the
7852 gaps in DESC's `font' line.
7853 * tmac/ec.tmac: Add a `special' call.
7856 * font/devhtml/R.proto: Remove double entry for `ti'.
7857 * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
7858 * tmac/tty-char.tmac: Remove entry for `bq'.
7859 * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
7860 * tmac/ec.tmac: Don't remove `aq' glyph.
7861 * tmac/X.tmac: Fix entry for `em'.
7862 Add entries for `fo' and `fc'.
7863 * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
7865 * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
7866 documentation of `special' and `fspecial' requests.
7868 2002-11-05 Werner LEMBERG <wl@gnu.org>
7870 * font/devascii/R.proto, font/devcp1047/R.proto,
7871 font/devlatin1/R.proto: Remove entry for `.i'.
7872 * font/devdvi/generate/textt.map: Add entry for `ad'.
7873 * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
7874 font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
7875 We need this for getting kerning values to compose `/l' and `/L'.
7876 * font/devdvi: Regenerated font definition files for CM fonts.
7877 * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
7878 * font/devutf8/R.proto: Ditto.
7879 Remove double entry for `ti'.
7881 * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
7882 for (groff) ligatures, `la', and `ra'.
7883 Add "'C", "'c", `IJ', and `ij'.
7884 Remove double entry for `ti'.
7885 * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
7887 Add "'C", "'c", `IJ', and `ij'.
7888 Fix entries for (groff) ligatures, `la', and `ra'.
7890 * tmac/ps.tmac (ps-achar): New macro.
7891 Define "'c" and "'C".
7892 * tmac/tty.tmac: Add entry for `.i'.
7893 * tmac/X.tmac (X-achar): New macro.
7894 Define "'c", "'C", and `:Y'.
7895 Add entries for `IJ' and `ij'.
7896 * tmac/Xps.tmac (Xps-achar): New macro.
7897 Define "'c" and "'C".
7898 Add entries for `IJ' and `ij'.
7899 * tmac/lbp.tmac (lbp-achar): New macro.
7900 Add fallback characters for all groff ligatures and many other
7902 * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
7903 Add entries for `/l' and `/L'.
7904 Define "'c" and "'C".
7905 Add entries for `IJ' and `ij'.
7907 2002-11-02 Larry Kollar <kollar@alltel.net>
7909 * PROBLEMS: Document how to solve Mac OS X compilation problems.
7911 2002-11-02 Werner LEMBERG <wl@gnu.org>
7913 Adding support for composite glyphs: \[xxx yyy ...] and the
7914 `composite' request.
7916 * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
7917 to Unicode-based glyph names.
7918 * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
7919 glyph names to groff glyph names.
7920 * src/roff/troff/uniuni.cc: New file for canonically decomposing
7921 Unicode-based glyph names.
7922 * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
7923 for handling Unicode glyph names.
7924 * src/roff/troff/input.cc: Include unicode.h.
7925 (composite_glyph_name): New function.
7926 (token::next) <'['>: Handle Unicode glyph names and composite
7928 (composite_dictionary): New dictionary for the `composite' request.
7929 (composite_request): Implement `composite' request.
7930 (init_input_requests): Add `composite'.
7931 Alphabetically sorted.
7932 * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
7934 (init_env_requests): Alphabetically sorted.
7935 Removed `tas' and `tar' (already commented out).
7936 * src/roff/troff/Makefile.sub: Updated.
7938 2002-10-31 Ruslan Ermilov <ru@FreeBSD.org>
7940 * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
7943 2002-10-29 Werner LEMBERG <wl@gnu.org>
7945 Fix computation of .trunc register. Additionally, its value (and
7946 the value of the .ne register) is now always set before entering the
7949 * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
7950 `needed_space' before calling `space'.
7951 (top_level_diversion::space): Remove special code for 'sp before the
7953 Call `begin_page' with the discarded space as a parameter.
7954 (top_level_diversion::begin_page): Add optional parameter to set
7956 * src/roff/troff/div.h: Updated.
7958 * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
7961 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
7962 (LP): Remove superfluous call to `br'.
7963 * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
7964 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
7966 2002-10-26 Werner LEMBERG <wl@gnu.org>
7968 * tmac/doc-ditroff: Remove useless switch/variable -rC.
7969 (doc-setup-header): Don't set page register `%'.
7970 * tmac/doc-nroff: Remove variable `C'.
7971 (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
7972 (doc-setup-header): Don't set page register `%'.
7974 * tmac/doc-common (doc-header): Call `ns'.
7975 (doc-paragraph): Protect .sp with .br so that it survives traps
7976 possibly set by the user.
7977 * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
7979 * tmac/doc*: Replace ' with . for consistency if no effect.
7981 2002-10-26 Werner LEMBERG <wl@gnu.org>
7983 * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
7984 so that it survives traps possibly set by the user.
7986 * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
7987 (troff_output_file::set_font): Call flush_tbuf if necessary.
7988 (troff_output_file::fill_color, troff_output_file::glyph_color): Call
7989 flush_tbuf and do_motion only if necessary.
7990 (troff_output_file::start_special,
7991 troff_output_file::put_char_width, troff_output_file::put_char,
7992 troff_output_file::draw): Updated.
7993 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
7994 vmotion_node::tprint): Undo change 2002-10-23.
7996 2002-10-25 Werner LEMBERG <wl@gnu.org>
7998 * tmac/www.tmac (DC): Fix case of overlapping images.
8000 2002-10-23 Werner LEMBERG <wl@gnu.org>
8002 * src/roff/troff/node.cc (troff_output_file::fill_color,
8003 troff_output_file::glyph_color): Set current color before testing
8005 (troff_output_file::put_char_width, troff_output_file::put_char,
8006 troff_output_file::draw): Don't call flush_tbuf and/or do_motion
8008 (troff_output_file::file_color, troff_output_file::glyph_color):
8010 (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
8011 vmotion_node::tprint): Move first, then call fill_color.
8013 2002-10-20 Werner LEMBERG <wl@gnu.org>
8015 * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
8016 possible to use multiple main macro packages.
8018 2002-10-19 Werner LEMBERG <wl@gnu.org>
8020 * src/devices/grops/ps.cc (cmyk_flag): New global variable.
8021 (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
8022 (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
8024 * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
8025 `where' construction since `cmyksetcolor' is a PS Level 2 operator.
8027 2002-10-16 Werner LEMBERG <wl@gnu.org>
8029 * NEWS, doc/webpage.ms: Updated.
8031 2002-10-14 Werner LEMBERG <wl@gnu.org>
8033 * src/roff/troff/node.cc (troff_output_file::put_char_width,
8034 troff_output_file::put_char, troff_output_file::fill_color,
8035 troff_output_file::glyph_color): Handle case where color pointer
8038 2002-10-13 Ruslan Ermilov <ru@FreeBSD.org>
8040 Add the new -r option to grotty. It is similar to the -i option
8041 except it tells grotty(1) to use the `reverse video' attribute to
8042 render italic fonts.
8044 * src/devices/grotty/tty.cc (reverse_flag): New global variable.
8045 (SGR_REVERSE, SGR_NO_REVERSE): New macros.
8046 (tty_printer::make_underline, tty_printer::put_color,
8047 tty_printer::end_page): Use it.
8048 (main): Add -r switch.
8050 * src/devices/grotty/grotty.man: Document it.
8052 2002-10-11 Ruslan Ermilov <ru@FreeBSD.org>
8054 * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
8055 cast to `unsigned char' to properly read patterns with 8bit
8058 2002-10-08 Werner LEMBERG <wl@gnu.org>
8060 * REVISION: Increased to 2.
8062 Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008
8063 Free Software Foundation, Inc.
8065 Copying and distribution of this file, with or without modification,
8066 are permitted in any medium without royalty provided the copyright
8067 notice and this notice are preserved.
8070 version-control: never