Issue 93824 - User-defined dictionaries misbehaving
Summary: User-defined dictionaries misbehaving
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: Writer
Classification: Application
Component: ui (show other issues)
Version: OOO300m5
Hardware: PC Windows XP
: P3 Trivial (vote)
Target Milestone: ---
Assignee: stefan.baltzer
QA Contact: issues@sw
URL:
Keywords: needmoreinfo
Depends on:
Blocks:
 
Reported: 2008-09-12 14:10 UTC by kad
Modified: 2009-12-28 11:41 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description kad 2008-09-12 14:10:55 UTC
In the "Options - Language Settings - Writing Aids" menu, "User-defined
dictionaries" window, there are three default dictionaries (soffice, sun,
IgnoreAll). The problem is the first two (soffice, sun) CANNOT be edited or
deleted and no words can be added to them (either through the "Edit" button or
directly from the document by clicking righ-mouse button on a red underlined
word a choosing "Add"). This is obviously true for any new user dictionary which
is added to the list. On the other hand the third one (IgnoreAll) CAN be edited
and even deleted, even though the corresponding "Help" says it should not be
possible. So it's all completely the other way around and it's quite annoying bug.

Cheers!
Comment 1 michael.ruess 2008-09-12 14:40:37 UTC
Reassigned to SBA.
Comment 2 stefan.baltzer 2008-09-12 14:46:04 UTC
SBA->kad: A user being annoyed does not make an issue P1. Otherwise we would
have ONLY P1 issues. We have rules that proved feasible in the past years.

Please read
http://www.openoffice.org/scdocs/ddIssues_EnterModify.html#priority

Thank you for your comprehesion.
Comment 3 kad 2008-09-12 14:55:22 UTC
Sorry, wrong word choice and maybe wrong priority. Still I believe it's quite a
serious problem because it effectively prevents users from working with
user-defined dictionaries (editing, deleting, adding new words).
Comment 4 thomas.lange 2008-09-12 15:03:26 UTC
Well the first two dictionaries (sun and soffice) are installed in the share
layer. Thus if you do not have administrator permissions they can't be edited at
all. If even you could it would be a bad idea to do so since upon upgrade those
are likely to not get migrated. They'll simply get replaced by the new once from
the new installation set.

Only if you create a user dictionary by yourself in the Writing Aids dialog you
will get a new dictionary (residing in the user layer) that can always be edited
by you. Also those from the user layer will get migrated (copied) when updating
the office.

Thus there are only two potential issues:
1) if you open the context menu a user dictionary named standard should be
create to allow you to add words to even if you did not create one yourself so far.
2) if the share layer dictionaries are listed in the context menu or spell check
dialog that should not be the case.

TL->SBA: please check. Thanks!
If the above two points are not met I think they will qualify as P3 with target
OOo 3.1. since those should be regressions.
Comment 5 stefan.baltzer 2008-09-12 15:06:22 UTC
SBA: Set keyword "needmoreinfo".
Comment 6 kad 2008-09-12 15:22:21 UTC
Thanks SBA for your answer, here are my comments:

When I click on a red underlined word in the document, a context menu opens
divided in three parts:
1. alternative spelling suggestions
2. three items - "Spellcheck...", "Ignore All" and "AutoCorrect"
3. two items - "Set Language for Selection" and "Set Language for Paragraph"

In the second part of the context menu there is an "Add" item missing (it was
there in the older versions of OpenOffice). When I go to Writing Aids and create
the "Standard" dictionary manually, I can't edit it. And when I afterwards click
on a red underlined word in order to add it to this Standard dictionary, all the
underlines suddenly disappear.

And there's also the issue with the "IgnoreAll" dictionary, which isn't supposed
to be deletable (according to Help), but it is.

P.S. - I have administrator rights and I've downloaded the RC1 from the official
site (openoffice.org).

Cheers!
Comment 7 thomas.lange 2008-09-12 15:39:58 UTC
Well, user created dictionaries should always editable and be seen in the
context menu if and only if(!) the language of the dicitonary is all or matches
the language of the misspelled word. 
It is no use adding a French to an English dic...

Also as said before the standard.dic (with language all) should have been created.

And for the IgnoreAll dictionary it can be deleted (especially since there is no
file that belongs to it). And since there always must be an IgnoreAll dictionary
in order for the 'Ignore' button and menu entry to work pressingg 'Delete' for
the IgnoreAll dictionary is simply removong all the entries from that one.
For all other (user) dictionaries the corresponding file should be physically
removed. Maybe the help could be a bit more precise here...
Comment 8 kad 2008-09-12 16:09:03 UTC
The language of the Standard dictionary is "All" and even if I wanted to change
I couldn't because, as I said, I cannot edit it in any way (if I click on it in
the Writing Aids and then click "Edit", I cannot change the language nor can I
add any words). I can change only when creating it, not afterwards. And I also
cannot delete it, after I create it.

And just now I detected another problem - If I create any other user dictionary
apart from "Standard" (any other name), I again cannot edit it nor add any words
to it and I even cannot delete it (the delete icon is grey). And what's worse,
when I close the program AND exit the quickstarter and then restart the program
again, the dictionary disappear.

