-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace the bibparse backend of 'g:vimtex_parser_bib_backend' with GooseBib #2103
Comments
Interesting! An issue here is that GooseBib does not give a simple output to parse; However, it might be necessary to drop support for bibparse in the future, if it is fully removed. :\ |
But: Perhaps a better idea is to use directly the |
Ok, I've added Do you have any thoughts? |
Hah! I just noticed (and now remember) that bibparse is not the Python implementation. There's a name confusion here. In any case, I've made things more clear in the docs and I've added support for the |
Most of the stuff you mentioned flew over my head, but I could understand things better through your latest docs update. Thanks a lot for looking into this Karl! |
Would this syntax be correct (for portability of a common if executable('bibParse')
let g:vimtex_parser_bib_backend='bibparse'
endif |
Almost! The executable string should be lower case, I believe: |
Thank you. This could perhaps be mentioned in the docs, like how you have provided conditional checks for setting up various other functionality (e.g. the documentation handlers). |
Agreed. |
So, this bibparse executable comes from where? From the goodebib package? |
This is what I wrote in the docs (
|
@lervag https://metacpan.org/dist/Text-BibTeX does not seem to be updated for over 3 years. For a non-perl user like me, it is not clear how to install such perl packages, and make them available in For the famous python-based parser (https://github.com/sciunto-org/python-bibtexparser) that underpins a lot of pythonic bib tools, it is getting a major speed boostup in the upcoming 2.0 release. https://github.com/sciunto-org/python-bibtexparser#id5 . Perhaps worth keeping an eye out for this for vimtex's adoption. Also, FWIW, there's a very good rust crate https://github.com/typst/biblatex that is an amazing parser. |
Well, that doesn't mean much, except that it is mature and works as expected?
I'm not really very experienced in the ways of Perl myself either, so I'm not sure what to write. For Arch Linux, you can install it with
I would not mind adding support for more parsers, but it would be nice to get that as separate feature requests with good links - preferably with simple explanations on how to install and use the parsers. |
bibparse is one of the options that can be set for
g:vimtex_parser_bib_backend
. Firstly, the documentation was missing the URL or other background information aboutbibparse
for those who have never heard of this before. But that is quickly addressed with some basic web searching :).Secondy, and more seriously, it looks like
bibparse
itself is deprecated in favour ofGoosebib
. Quite ominously, the README.md ominously warns: In time this respository will be removed.It looks like it would be prudent to include
Goosebib
as one of the options forg:vimtex_parser_bib_backend
, along with a documentation update to point users to the relevant Github URL. Also, some pointers to set this conditionally would be nice I think, i.e. something along the lines of:Finally, it also looks like the host of tools provided by the
Goosebib
suite looks like a useful way to fix/clean/slice/dice bib files. I think this tool can be mentioned in the Filetype plugin for bib files section early in the documentation, wherein useful tools likebibtool
are mentioned. Also for posterity, I am updating #1293 withGoosebib
since this issue is also linked to from the documentation, making it easier for new readers to refer to a centralised place for bib tools.The text was updated successfully, but these errors were encountered: