Bug 144945 - Writer always delete "extra" collected words
Summary: Writer always delete "extra" collected words
Status: RESOLVED DUPLICATE of bug 86872
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.5.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: AutoCorrect-Complete
  Show dependency treegraph
 
Reported: 2021-10-05 14:40 UTC by John
Modified: 2021-10-26 03:39 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 John 2021-10-05 14:40:55 UTC
Description:


When closing a document, remove the words collected from it from the list


1. Tools > AutoCorrect > AutoCorrect Options > Word Completion
2. Collect words = True
3. When closing a document, remove the words collected from it from the list = False

Create a new document and copy the following text there:

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

4. Note that now the list of collected words is quite large.
5. Close the documet.
6. Open it again. Note that the list of collected words is the same. (This is OK.)

Now:

7. Remove all the text except of the first two words, so that instead of "Lorem ipsum dolor sit amet ..." you have only "Lorem ipsum" now.
8. Close the document.
9. Open it again.
10. Note that the list of words is now empty. I think this is a bug because "When closing a document, remove the words collected from it from the list" check box is off.

Personally, I don't care, because I don't like polluting documents with extra meta-information and similar things, but there are probably people who need this.

Steps to Reproduce:
see above

Actual Results:
see above

Expected Results:
see above


Reproducible: Always


User Profile Reset: No



Additional Info:
see above
Comment 1 John 2021-10-05 15:44:25 UTC
Well, after reading https://help.libreoffice.org/7.1/en-US/text/shared/01/06040600.html I realized that "When closing a document, remove the words collected from it from the list" is actually works differently.

My initial assumption was is that:

* If the check box is "off": If we open a single document with a large amount of text, remove 95% of the text, then close the document, and then open it again, the list of collected words will be the same as before the editing it.

* Otherwise (that is, if the check box if "on"), the list of words will contain only those words that are present in the new, "small" version of the text.

But this setting is assumed to work differently.

It seems that it is assumed that if you open two documents simultaneously, one of which contains some text and the other one is empty, the empty document will have access to words collected in non-empty document. And when you close non-empty document, it should lost access to its words.

I would say I don't find it is intuitive unless your carefully write the corresponding section in the manual, and I don't think this makes sense to me.

But anyway, it seems this still doesn't work. Although when you close non-empty document the list words in empty document becomes empty, these words are still available for completion.
Comment 2 John 2021-10-05 15:46:16 UTC
> I would say I don't find it is intuitive unless your carefully
> write the corresponding section in the manual, and I don't think
> this makes sense to me.

I would say I don't find it intuitive unless your carefully
**read** the corresponding section in the manual, and I don't think
this makes sense to me.
Comment 3 Dieter 2021-10-25 14:48:53 UTC
(In reply to John from comment #2)
> I would say I don't find it intuitive unless your carefully
> **read** the corresponding section in the manual, and I don't think
> this makes sense to me.

So it works a it actually should work, correct?

Tested with
Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 273a25c796fca9afa0dfadac57dc3f336831221c
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

So what is your idea now?
a) Close the bug report (NOTABUG)
b) Improve documentation
c) Change behaviour in LO?
d) ?????

=> NEEDINFO
Comment 4 Shantanu 2021-10-26 03:39:52 UTC

*** This bug has been marked as a duplicate of bug 86872 ***