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

Support biber comments #372

Open
MiWeiss opened this issue May 26, 2023 · 0 comments
Open

Support biber comments #372

MiWeiss opened this issue May 26, 2023 · 0 comments

Comments

@MiWeiss
Copy link
Collaborator

MiWeiss commented May 26, 2023

Extracted from #133. We may want to support the following biber-type comments:

@ARTICLE{bla,
    author={Fartsy},
    %title={Title},
}

I see two options to handle this:

  1. A middleware to filter out fields starting with %
  2. Adapting the splitter with a custom flag to ignore lines starting with % or whitespace followed by %

In either case, for within-entry comments, I don't think we should create a Comment block in the library.

Option one is more in line with v2 architecture, and it prevents from flags on the splitter, but inputs like this will fail to parse if %-comments are only handled in a middleware.

@ARTICLE{bla,
    %somecomment
    author={Fartsy},
    title={Title},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant