summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkeithmarshall <keithmarshall>2006-01-26 05:24:44 +0000
committerkeithmarshall <keithmarshall>2006-01-26 05:24:44 +0000
commit20d65da1410c89edc8c7181d7d8b2dfd25981195 (patch)
tree0a9d4926328b8a34fa586a17cffb6ef2b80388dc /src
parent727dfa3cbdf13715b777f4edea5b619e603f03a4 (diff)
downloadgroff-20d65da1410c89edc8c7181d7d8b2dfd25981195.tar.gz
* src/preproc/grn/main.cpp (USE_ST_REQUEST): New macro.
(conv): Use it.
Diffstat (limited to 'src')
-rw-r--r--src/preproc/grn/main.cpp18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/preproc/grn/main.cpp b/src/preproc/grn/main.cpp
index c939647f..22bf7245 100644
--- a/src/preproc/grn/main.cpp
+++ b/src/preproc/grn/main.cpp
@@ -97,6 +97,20 @@ extern POINT *PTMakePoint(double x, double y, POINT **pplist);
/* #define DEFSTIPPLE "gs" */
#define DEFSTIPPLE "cf"
+/*
+ * This grn implementation emits `.st' requests to control stipple effects,
+ * but groff does not (currently) support any such request.
+ *
+ * This hack disables the emission of such requests, without destroying the
+ * infrastructure necessary to support the feature in the future; to enable
+ * the emission of `.st' requests, at a future date when groff can support
+ * them, simply rewrite the following #define as:
+ *
+ * #define USE_ST_REQUEST stipple
+ *
+ * with accompanying comment: ``emit `.st' requests as required''.
+ */
+#define USE_ST_REQUEST 0 /* never emit `.st' requests */
#define MAXINLINE 100 /* input line length */
@@ -566,7 +580,7 @@ conv(register FILE *fp,
".sp -1\n",
xright - xleft, ybottom - ytop, GScommand);
- if (stipple) /* stipple requested for this picture */
+ if (USE_ST_REQUEST) /* stipple requested for this picture */
printf(".st %s\n", stipple);
lastx = xleft; /* note where we are (upper left */
lastyline = lasty = ytop; /* corner of the picture) */
@@ -632,7 +646,7 @@ conv(register FILE *fp,
printf("\\D't %du'\n", DEFTHICK);
if (flyback) /* make sure we end up at top of */
printf(".sp -1\n"); /* picture if `flying back' */
- if (stipple) /* restore stipple to previous */
+ if (USE_ST_REQUEST) /* restore stipple to previous */
printf(".st\n");
printf(".br\n"
".ft \\n(g3\n"