summaryrefslogtreecommitdiff
path: root/tmac/www.tmac
diff options
context:
space:
mode:
authorwlemb <wlemb>2001-07-03 22:03:07 +0000
committerwlemb <wlemb>2001-07-03 22:03:07 +0000
commit189610678466b18c9a9c973cf365b517882c0bff (patch)
tree3c401fa335fb707e6e4e143bac9f7b462dea4db3 /tmac/www.tmac
parent0ae0a650c2ef82dc9f9c26c58ce8fbb5be89da07 (diff)
downloadgroff-189610678466b18c9a9c973cf365b517882c0bff.tar.gz
* tmac/www.tmac: Disable hyphenation in normal text only if output
device is html. (URL, FTP, MAILTO): Disable hyphenation of actual URL with `%'. * tmac/groff_mwww.man, NEWS: Updated. * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical image location.
Diffstat (limited to 'tmac/www.tmac')
-rw-r--r--tmac/www.tmac31
1 files changed, 19 insertions, 12 deletions
diff --git a/tmac/www.tmac b/tmac/www.tmac
index 808c6271..a19f8162 100644
--- a/tmac/www.tmac
+++ b/tmac/www.tmac
@@ -46,7 +46,7 @@
. HTML <a href="\\$2">\\$1</a>\\$3
. \}
. el \{\
-\\$1 \(la\fC\\$2\fP\(ra\\$3
+\\$1 \%\(la\fC\\$2\fP\(ra\\$3
. \}
..
.\"
@@ -58,7 +58,7 @@
. HTML <a href=\\$2>\\$1</a>\\$3
. \}
. el \{\
-\\$1 \(la\fC\\$2\fP\(ra\\$3
+\\$1 \%\(la\fC\\$2\fP\(ra\\$3
. \}
..
.\"
@@ -90,7 +90,7 @@
\fC\\$1\fP\\$3
. \}
. el \{\
-\\$2 \(la\fC\\$1\fP\(ra\\$3
+\\$2 \%\(la\fC\\$1\fP\(ra\\$3
. \}
. \}
..
@@ -103,20 +103,25 @@
.\"
.\" IMAGE - reference an image
.\" $1 is the image file
-.\" $2 is the x width (default if absent 400 pixels)
-.\" $3 is the y width (default if absent is the x value)
+.\" $2 is the alignment r, l or c (center by default)
+.\" $3 is the x width (default if absent 400 pixels)
+.\" $4 is the y width (default if absent is the x value)
.\"
.de IMAGE
. ie \\n[www-html] \{\
+. ie '\\$2'r' .HTML-TAG ".right-image"
+. el \{\
+. ie '\\$2'l' .HTML-TAG ".left-image"
+. el .HTML-TAG ".centered-image"
+. \}
. nr HTMLWIDTH 400
-. if !'\\$2'' \{\
-. nr HTMLWIDTH \\$2
+. if !'\\$3'' \{\
+. nr HTMLWIDTH \\$3
. \}
. nr HTMLHEIGHT \\n[HTMLWIDTH]
-. if !'\\$3'' \{\
-. nr HTMLHEIGHT \\$3
+. if !'\\$4'' \{\
+. nr HTMLHEIGHT \\$4
. \}
-. HTML-TAG ".centered-image"
. HTML <img src="\\$1" width=\\n[HTMLWIDTH] height=\\n[HTMLHEIGHT]>
. \}
. el \{\
@@ -206,6 +211,8 @@
. MAKE-UNIQUE-NAME
. HTML-DO-IMAGE \\*[HTML-UNIQUE-NAME] i
..
-.nr HY 0
-.nh
+.if \\n[www-html] \{\
+. nh
+. nr HY 0
+.\}
.cp \n(_C