-
-
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
Capitalization and hyphen: Anomaly with "Title case" and "Sentence case" #9112
Comments
|
@MorettiGS: in case you want to improve capitalization |
I'm interested in contributing to this issue, so before I start working it, would you mind sparing your time explaining what the fix will be like and pointing me to some resources to get started. |
Hello @sreenath-tm. Thank you for your interest into JabRef. You should look first at https://github.com/JabRef/jabref/blob/main/docs/contributing.md |
Hi I have validated the same for both the Title case and Sentence Case for the given input and the respective outputs for both of them are added below As per this result only the Title case needs a tweaking to capitalise the "Drying" part and no changes need to be done to the Sentence casing which is working as expected. Do you agree ? To add on to that this is not only for the Title but for all the text fields present which has the above mentioned "Change Case" field. |
Which version of JabRef have you been using for test? I have not checked for the other types of field. But I guess the routines are applied in the same way to all fields. So, it would make sense the result does not depend on field type. |
Sorry I was trying with the 5.7 version. Just to reconfirm how the ideal case conversion should look like please confirm if below mentioned examples are correct Title case : "Wetting-and-Drying Cycle and Others Effects" I am looking into the issue will raise the PR once I am ready with the fix. |
Indeed, this is how they should look! |
* upstream/main: Anomaly with Title case and Sentence case JabRef#9112 (JabRef#9142) Fixed save order config (JabRef#9148) Update devdocs about fetchers (JabRef#9146) Set 'Update refused' dialog title (JabRef#9143) Bump jackson-datatype-jsr310 from 2.13.3 to 2.13.4 (JabRef#9136) Bump jackson-dataformat-yaml from 2.13.3 to 2.13.4 (JabRef#9138) Observable Preferences N (PushToApplicationPreferences, ExternalApplicationPreferences) (JabRef#9135) Resimplify Action interface (JabRef#9133) Fix issue with empty fallback directory (JabRef#9134) Fix indexing (JabRef#9132) SLR data is now editable (JabRef#9131)
Thank you @sreenath-tm for solving this issue. Thanks to your contribution, it works as expected now. Playing around, I have found another anomaly: |
JabRef version
Latest development branch build (please note build date below)
Operating system
GNU / Linux
Details on version and operating system
JabRef 5.8--2022-08-31--88d9d83 Linux 5.10.0-17-amd64 amd64 Java 18.0.2.1 JavaFX 18.0.2+2
Checked with the latest development build
Steps to reproduce the behaviour
Capitalization of words associated with a hyphen do not work well.
Anomaly with "Sentence case":
wetting-and-drying cycle and others effects
--> The title becomes
Wetting-And-Drying cycle and others effects
while it should beWetting-and-drying cycle and others effects
Anomaly with "Title case":
wetting-and-drying cycle and others effects
--> The title becomes
Wetting-And-Drying Cycle and Others Effects
while it should beWetting-and-Drying Cycle and Others Effects
Appendix
...
Log File
The text was updated successfully, but these errors were encountered: