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

Validation for langid? #1386

Open
pauloney opened this issue Sep 24, 2024 · 3 comments
Open

Validation for langid? #1386

pauloney opened this issue Sep 24, 2024 · 3 comments

Comments

@pauloney
Copy link
Collaborator

Would it be possible (or desirable) to add a validation for the value of langid at the Biber level?

From my point f view it would be really nice. It is too easy to make a mistake, or typo, that can go undetected...

@moewew
Copy link
Collaborator

moewew commented Sep 24, 2024

A Biber-side validation of langid values would require a list of supported languages. But at least in principle language modules for babel/polyglossia can be loaded more or less directly from a file without announcing them further first. So such a list would not only be a hassle to maintain, it also has the potential to yield wrong results even if it is up-to-date with what is available on CTAN, say.

@pauloney
Copy link
Collaborator Author

pauloney commented Sep 24, 2024 via email

@pauloney
Copy link
Collaborator Author

... and in retrospect, biber already does many other validations of entries, and things like:

edition = {Second},
year = {1957-58},

get their own Warnings. So adding one more for langid would just been in line with what
is nortmally done.

People that load a whole new language by file and with a fake langid SHOULD get at least
a warning....

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

2 participants