-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Ignore initial unprotected uppercase in translated titles #10459
Comments
Possibly one of these changes would work in line 15, but I am not sure if the patterns only match if there is white space following the delimiters. |
I added this to the project board, I think it's a valid issue. |
Hello, I'd like to inquire about this issue. If I've understood it correctly, you are talking about the following code: jabref/src/main/java/org/jabref/logic/integrity/TitleChecker.java Lines 54 to 63 in ca00d64
You'd like to handle this scenario by modifying the pattern and create unit tests. Correct? |
FIrst create a test case for the behavior. |
Hey team I'm new to open-source contributing, I'd love to work on this issue if it is still free to take. Thank you |
Hello, I've already started working on this. Could you please assign this to me instead? |
@ManaMatrix please check out our other good first issues. |
Hello, I'd like to double-check the following:Titles like: title = {Folding kinetics of a polymer [corrigendum]}, are supported and don't raise a warning. From the issue description, it's clear that the following should also not raise a warning: title = {[Translated title]}, My question is whether the following should raise a warning: title = {[Translated title] Original title}, I've checked the resource folder, but didn't find any entry of that format, so I suspect that it should raise a warning. Let me know if I'm mistaken. Thank you. |
@michalfarago Good question, I think it should still raise a warning. It's at least unusual do have both in the same entry |
@ryan-carpenter The issue is now fixed in the latest development version |
Some databases store translated titles in the
title
field, surrounded by square brackets like this.title = {[Entry with a translated title]}
Because the title phrase begins at the second position of the title string JabRef warns that the initial uppercase letter needs to be protected. To avoid matching this pattern, the regex could include something like
[A-Z](?<!^\[.)
or(?<^!\[)[A-Z]
.The text was updated successfully, but these errors were encountered: