Issue 123369 - Multiple deleted Custom dictionary words reappear when AOO closed - reopened, additional nonsense strings might appear in dict.
Summary: Multiple deleted Custom dictionary words reappear when AOO closed - reopened,...
Alias: None
Product: General
Classification: Code
Component: spell checking (show other issues)
Version: 3.4.0
Hardware: All All
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Keywords: regression
Depends on:
Reported: 2013-09-26 01:21 UTC by equzephyr
Modified: 2013-09-26 17:04 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
Description equzephyr 2013-09-26 01:21:04 UTC
Removing words from a custom dictionary (such as standard.dic) using the interface under options -> language settings -> writing aids -> user defined dictionaries - > edit has multiple bugs.

(1) Attempting to remove multiple words at the same time doesn't work. Only the first word that was deleted will actually be removed. All of the other deleted words will still be there the next time OpenOffice is started.

(2) Removing a word sometimes causes a new word to be inserted that consists of a single letter. For example, "s". This new word cannot be removed from this interface as it simply reappears every time OpenOffice is started. The only way to remove it is to edit the .dic file by hand.

(3) Multiple copies of the same word sometimes end up in the dictionary file. Again, the only way to remove the superfluous copies is by manually editing the .dic file.

Workaround: Editing the .dic file by hand with a text editor can be used to work around these problems.
Comment 1 equzephyr 2013-09-26 01:52:25 UTC
It turns out that issue #2 as I reported below is not always leaving a single character. What it appears to be doing is leaving partial words in the dictionary. Sometimes it's one character from a word, sometimes it's four. Again, these partial words cannot be removed from the OpenOffice remove word interface and must be removed by manually editing the .dic file with a text editor. Also, the partial words issue seems to be related to whatever is causing multiple duplicates of the same word to sometimes end up in the .dic file.
Comment 2 Rainer Bielefeld 2013-09-26 05:04:38 UTC
I limit this report to the first listed problem.

Steps how to reproduce Reproducible with  "AOO 4.1.0-Dev – English  UI / German locale - [AOO410m1(Build:9750)  -  Rev. 1525917 - 2013-09-25]" on German WIN7 Home
Premium (64bit)", own separate user profile:

1. From AOO Start Center open new Writer document.
2. To fill customer dictionary, copy / paste as plain text text contents from
   <> to document,
   if necessary change document language to English (menu 'Tools -> Language
   -> For all Text'),  do a spell check and add several
   unknown words (by [Add] in Spell Check dialog)
3. Terminate Spell Check
4. Menu 'Tools -> Options -> Language Settings -> Writing Aids - 
   User-defined directories - Select "standard" -> [Edit]
   > User directory will be opened, shows some of the new words from 
     Wikipedia article like "Elastomer", "Moineau", slurries
5. Try to select several words from list with <control+click> or <shift+click>
   Expected: it's possible to select multiple words in list
   Actual: Impossible

For some needs it would really be more comfortable to have the possibility to select multiple words in dictionary list for deletion instead of deleting one by one.

I do not think that is an important improvement, but may be other users with other needs think different.

Please submit separate bugs for the other problems (2), (3) you found due to 
<> and contribute a step by step instruction how to reproduce the problem. If you want you may add me to CC
Comment 3 Rainer Bielefeld 2013-09-26 05:09:20 UTC
Not a new problem, that was never possible in OOo
Comment 4 equzephyr 2013-09-26 15:20:50 UTC
I think you misunderstood the problem actually. It's not that you can't select multiple words at the same time. I know that's not possible. It's that that you could hit the delete button multiple times, and it will appear to delete all of the words that you selected individually, and then hit the delete button for. Those words will be gone from the dictionary for the remainder of the session. However, if you close and restart OpenOffice again, all of those words are back. This is clearly a bug. Not a feature request. For some reason, if you delete multiple words in the dialog, the deleted words aren't actually getting removed from the .dic file.

Steps to reproduce:

(1) Add some wprds to the dictionary.
(2) Open the edit dictionary dialog.
(3) Select a word and click delete. The word disappears.
(4) Select another word and click delete. That word also disappears.
(5) Close the dialog.
(6) Both words now show up as incorrect, as expected.
(7) Close and restart OpenOffice
(8) Expected results: Both words should be gone from custom dictionary. Actual results: Neither word deletion was actually persisted to the .dic file, and so both words are indicated to be correct again.

On further examination, it appears that sometimes even when deleting single words, the deletion doesn't actually persist to the dictionary file.

The reason I filed all of the issues as one bug report is because I suspect they are related to each other. For example, I strongly suspect the inability to remove some words from the dictionary is being caused by multiple copies of the same word in the dictionary if you actually look at the .dic file in a text editor. These multiple copies of the same word don't show up in the dialog itself. Only if you look at the raw text file in a text editor.
Comment 5 Rainer Bielefeld 2013-09-26 15:35:46 UTC
So you should change the Summary!
I will do my own tests later
Comment 6 equzephyr 2013-09-26 15:41:51 UTC
Done. Didn't realize I could change summary until you pointed it out. Thought only admins or something could change it.

(In reply to Rainer Bielefeld from comment #5)
> @equzephyr
> So you should change the Summary!
> I will do my own tests later
Comment 7 Rainer Bielefeld 2013-09-26 15:47:33 UTC
Reproducible with  "AOO 4.1.0-Dev – English  UI / German locale - [AOO410m1(Build:9750)  -  Rev. 1525917 - 2013-09-25]" on German WIN7 Home
Premium (64bit)", own separate user profile.

a) Deletion of 1 word -> close -> Terminate AOO -> reopen ->
   check Custom Dict. works as  expected for me
b) Deletion of multiple words ([Delete] several times) -> Terminate AOO 
   -> reopen -> check Custom Dict. does not work at all, 
   all words back after reopen
