eqtexsvg.py revision 73a0d16664d469d5002cc17c752df3b731ed1245
# -*- coding: cp1252 -*-
"""
functions for converting LATEX equation string into SVG path
This extension need, to work properly :
- pstoedit software: <http://www.pstoedit.net/pstoedit>
Copyright (C) 2006 Julien Vitard, julienvitard@gmail.com
- I will try to code XML parsing, not the hard way ;-)
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
"""
\documentclass{article}
\\thispagestyle{empty}
\\begin{document}
""")
# parsing of SVG file with the equation
# real parsing XML to use!!!! it will be easier !!!
# deleting "<g... >" "</g>" "<path d=" and "/>" from svg_lines
nodegroup=''
else:
help="Formule LaTeX")
# ouvrir le svg et remplacer #7F7F7F par #000000
# clean up
e = EQTEXSVG()
e.affect()