summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaromil <jaromil@dyne.org>2009-03-11 16:51:37 (GMT)
committer Jaromil <jaromil@dyne.org>2009-04-18 10:26:31 (GMT)
commit48dafac077d7cb6198c1fe92a17a4eabcb4c54b4 (patch)
tree9355289c718c52f3470d5e0f689bb635b3f6e530
parentf0a5ddb6d13df89a3dcf2fabadce94e31adf114a (diff)
fix image conversion for rtf rendering
-rw-r--r--freej/Makefile3
-rwxr-xr-xutils/formatimages.sh11
2 files changed, 13 insertions, 1 deletions
diff --git a/freej/Makefile b/freej/Makefile
index 111cc8f..951856b 100644
--- a/freej/Makefile
+++ b/freej/Makefile
@@ -100,8 +100,9 @@ postscript : $(DEPS)
rtf : $(DEPS)
rm -f $(filename).rtf
+ $(utils)/formatimages.sh $(lang) rtf
cd $(lang) && SP_ENCODING=XML \
- docbook2rtf -d $(DSSSL-pdf) \
+ docbook2rtf -d $(DSSSL-pdf) -s . \
$(filename).sgml
tex : $(DEPS)
diff --git a/utils/formatimages.sh b/utils/formatimages.sh
index 32d577f..18961df 100755
--- a/utils/formatimages.sh
+++ b/utils/formatimages.sh
@@ -37,6 +37,17 @@ case $target in
;;
+ rtf)
+ # rtf images want no extensions
+ outdir="$lang/images"
+ mkdir -p $outdir
+ for i in `ls images/*`; do
+ file="`basename $i | cut -d. -f1`"
+ echo "converting $file without extension"
+ cp $i "$outdir/${file}"
+ done
+
+ ;;
*)
echo "ERROR in image/convert.sh - must specify a target, i.e: convert.sh EN html"