python-bibtexparser
python-bibtexparser copied to clipboard
Bibtex parser for Python 3
We'd want to facilitate users sorting blocks according to their needs. They easiest and most general way to do this would probably be to create a new abstract class `SortBlocksMiddleware`...
**Describe the bug** Attempting to package `2.0.0b7`, I run into the problem that `tests/test_entrypoint.py::test_gbk` needs `tests/resources/gbk_test.bib`, which is not included in the tarball. I'm working around it by skipping that...
**Is your feature request related to a problem? Please describe.** The bibtex file format is ill-defined when it comes to case sensitivity on keys. This is NOT a duplicate of...
Correct naming of arguments and docstring.
**Describe the bug** The splitter's methods [_move_to_comma_or_closing_curly_bracket](https://github.com/sciunto-org/python-bibtexparser/blob/main/bibtexparser/splitter.py#L173) and [_move_to_closed_bracket](https://github.com/sciunto-org/python-bibtexparser/blob/main/bibtexparser/splitter.py#L125) each contain a check for unexpected block starts. Unfortunately, this interferes with the parsing of entries that contain the `@` sign...
**Describe the bug** When processing bibtex entries, where the fields are delimited by double quotes, embedded double quotes should be escaped by {"}, according to https://tug.ctan.org/info/bibtex/tamethebeast/ttb_en.pdf, page 20. v2.0.0b7 however...
@drakeguan @jagd @mgorny @sjpfenninger In this commit, I add a new argument `keep_abbr_string` into `AddEnclosingMiddleware` to keep the abbreviation (`@string`) when enclosing the value and not resolving the string.
**Describe the bug** I have "$\omega$" in the title of a bibtex entry. `latex_to_unicode` transforms \o into ΓΈ, resulting in: **Reproducing** Version: `1.4.3` Code: ```python parser = BibTexParser() parser.customization =...
**Describe the bug** convert_to_unicode() function interprets \H strings in filepaths as special characters. **Code** This code: ``` with open(BIB_PATH, 'r', encoding='utf-8') as bib_file: parser = BibTexParser() parser.customization = convert_to_unicode bib_database...
Added a parse_url() function to load a remote bibtex file given the URL.