Bug 151623 - Auto-complete being sensitive to uppercase/lower-case but word auto-complete list contains only a single entry
Summary: Auto-complete being sensitive to uppercase/lower-case but word auto-complete ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.0.3 release
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected
Depends on:
Blocks: AutoCorrect-Complete
  Show dependency treegraph
 
Reported: 2022-10-18 13:56 UTC by Telesto
Modified: 2024-09-12 15:12 UTC (History)
3 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 Telesto 2022-10-18 13:56:03 UTC
Description:
Auto-complete being sensitive to uppercase/lower-case but word auto-complete list contains only a single entry

Steps to Reproduce:
1. Open Writer
2. Tools -> Auto-Correct -> Options -> Set language to English USA -> Word completion tab. There should not be any "Amitriptyline" in the list (if so; delete it, close dialog and quite + relaunch LibreOffice)
3. Set document language to English USA (and assuming English Dictionary installed)
4. Copy "amitriptyline" (without quotes) and paste it into writer (as unformatted text)
5. Press Spacebar -> capitalizing triggered
6. Check if Amitriptyline being added to Word completion: Tools -> Auto-Correct -> Options -> Set language to English USA -> Word completion tab.
7. Cancel the dialog
8. As follow-up on step 5: type: Amit -> auto-complete suggestion appears. Hit Enter to complete (fine)
9. Enter a space by pressing spacebar. type: amit (no suggestion).. finish it to: amitriptyline
10. Enter a space by pressing spacebar. Type: amit.. autocomplete working
11. Check for "amitriptyline" (all lower-case) being added to Word completion: Tools -> Auto-Correct -> Options -> Set language to English USA -> Word completion tab.


Actual Results:
There is only a single entry: Amitriptyline 

Expected Results:
Or auto-complete being case sensitive: meaning 2 entry's. 
Or non-case sensitive: a single entry. 

And well keep in mind: the upper-case/lower case difference being triggered by capitalizing feature 



Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 9063d99ff5ee43cc1239fc1dbb5d9897bdda1c9b
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL threaded
Comment 1 Dieter 2022-11-03 09:33:17 UTC
I confirm the problem with

Version: 7.5.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 9cd0f4c2d25462feba0ffcbd906c199273821243
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: default; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: threaded

But when I first tried to reproduce, LO added "amitriptyline" to word collection list and gave me "Amitriptyline" (at beginning of a paragraph) and "amitriptyline" (after a space) as suggestion. For me that's the correct behaviour. But I couldn't reproduce this behaviour and couldn't explain it.
Comment 2 Buovjaga 2024-09-12 15:12:40 UTC
Checked in linux-64-7.3 repo (actually found via Bugzilla search for whiteboard target:7.3 and autocorrect in summary) and before 2d496c3b1c0912c747bf7a83a4a982fd2dc3a801 the word was added in lowercase when it is the first word in a sentence and auto-capitalised. It is in line with the commit message "tdf#119695 only add word to autocomplete suggestions when the cursor leaves it".

In the preceding commit, if you collect amitriptyline as the first word of a sentence, it is stored in lowercase, but can be used to auto-complete both a capitalised "Amit" or lowercase "amit". In 2d496c3b1c0912c747bf7a83a4a982fd2dc3a801 this is not the case.

However, even in the preceding commit, a collected capitalised Amitriptyline can only be used to auto-complete "Amit" and likewise a collected lowercase one from the middle of a sentence can only be used to auto-complete "amit". This seems to have always been the case as I can repro already in oldest of 5.0. You always have to remember to install an English dictionary when testing.