-
-
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 "Capitalize" #9157
Comments
Hello @dyannya. Please read https://devdocs.jabref.org/contributing.html#contribute-code, please don't forget to correctly set up your workspace including Checkstyle, and ask general questions in our Gitter chat, so we can keep the issue discussion clean and related to the issue only. |
Hello @mlep , @Siedlerchr . As i can see, now program works like this : if you choose "Change case -> Capitalize", then only first letter will be capitalized, regardless of dashes, and if you choose "Change case -> Title Case", then the first letter and every letter after dashes will be capitalized (exceptions: first letters in conjunctions "and", "but", "for", "nor", "or", "so", "yet"). I think Title Case is more suitable action for this situation, and result will be: |
… of every word, including words after hyphens.
* Fix for issue #9157. Added method that capitalizes first letter of every word, including words after hyphens. * Added test cases for CapitalizeFormatter
@scarpio02 Thank you for fixing this bug! |
* Fix for issue #9157. Added method that capitalizes first letter of every word, including words after hyphens. * Added test cases for CapitalizeFormatter
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-09-14--6a4a4f4 Linux 5.10.0-18-amd64 amd64 Java 18.0.2.1 JavaFX 18.0.2+2
Checked with the latest development build
Steps to reproduce the behaviour
This is a follow-up on issue #9112 (which was solved by PR #9142).
Anomaly with "Capitalize":
wetting-and-drying cycle and others effects
--> The title is now written as
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: