2008-10-04 Werner LEMBERG * tmac/doc-common (doc-operating-system-*): Update releases. 2008-10-04 Werner LEMBERG * src/roff/troff/input.cpp (do_suppress): Make \O[3], \O[4], and \O[5] non-transparent w.r.t. beginning-of-line recognition (similar to the other \O variants). * tmac/www.tmac (TS, TE, EQ, EN): Don't use .als for setting up default macros. This causes endless loops (at least for TE). * doc/groff.texinfo: Improve documentation of `.als'. 2008-10-03 Werner LEMBERG * src/devices/grops/grops.man, src/roff/troff/troff.man, src/preproc/soelim/soelim.man: Correct documentation of -I switch. Reported by Larry Kollar. Other minor formatting issues. 2008-10-02 Werner LEMBERG * tmac/trace.tmac: Much improved. (trace-full): New register to be set on the command line; it controls whether number and string register assignments get traced also. (!!c): New macro for comments. (rm): New traced macro. (de, de1, am, am1): Use \\[xxx]\\ calling method to pass \$0 to `!!xxx'; this makes doc.tmac completely traceable. Trace call of .de and friends also. * tmac/groff_tmac.man, NEWS: Update. 2008-09-30 Werner LEMBERG Restore behaviour of \$0 if a macro is called with string syntax (problem caused by change on 2008-09-29). * src/roff/troff/input.cpp (input_iterator, input_stack, macro_iterator): Add `get_macro_name' member function. (interpolate_string): Use it. 2008-09-29 Werner LEMBERG Make \\*[xxx]\\ within a macro (with `xxx' a macro too) work as expected. Without the patch, .de aaa \\*[bbb]\\ . tm \\$* .. .de bbb . shift .. .aaa 1 2 3 prints `2 3' instead of `1 2 3'. * src/roff/troff/input.cpp (input_iterator, input_stack, macro_iterator): Add `get_arg_list' member function. (macro): Add `is_a_string', `is_string', and `clear_string_flag' members. Update constructors and operators. (arg_list): Add copy constructor. (macro_iterator): Add optional argument to constructor to indicate whether arguments shall be inherited from calling macro. (interpolate_string): If string argument is a macro, push a macro iterator on the stack. (do_define_macro): Call clear_string_flag if macro data contains a newline. * src/roff/troff/request.h: Updated. 2008-09-29 Eric S. Raymond * doc/pic.ms: Fold in documentation of pic2plot(1) capabilities. Improve the documentation of text objects. 2008-09-28 Eric S. Raymond * contrib/pic2graph, contrib/pic2graph.man, contrib/eqn2graph, contrib/eqn2graph.man: Tweak scripts to cope with incompatible changes in ImageMagick crop options. Document the bugs. 2008-09-28 Werner LEMBERG If a macro is called as a string, inherit value of \n[.br] from the caller. This is useful for `trace.tmac'. * src/roff/troff/input.cpp (string_iterator): New members `with_break' and `get_break_flag'. (string_iterator::string_iterator): Updated. * doc/groff.texinfo: Improve documentation of \$0 and string syntax calling of macros. Document behaviour of \n[.br] within strings. 2008-09-26 Werner LEMBERG * tmac/trace.tmac: Add copyright message. Use `.de1' where possible to make source code more readable. (so, mso, als, rn): Restore escape character before executing the request. (de, de1, am, am1): Trace `.foo' also if called as `\\[foo]'. 2008-09-24 Werner LEMBERG Fix incompatibility between `.de1' and `.do'. Without this change, the following snippet .de1 xx . tm \\n(.C .. .cp 1 .do xx prints 1 instead of 0. * src/roff/troff/input.cc (do_request): If a macro gets processed, call tok.next(). (interpolate_macro): Add optional argument. Update callers. (request::invoke): Add optional argument. (macro::invoke): Add optional argument to delay call of tok.next(). * src/roff/troff/request.h (request_or_macro): Add argument to `invoke' member. Update all derived classes. * doc/groff.texinfo: Improve documentation of .do request. 2008-09-09 Werner LEMBERG * tmac/an-old.tmac (FT): Initialize properly. Reported by Tadziu Hoffmann. 2008-09-06 Werner LEMBERG * tmac/doc-common (Dd, Os, Dt): Reset `doc-command-name' to make `.Nm' work properly if next manual page is printed. 2008-08-20 Werner LEMBERG * src/preproc/tbl/tbl.man: Document computation of element widths. 2008-08-20 Alexey Gladkov Werner LEMBERG Add default encoding option -D to preconv and groff. * src/preproc/preconv/preconv.cpp (default_encoding): Make it an array. Update all users. (main): Handle new option -D. (usage): Updated. * src/preproc/preconv/preconv.man: Updated. * src/roff/groff/groff.cpp (main): Handle new option -D. (synopsis, help): Updated. * src/roff/groff/groff.man: Updated. 2008-07-26 Werner LEMBERG * tmac/eqnrc (.EQ, .EN): Provide default definitions. Reported by Denis M. Wilson. * tmac/www.tmac (.EQ, .EN, .TS, .TE): Fix definitions. 2008-07-24 Denis M. Wilson New options -f and -k for afmtodit. * src/afmtodit/afmtodit.pl: New options `-f NAME' sets the internal name of the groff font. New option `-k' disables output of kerning data. * src/afmtodit/afmtodit.man, NEWS: Document new options. 2008-07-18 Werner LEMBERG * src/preproc/tbl/table.cpp (table::compute_separation_factor): Emit warning messages if table gets squeezed. (table::compute_widths): Fix computation of AVAILABLE_REG. Emit warning if table is wider than line length. * src/preproc/tbl/tbl.man: Minor improvements. 2008-05-02 Larry Jones * contrib/chem/Makefile.sub (README, examples/README): In makefiles, the `$<' macro is only guaranteed to be defined in inference rules, not in explicit target rules. Since there is only one input file in the places where it is used, the `$?' macro (which is guaranteed to be defined for both kinds of rules) is a suitable replacement. * hdtbl/examples/fonts_n.in, hdtbl/examples/fonts_n.in: Most versions of ls don't have a `--color' option. 2008-04-30 Larry Jones * Makefile.comm (depend.temp): Add `EXTRA_CCFLAGS'. 2008-04-29 Larry Jones * src/eqn/script.cpp (script_box::output): Portability fix. 2008-04-05 Dorai Sitaram Add better support for `.TAG #