Browse Source

Simplification

pull/66/head
Louis 10 years ago
parent
commit
04f2554759
  1. 10
      patacrep/latex/__init__.py

10
patacrep/latex/__init__.py

@ -7,18 +7,10 @@ This module uses an LALR parser to try to parse LaTeX code. LaTeX language
will work on simple cases, but not on complex ones.
"""
from patacrep.latex.syntax import tex2plain as syntax_tex2plain
from patacrep.latex.syntax import tex2plain
from patacrep.latex.syntax import parsesong as syntax_parsesong
from patacrep.latex.detex import detex
from patacrep import encoding
def tex2plain(string):
"""Render LaTeX string
Very few commands (mostly diacritics) are interpreted.
"""
return syntax_tex2plain(string)
def parsesong(path):
"""Return a dictonary of data read from the latex file `path`.

Loading…
Cancel
Save