You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to parse the following bibtex file, which is accepted by at least the BibDesk manager and the standard bibtex tool:
@string{pub-ieee-std = {IEEE}}
but is rejected by python-bibtexparser with the following error:
Traceback (most recent call last):
File "test.py", line 7, in <module>
bib_database = bibtexparser.load(bibtex_file, parser)
File "/Users/nwatkins/src/bibthing/env/lib/python2.7/site-packages/bibtexparser/__init__.py", line 69, in load
return parser.parse_file(bibtex_file)
File "/Users/nwatkins/src/bibthing/env/lib/python2.7/site-packages/bibtexparser/bparser.py", line 148, in parse_file
return self.parse(file.read(), partial=partial)
File "/Users/nwatkins/src/bibthing/env/lib/python2.7/site-packages/bibtexparser/bparser.py", line 134, in parse
raise exc
pyparsing.ParseException: Expected end of text (at char 0), (line:1, col:1)
The text was updated successfully, but these errors were encountered:
Fixes#147. Accept string macros with hyphen and colon as well as fields with periods.
Ex:
@string{pub-ieee-std = {IEEE}}
@string{pub-ieee-std:adr = {New York, NY, USA}}
Dc.Date = {2004-01},
I'm trying to parse the following bibtex file, which is accepted by at least the BibDesk manager and the standard bibtex tool:
but is rejected by python-bibtexparser with the following error:
The text was updated successfully, but these errors were encountered: