Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
EsGeh authored and EsGeh committed Mar 20, 2019
2 parents 9eacc54 + 474e23b commit 8b22cbf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion fix_tei.py
Expand Up @@ -361,7 +361,7 @@ def cleanup_xml(xml_tree):
for attribute in xml_preserve:
attribute.attrib.pop("{http://www.w3.org/XML/1998/namespace}space")

formulae = xmltree.xpath("//t:formula", namespaces=NS_MAP)
formulae = xml_tree.xpath("//t:formula", namespaces=NS_MAP)
logging.info(f"Found {len(formulae)} formulae.")

for formula in formulae:
Expand Down
10 changes: 10 additions & 0 deletions libeoaconvert.py
Expand Up @@ -200,6 +200,16 @@ def plural(num, noun, plural=None):
return phrase
# def plural ends here


def format_citations_tex4ht(used_citekeys, bibdata, language, tmp_filename):
"""Return a formatted xmlstring of the used citations"""

tmp_path_md = "tmp_files" + os.path.sep + tmp_filename + ".tex"
tmp_path_html = "tmp_files" + os.path.sep + tmp_filename + ".html"

return references
# def format_citations_tex4ht ends here

def format_citations(used_citekeys, bibdata, language, tmp_filename):
"""Return a formatted xmlstring of the used citations"""

Expand Down

0 comments on commit 8b22cbf

Please sign in to comment.