summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas G. Lockhart2001-04-06 15:01:25 +0000
committerThomas G. Lockhart2001-04-06 15:01:25 +0000
commit2dfa93062cdf30e0971d0bdb7d9ea63c0c10de45 (patch)
tree0fabd8449f24368f693fe32d2d3c90d5c6d5e056
parent9d82b5caa8cd254963e87ac6adc5c923be527170 (diff)
Utility to add the stylesheet "s0" definition to an RTF file.
This stylesheet must be present for Applixware to be happy generating a ToC. M$Word does not seem to care one way or the other.
-rwxr-xr-xdoc/src/sgml/fixrtf23
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/src/sgml/fixrtf b/doc/src/sgml/fixrtf
new file mode 100755
index 0000000000..a6a701f6db
--- /dev/null
+++ b/doc/src/sgml/fixrtf
@@ -0,0 +1,23 @@
+#!/bin/sh
+# fixrtf
+# Repair (slightly) damaged RTF generated by jade
+# Applixware wants the s0 stylesheet defined, whereas
+# M$Word does not care about it.
+# (c) 2001, Thomas Lockhart, PostgreSQL Inc.
+
+flist=$@
+if [ "$flist" = "" ] ; then
+ flist=*.rtf
+fi
+
+for f in $flist ; do
+ echo -n "Repairing $f..."
+ if [ -r $f ] ; then
+ (sed 's/{\\stylesheet{\\s1/{\\stylesheet{\\s0 Normal 0;}{\\s1/g' $f > $f.new \
+ && mv -f $f.new $f \
+ && echo " done") || echo " failed"
+ else
+ echo " file not found"
+ fi
+done
+exit