Autocorrection two capital letters in words

Hi, I am typing quite fast and often it happens that the first two letters of a word are capitalized (Writing in German this is really annoying since a lot of words are capitalized). While all other editors correct this automatically, I would like to know whether the feature exists now. THe problem occurs on IOS as well as on windows.

I’d love such autocorrect option as well.

macOS used to have this as standard. I turned it off because my academic qualifications which have deliberate two capital letters. As it was so long ago (maybe around the time that original MacBookPro was first launched) that I forget where the option was and subsequent updates/upgrades of macOS have moved stuff around (detrimentally in my opinion) that I would have to hunt for it.

You could use Regular Expressions to Find two capital letters and Replace them with one…
With the RegEx option selected, Search for:

([A-Z])[A-Z]

Replace with:

$1 or \1 depending on you RegEx-version.

Hope this helps

Thanks all, I just noticed that IOS is doing this correction now. I don’t know when it was introduced.
For Windows the Workaround might do the job.

Hello,
unfortunately this only erases the second letter.
Like
“THis is my test for CApital LEtters” into “Tis is my test for Cpital Ltters”

You’re right. It replaces the second Capital letter with nothing… I’ll look for a better solution.

You can try te Replacement: $1\L$2\E
But it’s unclear if that works in Scrivener.

I’m no RegEx expert, but I do know that the ICU flavor of RegEx that Apple provides does not recognise the Upper and Lower case ( U and L ) switches which Oniguruma RegEx uses. Am I right in thinking that Qt provides PCRE RegEx, which I presume does recognise those switches. If so, an expression can be constructed to turn the second instance lower case.

But I’m a Mac-user so can’t test it out.

:slight_smile:
Mark

I’d like to throw in that to work properly in German you will have to add the Umlauts and the ß to the RegEx concoction.

And isn’t case sensitivity in RegEx the default that has to be switched off if not wanted? Anyhow, how about searching for this: (?-i)[[:upper:]]{2} If it works at all it will cover all uppercase letters like in “ICh habe einen BÄrenhunger”.

Can’t test it out either because I’m on Mac too (and for Mac I’d suggest Typinator to handle stuff like that.)

1 Like

Finding works, but Replacing?

Correct, but it doesn’t.