c) Deletion of 1 word -> close dialog -> reopen dialog -> Deletion of 1 word -> 
   and so on several times -> Terminate AOO 
   -> reopen -> check Custom Dict. check Custom Dict.:
   Deletion more or less ok, but some new strange words have appeared in the dict

I will check where that began
Comment 8 equzephyr 2013-09-26 16:09:42 UTC
Test case for the strange new words that are appearing. I've made some observations that may help debug this.

(1) Add the following words to the dictionary.

(2) Remove the second to the last word from the dictionary (abcdef)

(3) Close and restart OpenOffice.

(4) The dictionary now looks like this:


The selected word was deleted. But for some reason the word after that word was added to the dictionary, but with the first three characters stripped off of it.
Comment 9 Rainer Bielefeld 2013-09-26 16:57:39 UTC
a) With WIN the "Words reappear" problem did not exist with OOo 3.1.1, OOo 3.3.0

b)  "Words reappear" problem appears for me with AOO 3.4.0.
    So an old Regression compared to OOo

c) Unexpected new words in list problem:
Seems not so 100% reproducible as the "Words reappear" problem, but definitively appears. Original test from comment 8 did not reproduce the problem for me, but I did a similar test:

30. Launched AOO with empty Custom Dictionary
31. Added words abc, abcdef, abcdefghi, abcdefghijkl, abcdefghijklmno, 
   abcdefghijklmnoprr to dict.
32. terminated WIN AOO410m1(Build:9750)  -  Rev. 1521488
33. Launched
34. from Start center deleted "abc", closed dialogs until back to Start Center,
    back to Writing aidd, deleted "abcdef", closed dialogs until back to 
    Start Center, back to Writing aidd, deleted "abcdeffhi", , closed dialogs 
    until back to  Start Center
35. relaunch and to writing-Aids - Edit Custom Dict.
    Now I see (additional to expected strings" jklmnopqr, mnopqr, pqr

Thx. for comment 8, that was just the test I wanted to ask you to do :-)
Comment 10 Rainer Bielefeld 2013-09-26 17:04:52 UTC
I see exactly my Comment 9 result with Virtualbox Ubuntu 64 Bit LibO, so I think we can make this one OS=All

I terminate my tests here with this result, a developer will have to decide whether the 2 problems are related or depend on different roots .