Bug 149443 - [enhancement] select language for word completion
Summary: [enhancement] select language for word completion
Status: RESOLVED DUPLICATE of bug 32357
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.1.3 release
Hardware: All Windows (All)
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-03 14:43 UTC by Giulio
Modified: 2022-06-16 04: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 Giulio 2022-06-03 14:43:30 UTC
Description:
I often have the problem that the word-completion feature suggests words in english, while I need italian words (or vice versa). 
It would be very useful if I could select to only have suggested words of a particular language (maybe based on built-in dictionaries?). 
Or, if I could instruct the word-completion feature to only collect words in a particular language. 
Or both! :-)


Actual Results:
?

Expected Results:
*


Reproducible: Always


User Profile Reset: No



Additional Info:
*
Comment 1 Rafael Lima 2022-06-03 18:16:31 UTC
Hi Giulio, thanks for reporting.

AFAIK the words collected by Word Completion are based on words that you use frequently in a document. According to the Writer Guide "Automatic word completion occurs only after you type a word for the second time in a document."

Does your document contain words in English and Italian?

If you want to use only words in Italian, you can enable Auto SpellCheck, so that only words recognized by the spell checker are registered.

According to the help page [1], "If the automatic spellcheck option is enabled, only the words that are recognized by the spellcheck are collected."

[1] https://help.libreoffice.org/7.3/en-US/text/shared/01/06040600.html?&DbPAR=WRITER
Comment 2 Giulio 2022-06-03 19:54:07 UTC
Hi Rafael,
thanks for your reply, and your suggestions

Yes, my documents often contain parts in italian and parts in english.
But that's not the only source of the problem: I use the option that keeps
the collected words when closing documents, so words in all languages are kept.

An example of the problem is this: I want to type the italian word
"internazionale", but the completion feature suggests "international" in english, because it comes first in alphab order. To get the italian suggestion I need to go on typing to the 8th letter, but that reduces the usefulness of the feature.

I thought about possibile solutions:

1.
when you type, the feature could consider the language you're typing in
(from the language attribute of character) and only suggest words that belong to that dictionary.

2.
an option could allow you to collect only words in a specific language
(otherwise, if I have a paragraph in a different language and it is spelled correctly based on that language, those words get collected too)

3.
an option could allow you to decide whether to collect all the words
in the documents you open (e.g. a document someone sent you) or just the
words you actually type in them.


(In reply to Rafael Lima from comment #1)
> Hi Giulio, thanks for reporting.
> 
> AFAIK the words collected by Word Completion are based on words that you use
> frequently in a document. According to the Writer Guide "Automatic word
> completion occurs only after you type a word for the second time in a
> document."
> 
> Does your document contain words in English and Italian?
> 
> If you want to use only words in Italian, you can enable Auto SpellCheck, so
> that only words recognized by the spell checker are registered.
> 
> According to the help page [1], "If the automatic spellcheck option is
> enabled, only the words that are recognized by the spellcheck are collected."
> 
> [1]
> https://help.libreoffice.org/7.3/en-US/text/shared/01/06040600.
> html?&DbPAR=WRITER
Comment 3 Dieter 2022-06-16 04:39:13 UTC
If there are different word completions you can select one with ctrl+tab, see https://help.libreoffice.org/7.3/en-GB/text/swriter/guide/word_completion.html?&DbPAR=WRITER&System=WIN
I think, this would solve your problem. But I think, there should be something that indicates different words for word completion.

Your idea of a language sensitive word completion is bug 32357. So I mark it as duplicate. Feel free to change it back to UNCONFIRMED, if you disagree.

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