davidagraf / doi2bib

give us a DOI and we'll do our best to get you the BibTeX entry
www.doi2bib.org
118 stars 15 forks source link

parse error #13

Closed LouNo277 closed 10 years ago

LouNo277 commented 10 years ago

Hi guys,

the following error occurred upon fetching bibtex info for doi:10.1214/aoms/1177728726: Project Euclid provide the citation in a txt which you see in the screenshot below. Supposedly the parse error results from the syntax they used in the title: $\chi^2$.

parse_error

Hope this is helpful. Cheers, Louisa

davidagraf commented 10 years ago

Our bibtex parser is still wrong. Checked https://code.google.com/p/bibtex-js/. They parse the bibtex values like this: https://code.google.com/p/bibtex-js/source/browse/trunk/src/bibtex_js.js#84. Basically, they count the curly braces. If the amount of opening and closing curly braces is equal and they get a closing one, the end is reached. I guess we need to do the same.