groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Groff-commit] groff ./ChangeLog doc/groff.texinfo src/roff/tr...


From: Werner LEMBERG
Subject: [Groff-commit] groff ./ChangeLog doc/groff.texinfo src/roff/tr...
Date: Sun, 05 Mar 2006 17:03:40 +0000

CVSROOT:        /cvsroot/groff
Module name:    groff
Branch:         
Changes by:     Werner LEMBERG <address@hidden> 06/03/05 17:03:40

Modified files:
        .              : ChangeLog 
        doc            : groff.texinfo 
        src/roff/troff : node.cpp 
        tmac           : groff_ms.man 

Log message:
        * 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.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/groff/groff/ChangeLog.diff?tr1=1.919&tr2=1.920&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/groff/groff/doc/groff.texinfo.diff?tr1=1.228&tr2=1.229&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/groff/groff/src/roff/troff/node.cpp.diff?tr1=1.21&tr2=1.22&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/groff/groff/tmac/groff_ms.man.diff?tr1=1.17&tr2=1.18&r1=text&r2=text

Patches:
Index: groff/ChangeLog
diff -u groff/ChangeLog:1.919 groff/ChangeLog:1.920
--- groff/ChangeLog:1.919       Fri Mar  3 08:21:46 2006
+++ groff/ChangeLog     Sun Mar  5 17:03:39 2006
@@ -1,3 +1,12 @@
+2006-03-04  Larry Kollar  <address@hidden>
+
+       * tmac/groff_ms.man: Document PT, HD, and BT.
+
+2006-03-04  Werner LEMBERG  <address@hidden>
+
+       * src/roff/troff/node.cpp (make_glyph_node): Improve warning message
+       for single-letter glyph names.
+
 2006-03-02  Werner LEMBERG  <address@hidden>
 
        * tmac/sv.tmac: New file; currently holding only the Swedish strings
Index: groff/doc/groff.texinfo
diff -u groff/doc/groff.texinfo:1.228 groff/doc/groff.texinfo:1.229
--- groff/doc/groff.texinfo:1.228       Sat Feb 25 05:56:39 2006
+++ groff/doc/groff.texinfo     Sun Mar  5 17:03:39 2006
@@ -13052,7 +13052,7 @@
 @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 @address@hidden X}} output command.
+represented as @samp{\(@var{xx}\)} in the @address@hidden X}} output command.
 Additionally, the backslash is represented as @code{\\}.
 
 @samp{use_charnames_in_special} is currently used by @code{grohtml} only.
Index: groff/src/roff/troff/node.cpp
diff -u groff/src/roff/troff/node.cpp:1.21 groff/src/roff/troff/node.cpp:1.22
--- groff/src/roff/troff/node.cpp:1.21  Fri Feb 17 16:39:43 2006
+++ groff/src/roff/troff/node.cpp       Sun Mar  5 17:03:40 2006
@@ -4906,9 +4906,12 @@
            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;
     }
Index: groff/tmac/groff_ms.man
diff -u groff/tmac/groff_ms.man:1.17 groff/tmac/groff_ms.man:1.18
--- groff/tmac/groff_ms.man:1.17        Sun Sep  4 09:41:37 2005
+++ groff/tmac/groff_ms.man     Sun Mar  5 17:03:40 2006
@@ -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 @@
 .
 .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 @@
 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
 .




reply via email to

[Prev in Thread] Current Thread [Next in Thread]