From fd73460114ef47d45641bded30b28126e23570d8 Mon Sep 17 00:00:00 2001 From: astrojhgu Date: Fri, 3 Jun 2011 16:46:16 +0000 Subject: git-svn-id: file:///home/svn/opt_utilities@207 ed2142bd-67ad-457f-ba7c-d818d4011675 --- model_doc/latex2svg.sh | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'model_doc/latex2svg.sh') diff --git a/model_doc/latex2svg.sh b/model_doc/latex2svg.sh index 76260da..6f44fa8 100755 --- a/model_doc/latex2svg.sh +++ b/model_doc/latex2svg.sh @@ -31,9 +31,21 @@ pstoedit -f sk ${BASENAME}.ps ${BASENAME}.sk # Convert to SVG skconvert ${BASENAME}.sk ${BASENAME}.svg -echo -e return "\"\c" >${BASENAME}.info +#echo -e return "\"\c" >${BASENAME}.info +echo "" >>${BASENAME}.svg +echo "std::string result;">${BASENAME}.info -cat ${BASENAME}.svg | sed -e ':a;N;$!ba;s/\n//g' -e 's/\"/\\\"/g' >>${BASENAME}.info +#cat ${BASENAME}.svg | sed -e ':a;N;$!ba;s/\n//g' -e 's/\"/\\\"/g' >>${BASENAME}.info + + + +cat ${BASENAME}.svg|while read line +do +line=`echo $line|sed -e 's/\"/\\\"/g'` +echo "result+=\"$line\";">>${BASENAME}.info +echo "result+=\"\\n\";">>${BASENAME}.info +done + +echo "return result;" >>${BASENAME}.info -echo \"\; >>${BASENAME}.info -- cgit v1.2.2