Btw can you also tell me where are the user-defined .dic files located? I can
find only the default sun and soffice in the "Program Files - OpenOffice.org -
Basis 3.0 - share - wordbook - en-US" folder.
Thank you
Comment 9 thomas.lange 2008-09-12 16:18:31 UTC
If you are using Windows look into 'Document and Settings' + your user name...
There should be a directory with Staroffice or OpenOffice in its name.
Within it search for a directory named 'wordbook' path should be sth like
*\user\wordbook. Directly in that directory they should be found.
Comment 10 kad 2008-09-12 16:23:39 UTC
Thank you tl for your answer, but this directory is always empty. And as I said,
any directory I create cannot be edited and it always disappears after closing
the program and exiting the quickstarter (apart from Standard, that one stays).
Comment 11 thomas.lange 2008-09-12 16:24:01 UTC
Or easier. Just look for your standard.dic
Comment 12 thomas.lange 2008-09-12 16:42:17 UTC
Strange. :-/
Never heard ofanyone with this special problem...
Comment 13 kad 2008-09-12 19:57:37 UTC
Another piece of info - if I manualy copy my old "standard.dic" from Openoffice
2.4 into the RC1 wordbook folder, I can add words to it (there is a "Add" item
in the context menu). But it must be called "standard". Any other name and it
doesn't work. Miraculously I can suddenly edit and delete "soffice" and "sun"
dictionaries too.

So the problem seems to be the program doesn't automatically create a
corresponding file in the wordbook folder and it doesn't accept any user-defined
dictionary name other than "standard".
Comment 14 stefan.baltzer 2008-09-12 21:07:46 UTC
SBA->kad: Can you reproduce this on a "clean" system?
Problems with older installations or older /user directory stuff (that directory
is re-used in OOo 3.0 Pre-builds.

This possible source of "rare, strange but painful and hard-to-reproduce"
situations often happens when testing. In order to check if the installation of
the office worked properly, a System must be cleaned of all old office version
traces of post-2.4.1 installations.

(1) First attempt is to remove the /user/ directory so that the Office comes up
with the first-time-wizard.
 (Note: At this point, all /user/... files will be initially written. If this
happens with, say, wrong file read/write rights, this will affect all end-users
and is a show stopper. But "not having removed the remains of a OOo 3.0 Beta
installation or other toying remains" can not be a defect itself, only a
hinderance when doing QA :-)

(2) Next attempt is to re-install the entire office (after - of course - having
removed all of its remains on the system before).

(3) Third is - No, this is what we would do here... : Do it on a newly installed
operating system (Without any OOo 2.x or 1.x remains either).

Already, if (2) ends in the above problem, we have to ruin a developer's day...
- Err - No: We motivate him to make things better :-)

Please give it a try and comment here, thank you.
Feel free to stop after (2) ;-)
Comment 15 stefan.baltzer 2008-09-12 21:15:15 UTC
Just for the record: 
I ran into some related Enhancement requests and for those interested, here they
are... 
issue 91392 [Request for a way to edit the custom dictionary directly],
issue 75238 [Add multiple forms of a new word in "Dictionary edit" GUI],
issue 75237 [Provide an 'edit function' for dict. contents in 'Edit Custom
Dictionary' dialogue]
issue 75236 [Provide a Cancel button for "dictionary edit" GUI].

Comment 16 kad 2008-09-12 21:21:17 UTC
Yeah, that will be a solution for me in a couple of months, when I'm gonna buy a
new computer. I'm not sure I want to reinstall my ancient Windows just because
of Office, it would be a big hassle even if I hadn't lost my install CD :]]

And with my new comp I want to switch to Linux so it will be a completely
different matter, I hope :)

So for now I will do with the standard dictionary, it's not that big deal that I
can't add new user dictionaries. And if you say you have had no such a complaint
before it means it's just me, something with my OS (it's superold), so don't
make your developers nervous :)

Anyways thanks for a really great customer support, geez guys, OpenOffice is a
freeware and you have better suport than most commercial products. Good luck,
looking fwd to full release!
Comment 17 stefan.baltzer 2008-09-12 21:37:04 UTC
sba->kad: Thank you for your comment.
Set to "Worksforme".
Comment 18 stefan.baltzer 2008-10-06 07:45:37 UTC
Closing issue.
Comment 19 joaopaulo1511 2009-04-14 10:12:12 UTC
Hi, I am using OpenOffice.org 3.0.1 (started with the 1.x series) under Windows
XP and experiencing the same problems as kad reported on Sep 12 2008, but I
found a workaround so I could create a custom dictionary: copy any .DIC file
from "OpenOffice.org 3\Basis\share\wordbook\pt-BR" (or en-US or whatever
language you have installed) into "%AppData%\OpenOffice.org\3\user\wordbook"
(here we don't need to specify a language) and rename it to the name you want;
then open OO.o and edit the newly created custom .DIC to erase the words inside
and change its language. Or you can create a new custom .DIC from scratch by
following the UTF-8 plain text format:

<start of file - do not add this tag>
OOoUserDict1
lang: pt-BR
type: positive
---
word1
word2
wordx
<end of file - do not add this tag>

The "lang" can be set as "<none>" (without quotes) or as "pt-BR", "en-US" etc.

Doing some search, I found how to do negative (exceptions) .DIC by looking at
a7neg.dic inside
"http://www.openoffice.org/nonav/issues/showattachment.cgi/34666/sampleDics.zip", which
was found at the bug page "http://www.openoffice.org/issues/show_bug.cgi?id=60698".

<start of file - do not add this tag>
OOoUserDict1
lang: af-ZA
type: negative
---
windows==linux
internetexplorer==firefox
<end of file - do not add this tag>