From 5120368c007f9f9f257b599bb01c3b68390f8593 Mon Sep 17 00:00:00 2001 From: wl Date: Sun, 5 Mar 2006 17:03:39 +0000 Subject: * tmac/groff_ms.man: Document PT, HD, and BT. * src/roff/troff/node.cpp (make_glyph_node): Improve warning message for single-letter glyph names. --- ChangeLog | 9 +++++++++ doc/groff.texinfo | 2 +- src/roff/troff/node.cpp | 9 ++++++--- tmac/groff_ms.man | 19 +++++++++++++++++-- 4 files changed, 33 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index fd6210d2..c04f4bbb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2006-03-04 Larry Kollar + + * tmac/groff_ms.man: Document PT, HD, and BT. + +2006-03-04 Werner LEMBERG + + * src/roff/troff/node.cpp (make_glyph_node): Improve warning message + for single-letter glyph names. + 2006-03-02 Werner LEMBERG * tmac/sv.tmac: New file; currently holding only the Swedish strings diff --git a/doc/groff.texinfo b/doc/groff.texinfo index 0432f72f..3b1145ca 100644 --- a/doc/groff.texinfo +++ b/doc/groff.texinfo @@ -13052,7 +13052,7 @@ backslash) cause an error. @cindex @code{\X}, and special characters If the @samp{use_charnames_in_special} keyword is set in the @file{DESC} file, special characters no longer cause an error; the name @var{xx} is -represented as @samp{\(@var{xx})} in the @w{@samp{x X}} output command. +represented as @samp{\(@var{xx}\)} in the @w{@samp{x X}} output command. Additionally, the backslash is represented as @code{\\}. @samp{use_charnames_in_special} is currently used by @code{grohtml} only. diff --git a/src/roff/troff/node.cpp b/src/roff/troff/node.cpp index 23912a3c..069cda5a 100644 --- a/src/roff/troff/node.cpp +++ b/src/roff/troff/node.cpp @@ -4906,9 +4906,12 @@ node *make_glyph_node(charinfo *s, environment *env, int no_error_message = 0) warning(WARN_CHAR, "can't find character with input code %1", int(input_code)); } - else if (s->nm.contents()) - warning(WARN_CHAR, "can't find special character `%1'", - s->nm.contents()); + else if (s->nm.contents()) { + const char *nm = s->nm.contents(); + const char *backslash = (nm[1] == 0) ? "\\" : ""; + warning(WARN_CHAR, "can't find special character `%1%2'", + backslash, nm); + } } return 0; } diff --git a/tmac/groff_ms.man b/tmac/groff_ms.man index 258670fb..a9e0aee4 100644 --- a/tmac/groff_ms.man +++ b/tmac/groff_ms.man @@ -1,6 +1,6 @@ '\" t .ig -Copyright (C) 1989-1995, 2001, 2002, 2003, 2004, 2005 +Copyright (C) 1989-1995, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. Permission is granted to make and distribute verbatim copies of @@ -1054,7 +1054,7 @@ are in the same order as the corresponding occurrences of . .SS "Headers and footers" . -There are two ways to define headers and footers: +There are three ways to define headers and footers: . .IP \(bu 3n Use the strings @@ -1093,6 +1093,21 @@ The syntax for these macros is as follows: You can replace the quote (') marks with any character not appearing in the header or footer text. . +.PP +You can also redefine the +.B PT +and +.B BT +macros to change the behavior of +the header and footer, respectively. +The header process also calls the (undefined) +.B HD +macro after +.B PT ; +you can define this macro if you need additional processing +after printing the header +(for example, to draw a line below the header). +. . .SS Margins . -- cgit v1.2.1