summaryrefslogtreecommitdiff
path: root/contrib/hdtbl
diff options
context:
space:
mode:
authorwl <wl>2006-05-25 20:22:04 +0000
committerwl <wl>2006-05-25 20:22:04 +0000
commitd9b54f0de691c2b1a56688a098ece560c0648979 (patch)
tree753bcb3e0ad8a90a9aa60ca2ed2bb2a024e32664 /contrib/hdtbl
parentb10d19c787a2c12b13f13ea7e19d71e64f86a3b6 (diff)
downloadgroff-d9b54f0de691c2b1a56688a098ece560c0648979.tar.gz
* groff_hdtbl.man: Simplify macros for switching from and to the `C'
font family, as suggested by Tadziu Hoffmann.
Diffstat (limited to 'contrib/hdtbl')
-rw-r--r--contrib/hdtbl/ChangeLog5
-rw-r--r--contrib/hdtbl/groff_hdtbl.man45
2 files changed, 17 insertions, 33 deletions
diff --git a/contrib/hdtbl/ChangeLog b/contrib/hdtbl/ChangeLog
index 5dc16072..6a964ff5 100644
--- a/contrib/hdtbl/ChangeLog
+++ b/contrib/hdtbl/ChangeLog
@@ -1,3 +1,8 @@
+2006-05-24 Werner LEMBERG <wl@gnu.org>
+
+ * groff_hdtbl.man: Simplify macros for switching from and to the `C'
+ font family, as suggested by Tadziu Hoffmann.
+
2006-05-22 Werner LEMBERG <wl@gnu.org>
* groff_hdtbl.man: Completely revised again.
diff --git a/contrib/hdtbl/groff_hdtbl.man b/contrib/hdtbl/groff_hdtbl.man
index e8653ba0..386e42ce 100644
--- a/contrib/hdtbl/groff_hdtbl.man
+++ b/contrib/hdtbl/groff_hdtbl.man
@@ -43,7 +43,7 @@ groff_hdtbl \- groff `hdtbl' macros for generation of tables
.
.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 @@ groff_hdtbl \- groff `hdtbl' macros for generation of tables
. \" .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 @@ groff_hdtbl \- groff `hdtbl' macros for generation of tables
.
. 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 @@ this is a separator line to the cell below.
.
.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 @@ Together with
.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
.