groff-commit
[Top][All Lists]
Advanced

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

[Groff-commit] groff/contrib/hdtbl ChangeLog groff_hdtbl.man


From: Werner LEMBERG
Subject: [Groff-commit] groff/contrib/hdtbl ChangeLog groff_hdtbl.man
Date: Thu, 25 May 2006 20:22:04 +0000

CVSROOT:        /cvsroot/groff
Module name:    groff
Branch:         
Changes by:     Werner LEMBERG <address@hidden> 06/05/25 20:22:04

Modified files:
        contrib/hdtbl  : ChangeLog groff_hdtbl.man 

Log message:
        * groff_hdtbl.man: Simplify macros for switching from and to the `C'
        font family, as suggested by Tadziu Hoffmann.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/groff/groff/contrib/hdtbl/ChangeLog.diff?tr1=1.3&tr2=1.4&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/groff/groff/contrib/hdtbl/groff_hdtbl.man.diff?tr1=1.3&tr2=1.4&r1=text&r2=text

Patches:
Index: groff/contrib/hdtbl/ChangeLog
diff -u groff/contrib/hdtbl/ChangeLog:1.3 groff/contrib/hdtbl/ChangeLog:1.4
--- groff/contrib/hdtbl/ChangeLog:1.3   Wed May 24 07:35:42 2006
+++ groff/contrib/hdtbl/ChangeLog       Thu May 25 20:22:04 2006
@@ -1,3 +1,8 @@
+2006-05-24  Werner LEMBERG  <address@hidden>
+
+       * groff_hdtbl.man: Simplify macros for switching from and to the `C'
+       font family, as suggested by Tadziu Hoffmann.
+
 2006-05-22  Werner LEMBERG  <address@hidden>
 
        * groff_hdtbl.man: Completely revised again.
Index: groff/contrib/hdtbl/groff_hdtbl.man
diff -u groff/contrib/hdtbl/groff_hdtbl.man:1.3 
groff/contrib/hdtbl/groff_hdtbl.man:1.4
--- groff/contrib/hdtbl/groff_hdtbl.man:1.3     Wed May 24 07:35:42 2006
+++ groff/contrib/hdtbl/groff_hdtbl.man Thu May 25 20:22:04 2006
@@ -43,7 +43,7 @@
 .
 .ie F CR \{\
 .
-.  \" We have to solve the following problem.  In the following code
+.  \" We have to solve the following problem.  In this code
 .  \"
 .  \"   foo
 .  \"   .CR bar
@@ -56,29 +56,15 @@
 .  \"   .CR bar\c
 .  \"   foo
 .  \"
-.  \" should work also.  To make both constraints work with a single macro
-.  \" we need a means to test whether there is a `\c' in the arguments. 
-.  \" The only solution I'm aware of is to switch to an environment with
-.  \" an empty `current partial line' and emitting the arguments, then
-.  \" testing the \n[.int] register.  Since it is not possible currently
-.  \" to remove environments we use a counter to guarantee empty
-.  \" environments.
-.
-.  nr env-count 0 1
+.  \" should work also.  To fulfill both constraints we emit the
+.  \" family changing commands both as escapes and macro calls.
 .
 .  de make-C-macro
 .    de C\\$1
-.      ev e-\\\\n+[env-count]
-.      nop \&\\\\$*
-.      nr have-int \\\\n[.int]
-.      ev
+.      ds old-fam \\\\n[.fam]
 .      fam C
-.      ie \\\\n[have-int] \{\
-.        \\$2 \&\\\\$*
-.        fam
-.      \}
-.      el \
-.        \\$2 \&\\\\$*\F[]
+.      \\$2 \&\\\\$*\F[]\F[\\\\*[old-fam]]
+.      fam
 \\..
 .  .
 .
@@ -88,17 +74,10 @@
 .
 .  de make-C-macro
 .    de C\\$1
-.      ev e-\\\\n+[env-count]
-.      nop \&\\\\$*
-.      nr have-int \\\\n[.int]
-.      ev
+.      ds old-fam \\\\n[.fam]
 .      fam C
-.      ie \\\\n[have-int] \{\
-.        \\$1 \\\\$@
-.        fam
-.      \}
-.      el \
-.        \\$1 \\\\$@ \F[]
+.      \\$1 \\\\$@ \F[]\F[\\\\*[old-fam]]
+.      fam
 \\..
 .  .
 .
@@ -874,7 +853,7 @@
 .
 .IP
 The thickness of the separator lines is the half of the border thickness,
-but at least 0.1n.
+but at least 0.1\|inches.
 .
 The distance between the double lines is equal to the line thickness.
 .
@@ -884,8 +863,8 @@
 .CR \[oq]border=0\[cq]
 for proper formatting the value of
 .CR \[oq]csp\[cq]
-must be at least .05n for single separator lines and .15n for double
-separator lines.
+must be at least .05\|inches for single separator lines and .15\|inches for
+double separator lines.
 .
 .XDEFS hl=s t*hl
 .




reply via email to

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