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 - - -
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.
So, apparently the splitting has already happened... bug 157981 is about importing and exporting dictionaries.
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)
(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.
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.
(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"?
-1: this is a "workaround" idea, which would be obsoleted by import/export of user dictionaries.
We discussed the topic in the design meeting. The use case is not straight-forward: instead of adding _all_ unknown words (which includes for example the authors, loanwords, etc.) it might be more suitable to hide the wavy lines. Others believe that bulk operations are common, at least for a selection. An approach might be to ease the import/export of dictionaries, as requested in 157981. Or to add a command "Add unknown words from selection" and tinker the selection context to deal with spelling issues too (see also bug 118419). Personally I'd not add the function.
(In reply to Heiko Tietze from comment #8) Adding a couple of points I made at the design meeting: * If this functionality is implemented, it is important that we have a confirmation dialog before multiple words are added to the dictionary - since this action is effectively-irreversible: For a single word - you know what it is, because it's the one you clicked, and you could "just" locate it in the dictionary and remove it; but for many words - you would not remember them all, and would have a hard time removing them - plus, it would be a manual process of locating each of them. So: An "Are you sure" dialog is in order. * We have (at least) two loci at which this can be enabled: The context menu for selections, and the Spelling... dialog. The context menu is easier to do, while adding this to the Spelling... dialog would require letting the user see all misspelled words at once, which is now not possible and would require quite a bit of work. OTOH, adding another item to the selection context menu is not very desirable, for a feature that's not common, while adding a button and some more functionality to the Spelling dialog is less "painful", UX-wise.