Bug 410450

Summary: Capitalize Tool Incorrectly Capitalizes the letter S After an Apostrophe
Product: [Applications] kate Reporter: Greg Lepore <greg>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: wishlist CC: christoph, nortexoid
Priority: NOR    
Version First Reported In: 19.04.3   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Greg Lepore 2019-07-31 14:07:28 UTC
SUMMARY
Kate's Capitalize feature (Tools->Capitalize) incorrectly capitalizes the letter "s" after an apostrophe.

STEPS TO REPRODUCE
1. Open Kate
2. Type "Steve's"
3. Select the word
4. Tools->Capitalize


OBSERVED RESULT
"Steve's" is now "Steve'S"

EXPECTED RESULT
The letter "s" after an apostrophe should not be capitalized

Operating System: KDE neon 5.16
KDE Plasma Version: 5.16.4
KDE Frameworks Version: 5.60.0
Qt Version: 5.12.3
Kernel Version: 4.15.0-55-generic
OS Type: 64-bit
Processors: 8 × AMD FX(tm)-8350 Eight-Core Processor
Memory: 7.8 GiB of RAM
Comment 1 Christoph Cullmann 2019-08-25 10:11:56 UTC
Capitalize will upper-case the first letter of any word at the word boundary.

It doesn't implement any language dependent logic.

Actually, to have a language ware "correct" capitalize is a valid wish, but not sure if somebody will take that up.
Comment 2 Michael D 2023-01-31 15:23:47 UTC
I wanted to request just that, since capitalize also capitalizes words you normally wouldn't, such as articles ('the', 'a', etc.) and prepositions ('of', etc.) I was hoping most of this work had already be done elsewhere and could be imported into an intelligent capitalization system in Kate, but I suppose not.
Comment 3 Christoph Cullmann 2024-07-05 18:58:05 UTC
Yeah, there is no code to just re-use for this without effort.
Given nobody had interest to work on this for years, I close this now.
If somebody has time to contribute it, please open a merge request.