From 1bd1be4e94ca27aaf442550743455b87e13d81b0 Mon Sep 17 00:00:00 2001
From: Martin Goik <goik@hdm-stuttgart.de>
Date: Tue, 23 Oct 2012 19:57:38 +0200
Subject: [PATCH] Stripping strange unicode whitespace from pdflatex generated
 pdf documents

---
 Doc/Makefile        | 3 ++-
 bin/stripUnicode.sh | 4 ++++
 2 files changed, 6 insertions(+), 1 deletion(-)
 create mode 100755 bin/stripUnicode.sh

diff --git a/Doc/Makefile b/Doc/Makefile
index 72f9b2666..ff4ff34bf 100644
--- a/Doc/Makefile
+++ b/Doc/Makefile
@@ -30,7 +30,8 @@ ${BUILDNAVI}/index.html ${BUILDNAVI}/printversion.pdf:${SCRIPTBASENAME}.xml
 	xml2xml  ${SCRIPTBASENAME}.convert.xml  ../../Vorlesungen/bin/docbook2docbook.xsl >  ${SCRIPTBASENAME}.convert.answer.xml
 	/usr/share/xmlmind/bin/convertdoc -p suppress.navigation 1 -p eclipse.plugin.id $(PLUGINID) ${PPARAM} db5.toEclipseHelp ${SCRIPTBASENAME}.convert.answer.xml \
             -u $(BUILDNONAVI)
-	mkdir -p  Ref/Fig/Generate;rm -f Ref/Fig/Generate/*.tex;mv resources/Generate/*.tex Ref/Fig/Generate/
+	mkdir -p  Ref/Fig/Generate;rm -f Ref/Fig/Generate/*.tex;\
+        /ma/goik/workspace/GoikLectures/bin/stripUnicode.sh resources/Generate/*.tex; mv resources/Generate/*.tex Ref/Fig/Generate
 	cd Ref/Fig;make all
 	/usr/share/xmlmind/bin/convertdoc -p eclipse.plugin.id  $(PLUGINID) ${PPARAM} db5.toEclipseHelp  ${SCRIPTBASENAME}.convert.answer.xml -u $(BUILDNAVI)
 	perl -i -p -e '$$/=undef;s/\n[ \t]*<!DOCTYPE[^>]+\n[^>]*>$$//m' ${BUILDNAVI}/*.xml ${BUILDNONAVI}/*.xml
diff --git a/bin/stripUnicode.sh b/bin/stripUnicode.sh
new file mode 100755
index 000000000..f065076af
--- /dev/null
+++ b/bin/stripUnicode.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+perl -i -p -e's/ /\ /g' $*
+
+#end
\ No newline at end of file
-- 
GitLab