Bug 140366 - Need to clarify the "Correct TWo INitial CApitals" option in AutoCorrect , including autoinclude
Summary: Need to clarify the "Correct TWo INitial CApitals" option in AutoCorrect , in...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Documentation (show other bugs)
Version:
(earliest affected)
7.2.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: sdc.blanco
URL:
Whiteboard: target:7.2.0
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-12 08:08 UTC by sdc.blanco
Modified: 2021-02-14 08:20 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sdc.blanco 2021-02-12 08:08:32 UTC
1. Tools > AutoCorrect > AutoCorrect Options - Options tab.
2. Uncheck all T options except for "Correct TWo INitial CApitals."
3. Make sure Tools > AutoCorrect > While Typing is enabled.
4. Enter:
CAs
CBs
CCs
CDs
CEs
CFs

Actual:  Cas, Ccs, Cfs are corrected; CBs, CDs, CEs are not
Expected:  All are corrected, except for CDs (which is in the Exceptions list).
Comment 1 Mike Kaganski 2021-02-12 08:40:39 UTC Comment hidden (obsolete)
Comment 2 sdc.blanco 2021-02-12 09:38:18 UTC
Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 62ee3d791d63cb693109b063b73dff5e81356d90
CPU threads: 8; OS: Windows 10.0 Build 19041; UI render: Skia/Raster; VCL: win
Locale: en-US (en_DK); UI: en-US
Calc: threaded

Replacements and exceptions for language:  {en-US}  when autocorrect options are set.

when English (UK) appears on Status Bar: can reproduce
when {en-US} appears on Status Bar:      works as expected
Comment 3 Mike Kaganski 2021-02-12 10:10:57 UTC
Likely that has something to do with spelling dictionaries that are different for en-US and en-GB. The former underlines CBs, while the latter does not, and for Cbs, there's a CBs in suggestions.

I'm not an expert in English and linguistics in general; may Marco (the maintained of the dictionaries) have some deeper insight?
Comment 4 sdc.blanco 2021-02-12 10:28:35 UTC Comment hidden (off-topic)
Comment 5 Mike Kaganski 2021-02-12 10:41:06 UTC Comment hidden (obsolete)
Comment 6 Marco A.G.Pinto 2021-02-12 10:53:20 UTC
"CB" is an initialism for several things.

And it can be both a countable and uncountable noun.

Thus:
CB
CBs
CB's

If it is missing in the US dictionary, you can suggest it in Kevin Atkinson's GitHub:
https://github.com/en-wl/wordlist

And good luck with it, since Kevin is very picky adding words.
Comment 7 sdc.blanco 2021-02-12 11:00:22 UTC
(In reply to Mike Kaganski from comment #5)
> Type something wrong with two initial capitals, see it auto-corrected, undo
> (so it has two initial capitals again). Right-click and choose "Ignore All".
> See how it's added to the exception list when Autoinclude is enabled, and
> does not add there when it's disabled.
Cool!  "Undo" was sufficient to add to Autoinclude.  
(also works with abbreviations that end with period)

(will add this critical information to the help page)   

[ did not see any Ignore All with right-click ]

But AutoInclude did not work with sMALL iNITIAL.  Should it?
Comment 8 Mike Kaganski 2021-02-12 11:17:34 UTC
(In reply to sdc.blanco from comment #7)
> "Undo" was sufficient to add to Autoinclude.  
> (also works with abbreviations that end with period)

Great - I didn't know. Thanks!

> But AutoInclude did not work with sMALL iNITIAL.  Should it?

It's a bug: I haven't implemented that. Please file separately, and CC me. Thanks!
Comment 9 sdc.blanco 2021-02-12 11:20:15 UTC
Thanks for reply Marco.

(In reply to Marco A.G.Pinto from comment #6)
> "CB" is an initialism for several things.
And I assume the same explanation applies for CEs and CTs ?

And just to be sure (in relation to the documentation):

Currently it says:

-----

Correct TWo INitial CApitals

If you type two uppercase letters at the beginning of a "WOrd", the second uppercase letter is automatically replaced with a lowercase letter.

-----

Probably it needs a <note> that says (something like):

   No correction is made for words that begin with two uppercase 
   letters and are found in the applicable spelling dictionaries. 

or just

   No correction is made for words found in the applicable 
   spelling dictionaries. 


(I assume more than one dictionary can be used, but not sure how to refer clearly to that situation). 

(Will convert this ticket to a documentation bug)
Comment 10 Julien Nabet 2021-02-13 09:03:21 UTC
sdc.blanco: let's put this one to ASSIGNED since you assigned yourself.
Comment 11 Commit Notification 2021-02-13 14:19:24 UTC
Seth Chaiklin committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/help/commit/91a0a351ac6410eaea0712fdf0e58ff395399e40

tdf#140366 clarifications in AutoCorrect Options
Comment 12 Commit Notification 2021-02-14 08:20:14 UTC
Seth Chaiklin committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/help/commit/09c4f7472b916a8f5dd23761ec85f50b4827f679

tdf#140366 further adjustment of autoinclude in Exceptions