Bug 163671 - Support "Add all to dictionary" - multiple unknown words at once
Summary: Support "Add all to dictionary" - multiple unknown words at once
Status: NEEDINFO
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.2.0.0 alpha0+
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard: QA:needsComment
Keywords: needsUXEval
Depends on:
Blocks: Dictionaries
  Show dependency treegraph
 
Reported: 2024-10-29 10:00 UTC by peter josvai
Modified: 2025-09-23 15:16 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 peter josvai 2024-10-29 10:00:17 UTC
hi,

It could be great to have an export and import functionality in the Tools / Spelling / Options section editing dictionaries...

BUT there is a way-way simpler way of possibly doing just that.

Imagine someone working on a document of 32 pages (I mean, a long one).
Lots of words would be added to the custom dictionary. 
BUT when moving to another machine (in another apartment or city, or just because moving to an arm chair from the working table), all those words would be underlined with red wavy line...

This makes it impossible to "spot" any actual spelling errors among the hundreds of marked words...


SOLUTION:

If you could add a function to the context menu (which we see when we right click on a word underlined with red wavy line) "ADD ALL to dictionary".

There is already an "Add to dictionary" menu item.

Under that you could add "ADD ALL to dictionary", and the users could use it.

EXPLANATION:
It would be perfect for the user because when opening a document which she or he already edited and there are no spell errors (therefore all underlined words are words that the user want to add to custom dictionary), then by just ONE CLICK (right click) s/he could add ALL marked words to the dictionary, and move on with the work...




It would be very-very useful.



- - - thank you for developing Libreoffice and Writer - - -
Comment 1 Eyal Rozenberg 2025-09-20 18:42:32 UTC
This confuses two different enhancement requests. OP, with your persmission, let's split it up into one bug about "Add all to dictionary", and another bug about dictionary import and export.
Comment 2 Eyal Rozenberg 2025-09-20 18:44:24 UTC
So, apparently the splitting has already happened... bug 157981 is about importing and exporting dictionaries.
Comment 3 Heiko Tietze 2025-09-22 08:24:19 UTC
Why not use Tools > Automatic Spellchecking to disable the red wavy lines? If you are sure that all words are correct (or you review the content from someone else), adding _all_ unknown words to the dictionary makes not much sense. Plus, often words are unknown for a good reason and should not be in a dictionary. For example the authors name.

Ultimately I'm against this addition. => WF (needinfo for clarification of the use case)
Comment 4 Eyal Rozenberg 2025-09-22 10:20:24 UTC
(In reply to Heiko Tietze from comment #3)
> Why not use Tools > Automatic Spellchecking to disable the red wavy lines?

Because that would defeat the whole purpose. Why does OP even want to add words to the dictionary? Because they _do_ want things to be spell-checked. But they have a bunch of terms/words that need to be added.

> If you are sure that all words are correct (or you review the content from
> someone else), adding _all_ unknown words to the dictionary makes not much
> sense.

1. For the rest of the document, other than the selection.
2. For other documents later on.
3. For sharing with other people.

If we could get this to only appear on the menu when there are multiple mis-spelled words in the selection, and since we can't otherwise obtain all misspelled words in a selection or a document... I don't know, if we can add one word, I don't see why we shouldn't be able to add many.
Comment 5 jan d 2025-09-23 13:43:14 UTC
I totally agree with easing import/export of dictionaries (see 157981) and maybe even doing with from a simple document from which all words would be added. 

I think that an "add all" context menu entry would be a menu entry that would be rarely used and would be difficult to understand (Does it add all unknown words from the document? Or all unknown in selection? Both would work different from what "add word..." now does). Thus I would suggest not to focus on the context menu but the dictionary import/export.
Comment 6 Eyal Rozenberg 2025-09-23 15:16:34 UTC
(In reply to jan d from comment #5)
> I think that an "add all" context menu entry would be a menu entry that
> would be rarely used and would be difficult to understand (Does it add all
> unknown words from the document? Or all unknown in selection? 

In selection naturally. The label would say as much.

But - how about it being the _same_ context menu item? When there's just one misspelled word, it'll be "Add to dictionary"; when it's a selection with many - "Add unknown words to dictionary"?