python-bibtexparser
python-bibtexparser copied to clipboard
Bibtex parser for Python 3
Suppose you have this bibtex file (call it `fail.bib`): ```bibtex @article{a, author = {One Two and Three{\'\i}abc-Four{\'\i}def}, } ``` The example program: ```python #! /usr/bin/python3 # import bibtexparser from bibtexparser.bparser...
The idea is to be able to represent undefined bibtex strings as such even if the definition does not appear in the current bibdata. This would be an alternative to...
- Adding a RAW key in the bibtex entry like ID extra key - I didn't add a dictionary for raw text to stick with the way of ID/ENTRYTYPE
- [ ] doc - [x] list of fields - [ ] enhance test - [ ] one test skipped
Firstly, this pull request adds a `utils.splitnames()` function to break apart a string `"Donald E. Knuth and Leslie Lamport"` into a list of individual names `["Donald E. Knuth", "Leslie Lamport"]`....
This should be fairly self-explanatory. I couldn't immediately see why `display_order = reversed(entry)` is correct to preserve the pre-existing order of fields, but it seems to work reliably.
Fixes #243: order by multiple keys in various directions Also: add unittest2 to tox deps
bibtexparser 1.1.0. Not a big problem, but confused me for a while: If the list assigned to `writer.display_order` contains a key more than once, then the according line in the...
An option to omit specified fields from the BibTexWriter would be useful (unless I've missed some other way to achieve this, of course!). We could parse the bibtex database and...
Now a list can be given of fields. Only those fields are returned in BibTexWriter is used to generate a string. This is not exactly what was asked in issue...