summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgaius <gaius>2006-05-02 15:55:48 +0000
committergaius <gaius>2006-05-02 15:55:48 +0000
commit6bd170c5ded64059103b0cf6153f1d36c4da1349 (patch)
treeba209748d537ebf49de0d6d7dc4ad6bb7bd74d77
parente91b3785cc151a3579a9be4659a2aca4ba49ca2c (diff)
downloadgroff-6bd170c5ded64059103b0cf6153f1d36c4da1349.tar.gz
* tmac/www.tmac: fixed the PIMG implementation so that it
correctly defaults to -C if the alignment option is missing.
-rw-r--r--ChangeLog5
-rw-r--r--tmac/www.tmac26
2 files changed, 20 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index a339e5ff..54f92053 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-05-02 Larry Kollar <kollar@alltel.net>
+
+ * tmac/www.tmac: fixed the PIMG implementation so that it
+ correctly defaults to -C if the alignment option is missing.
+
2006-04-30 Michail Vidiassov <master@iaas.msu.ru>
* src/utils/afmtodit/afmtodit.pl: New option `-c' to add font
diff --git a/tmac/www.tmac b/tmac/www.tmac
index b4621758..8aa12115 100644
--- a/tmac/www.tmac
+++ b/tmac/www.tmac
@@ -499,40 +499,44 @@ www functionality. It should work with any macro set.
. ie \\n[www-html] \{\
. ie '\\$1'-R' \
. DEVTAG ".right-image"
+. ds www-pic-align -R
+. shift
. el \{\
. ie '\\$1'-L' \
. DEVTAG ".left-image"
+. ds www-pic-align -L
+. shift
. el \
. DEVTAG ".centered-image"
+. ds www-pic-align -C
. \}
+. if '\\$1'-C' shift
. nr www-width 0
. nr www-height 0
-. if !'\\$3'' \
+. if !'\\$2'' \
. nr www-width (\\$3 * 100 / 240)
-. if !'\\$4'' \
+. if !'\\$3'' \
. nr www-height (\\$4 * 100 / 240)
. ie (\\n[www-width] == 0) \{\
. ie (\\n[www-height] == 0) \
-. HTML <img src="\\$2" alt="Image \\$2">
+. HTML <img src="\\$1" alt="Image \\$1">
. el \
-. HTML <img src="\\$1" alt="Image \\$2" height=\\n[www-height]>
+. HTML <img src="\\$1" alt="Image \\$1" height=\\n[www-height]>
. \}
. el \{\
. ie (\\n[www-height] == 0) \
-. HTML <img src="\\$2" alt="Image \\$2" width=\\n[www-width]>
+. HTML <img src="\\$1" alt="Image \\$1" width=\\n[www-width]>
. el \
-. HTML <img src="\\$2" alt="Image \\$2" width=\\n[www-width] \
+. HTML <img src="\\$1" alt="Image \\$1" width=\\n[www-width] \
height=\\n[www-height]>
. \}
. \}
. el \{\
. if !r ps4html \{\
. www-make-unique-name
-. sy pngtopnm \\$2 | pnmcrop -white | @PNMTOPS_NOSETPAGE@ -noturn > \\*[www-unique-name].eps
-. ie '\\$1'-C' \
-. PSPIC \\*[www-unique-name].eps \\$3 \\$4
-. el \
-. PSPIC \\$1 \\*[www-unique-name].eps \\$3 \\$4
+. sy pngtopnm \\$1 | pnmcrop -white | @PNMTOPS_NOSETPAGE@ -noturn > \\*[www-unique-name].eps
+. shift
+. PSPIC \\*[www-pic-align] \\*[www-unique-name].eps \\$*
. \}
. \}
..