diff options
Diffstat (limited to 'model_doc/latex2svg.sh')
-rwxr-xr-x | model_doc/latex2svg.sh | 18 |
1 files changed, 15 insertions, 3 deletions
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 |