Lenguaje
Professional
Software
BibTeXparse is, (as its name hints), a simple parser for bibtex files. It is written in python, starting from the scripts bibtex2xml.py and its modificated version.
This version has not been extensively tested yet but works well with my database (above 500 entries) that have many different type of entries (with different origins).
I needed to get my publication list in HTML format. I've been happily using bibtex2html but I wanted to convert to XML.
There are several tools that allow one to parse and convert from BibTeX to other formats. Among them, pybliographer has a nice GUI and worked well for me. However I wanted something that I can tweak to my exact needs and that could later use to get automatic publication lists in other formats.
So I preferred the conversion
BibTeX - XML - (Now HTML, more in the future)
Also I've found several good solutions for this kind of conversion. For instance, The BibTeX-XML-HTML Bibliography Project gives a ready-to-use solution, bibTeXML goes a similar path and has a bibtex2xml Python script. A modified version of it was used in the package Bibtex2HTML. I decided to use the version of the BibTeX to XML from this package, but when parsing my bibtex files, I've found some small problems. Being in python, they were quite easy to solve, but the script still focused in converting from BibTeX to XML and I wanted a little more. Namely, parsing the bibtex file and then converting. So I modified this script and the result is BibTeXparse.py. It makes a very little changes and adds a few features over the original scripts. (It also may have degraded the results in other aspects, but I've not seen it yet)
bibtexparse.py
and helper.py
.example_script.py
and
the example bib file with my bibliography list
(fiol.bib
), the HTML output
(bib-fiol.html
) and the style file
(default.css
)
$> python example_script.py fiol.bib
$> python example_script.py
$> python example_script.py -h
$> python example_script.py --help