Skip to content
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

Not possible to resolve @String which is defined in style file #63

Open
lukeflo opened this issue Oct 13, 2024 · 0 comments
Open

Not possible to resolve @String which is defined in style file #63

lukeflo opened this issue Oct 13, 2024 · 0 comments

Comments

@lukeflo
Copy link

lukeflo commented Oct 13, 2024

First of all, this is very likely not a direct issue of the biblatex crate itself, but, nevertheless, might be of interest for some users.

I'm working on an own little Rust project writing a TUI for fast and easy interaction with someones BibLaTeX database and use this great crate for parsing the input files. While testing it, a friend encountered a little problem with @Strings.

If the @String is defined in the .bib file itself, the crate can parse the entry without any errors. But there are some BibLaTeX styles which offer predefined set of @Strings in their .bst files.

Using a .bib file containing those abbreviations defined in the style file without (re)defining them in the .bib file itself leads to a panic and aborts the program:

➜  release git:(main) ./bibiman ~/@mycene/00-09_system/01_emacs/01.02_bib/auf-dem-forum-thesis.bib

thread 'main' panicked at src/backend/bib.rs:40:74:
called `Result::unwrap()` on an `Err` value: ParseError { span: 1780..1785, kind: UnknownAbbreviation("AEspA") }

note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

In this case the BibLaTeX style archaeologie was used which defines a large set of @Strings.

This is very unlikely to be solved by the biblatex crate itself, since it definitely cannot source/parse all BibLaTeX style files. But it might be worth knowing for someone who wants to use the crate or Typst with a specific .bib file containing those @Strings

@lukeflo lukeflo changed the title Not possible to resolve @String which are defined in style file Not possible to resolve @String which is defined in style file Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant