Comments (1)
Thanks a lot for your suggestions! Much appreciated.
The name. It's not only a parser, after all!
Correct, but it is primarily used for parsing. Also, it has existed for a long time, and changing the name would have all kinds of unexpected consequences in downstream dependencies.
The dict entries in splitting up the names. "von" is German, how about "prelast"? "jr" should perhaps be "lineage".
This is standard bibtex terminology. The majority of sources (all in English) use the same.
Some things could be more user-friendly. For example, parsing a library is done via a separate function parse_file/parse_string. I saw a rather more elegant method in cryptography some years ago, namely [...]
While some of your propositions have their benefits, and some (e.g. to_string) might even eventually be implemented, the current style has been chosen to be somewhat closer to bibtexparser v1
and thus facilitate migration. Note that bibtexparser is used in more than 3000 repositories ;-)
I often want to get() a value from an entry field. Now, since field keys can occur multiple times, get() is not unique, but how about a get_first() method that returns the value?
Bibtexparser v2 stores these as duplicate field key objects, thus they can still be retrieved. Again, the vast majority of usecases does assume unique field keys and uses bibtexparser in a dict-style fashion.
Out of curiosity, where are you using duplicate field keys?
I'd also like to easily construct entries, e.g., [...]
Nice suggestion. bibtexparser is primarily a parser, thus this has no priority at the moment. But feel free to open a dedicated issue to discuss the details and then contribute a PR.
setup.py is out, pyproject.toml is in!
Fancy opening a PR?
from python-bibtexparser.
Related Issues (20)
- Separator first names HOT 3
- Custom middleware HOT 3
- Errors in name-split HOT 3
- ✨ Nice way to handle enclosings for months while writing with the default stack HOT 1
- Suppress warnings HOT 3
- `DuplicateFieldKeyBlock.ignore_error_block` retains `{}` in field values HOT 4
- How to replace bp.bparser.BibTexParser() ? HOT 2
- Enclosing middleware fails for certain content HOT 3
- Use case sensitive entry type HOT 4
- Make behaviour entry closer to `dict`: check if field is present
- Default `allow_parallel_execution=True` HOT 3
- Discussion: closer `dict` mimicking `Entry` HOT 1
- Apply style using pre-commit HOT 1
- Normalize field keys (to lowercase) HOT 8
- docs: links to code not working
- docs: switch themes? HOT 4
- Error in latex_to_unicode
- split_multiple_persons_names() bug HOT 1
- More flexible handling of case sensitivity in all keys HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-bibtexparser.