Issue 11995 - Spell checker not recognizing words
Summary: Spell checker not recognizing words
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: 644
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: h.ilter
QA Contact: issues@sw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-03 15:09 UTC by mchase
Modified: 2015-04-07 09:37 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 mchase 2003-03-03 15:09:55 UTC
When I spell check a document in Writer 644_m4, no words are recognized by the spell checker.
Reinstalling 644_m4 from scratch did not help.  Versions 1.0.2 and 644_m1 installed in the same system do not have the problem.
Even with 644_m4, the spell checker sometimes will work correctly for a few paragraphs and then start giving the word selection dialog box for every word.  The problem seems to be worse for plain text documents, but it also occurs in normal Writer documents.  When AutoSpellcheck is enabled, marking seems to stop at the point in the document where the problem starts.

Options are the defaults except AutoCheck is sometimes enabled.  The problem still occurs when AutoCheck is off.
The problem occurs with or without private dictionaries present.
Language: English (USA)

OS: Linux, Redhat 2.4.18-24.8.0 i686
glibc: 2.3.1

Dictionaries: /opt/OpenOffice.org644_m4/share/dict/ooo/
-r--r--r--    1 root     root          715 Feb 24 06:10 dictionary.lst
-r-xr-xr-x    1 root     root         2731 Feb 24 06:10 en_US.aff
-r-xr-xr-x    1 root     root       695724 Feb 24 06:10 en_US.dic
-r--r--r--    1 root     root         6049 Feb 24 06:10 hyph_da.dic
-r--r--r--    1 root     root        42600 Feb 24 06:10 hyph_de.dic
-r--r--r--    1 root     root        79272 Feb 24 06:10 hyph_en.dic
-r--r--r--    1 root     root        22071 Feb 24 06:10 hyph_ru.dic
-r-xr-xr-x    1 root     root      3344716 Feb 24 06:10 th_en_US.dat
-r-xr-xr-x    1 root     root       517545 Feb 24 06:10 th_en_US.idx

Private dictionaries: /home/mchase/.OpenOffice.org644/user/wordbook/
-rw-rw-r--    1 mchase   mchase        217 Mar  3 04:58 Anime.dic
-rw-rw-r--    1 mchase   mchase         11 Mar  3 04:47 standard.dic
Anime.dic was originally created under 1.0.1 and copied to 1.0.2 and then to 644.  No problems were noted under 1.0.2 or 644_m1.
Comment 1 mchase 2003-03-03 17:17:01 UTC
A sample document that shows the problem is at http://home.ix.netcom.com/~mchase/mchase_resume.sxw
It was originally a Word 6 document.  It was last saved with Word XP as Word 6.  The current version was last saved as a Writer document with OOo 1.0.1 (Win32).
Comment 2 khendricks 2003-03-03 19:10:39 UTC
Hi, 
 
I can NOT receate this with either the cws 0309 build or the cws 1.1 beta build. 
 
Can anyone tell what what differs from the 644_m4 build to either one of these trees? 
 
This should be working in all builds. 
 
Kevin 
 
Comment 3 mchase 2003-03-03 19:48:12 UTC
I'm getting some anecdotal confirmation in users@openoffice.org.  Look for "Spell checker not recognizing words in 644_m4"

I currently have OOo 1.02, 644_m1, and 644_m4 in my system.  The only version that has shown the problem for me is 644_m4.

I think the only thing I left off that might have some bearing is Java.  I am using Sun's J2RE 1.4.0_02, but that is the same for 644_m1 and 644_m4.  I'm not sure where to look to confirm that for 1.0.2.
Comment 4 khendricks 2003-03-03 20:32:15 UTC
Hi, 
 
The largest single issue related to this seems to be that the documents improted from 
other formats sometimes have incorrect language attributes for the text. 
 
Can you take you text document and highlight the entire thing and then use Format 
Character to forcibly set the language of the entire document to English(US) and then 
try spellchecking it again. 
 
If that does not work then there must be something seriously wrong with either the 
breakiteraotr that decides what words get sent to the spellchecker or in the conversion 
routines that convert from unicode to the encoding of the dictionary (and back for 
suggestions). 
 
Other than that I have no idea really why this is happening. 
 
I personally wish they would stop releasing builds for testing and qa that have no exact 
source ocde equivalent that we can see.  Right now we have two trees both of which I 
tested and work: 
 
cws_srx644_ooo20030309  
 
and 
 
cws_srx644_ooo11beta 
 
So I have no idea which of these (or neither) is like the m4 build. 
 
This is frustrating. 
 
Kevin 
 
Comment 5 khendricks 2003-03-03 20:45:34 UTC
Hi, 
 
Good news of a sort.  I can now actually recreate the problem with the 1.1Beta build and 
I will hopefully soon be able to narrow down at least what subsystem is the culprit. 
 
Kevin 
 
Comment 6 mchase 2003-03-03 21:26:36 UTC
I changed the language to English (Zimbabwe) then back to English
(US).  The error occurred earlier in the document than it did
before.  That might be more satisfying if the starting point
didn't vary so much from one spell check run to another in the
same document anyway.

I am seeing problem even with plain ASCII text files.  In fact,
that's where I first noticed it.  I also got the error when I
copied and pasted the text into a 'New' document, even when
pasting text only.

I can definitely understand how frustrating trying to troubleshoot
a problem without reliable source can be.  It's lucky 1.1Beta is
showing symptoms.
Comment 7 khendricks 2003-03-03 22:00:17 UTC
Hi, 
 
I think I narrowed this down.  Are you game for a little experimentation. 
 
In the troublesome m4 build please try the following: 
 
cd OpenOffice.org644/program 
mv liblng644li.so liblng644li.so.orig 
cp PATHTOM1BUILD/OpenOffice.org644/program/liblng644li.so ./ 
 
Then see once you have replaced that lib with the working version whether everything 
starts working as it should again. 
 
Please let me know what you find. 
 
Thanks, 
 
Kevin 
 
Comment 8 mchase 2003-03-03 22:31:23 UTC
I get an error message as soon as I try spell checking with the
644_m1 liblng644li.so in 644_m4: "English (USA) is not supported by
the spellcheck function or is not presently active."  It then
disables spell checking so it runs but doesn't find any errors.

It also causes the Tools -> Options -> Writing Aids dialog box to
leave the language modules and dictionaries boxes blank.  Putting
the file back restores the earlier behaviors.

I'll be away from my computer for the next couple hours.  Sorry I
couldn't be more help at this stage.
Comment 9 khendricks 2003-03-04 01:17:11 UTC
Hi, 
 
Perhaps m1 is too far removed from m4.  Either way, by updating spelldsp.cxx in 
linguistic/source to the newer version used in 1.1beta, all of the splling problems go away. 
 
So I think this bug has been nailed down and won't be in the next mielstone build at all. 
 
I just need confirmation from Hamburg and then approval to make the commits. 
 
Thanks for your bug report. 
 
Kevin 
 
Comment 10 khendricks 2003-03-24 19:31:45 UTC
Hi, 
 
Fixes already committed so I am resolving this as fixed. 
 
Kevin 
 
Comment 11 thorsten.ziehm 2003-05-20 16:19:05 UTC
This task is fixed or worked in OOo 1.1 beta2.
Comment 12 thorsten.ziehm 2003-05-20 16:37:05 UTC
closed ...