Issue 1992 - No spell checking in Chinese version
Summary: No spell checking in Chinese version
Status: CLOSED FIXED
Alias: None
Product: Internationalization
Classification: Code
Component: code (show other issues)
Version: 638
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: michael.ruess
QA Contact: issues@l10n
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-22 10:28 UTC by oldfield
Modified: 2002-11-07 14:31 UTC (History)
2 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 oldfield 2001-10-22 10:28:40 UTC
The spell checker won't check the English content inside the Chinese version.
Comment 1 Dieter.Loeschky 2001-10-22 11:47:52 UTC
DL->JP: I think it's your task
Comment 2 jp 2001-10-23 07:31:54 UTC
Thomas, would you please have a look on it?
Comment 3 thomas.lange 2001-11-02 10:57:03 UTC
I assume you have used a StarOffice beta version since ther is no 
chinese version of OpenOffice...

I checked the problem with a RedFlag Linux, a chinese simplified 
current version of StarOffice (SRC641) and the respective locale 
settings.
I could not reproduce the problem. I typed in a small english text 
with some errors and everthing worked fine, including the proposals 
for the misspelled words.

Please check if the spelling support for the language is enabled.
To do this open the "Tools / Options - Language Settings - Writing 
Aids" dialog and press the topmost "Edit" button.
In the "Edit Modules" dialog be sure that for the languages "English 
(US)" and "English (UK)" the entry named "StarOffice (Default)" under 
the point "Spelling" is checked.

Also be sure that the whole english text has the correct language 
attribute (see character dialog "Format / Character").


Comment 4 oldfield 2001-11-05 02:44:39 UTC
> I assume you have used a StarOffice beta version since ther is no 
> chinese version of OpenOffice...

No, I'm using a Chinese version compiled by myself.  Source code used
was 638C.

> Please check if the spelling support for the language is enabled.
> To do this open the "Tools / Options - Language Settings - Writing 
> Aids" dialog and press the topmost "Edit" button.
> In the "Edit Modules" dialog be sure that for the languages "English 
> (US)" and "English (UK)" the entry named "StarOffice (Default)" under 
> the point "Spelling" is checked.

Checked.

> Also be sure that the whole english text has the correct language 
> attribute (see character dialog "Format / Character").

By making this change, red curves are located under every words,
including those correctly spelled ones.  Before such change, the
language setting of the Western Font is empty.  

> I checked the problem with a RedFlag Linux, a chinese simplified 
> current version of StarOffice (SRC641) and the respective locale 
> settings.
> I could not reproduce the problem. I typed in a small english text 
> with some errors and everthing worked fine, including the proposals 
> for the misspelled words.

So, maybe it's solved in 641?  

Thanks a lot for your help.


Comment 5 oldfield 2001-11-05 03:15:29 UTC
The following error were shown on the console:

--

Hash Manager Error : 1
Error - could not open affix description file
Failure loading aff file

--

But I guess the dictionary is present:

./share/wordbook/english:
total 4384
-rw-r--r--    1 root     root         1809 Nov  5 10:59 en_US.aff
-rw-r--r--    1 root     root       667442 Nov  5 10:59 en_US.dic
-rw-r--r--    1 root     root      3284160 Nov  5 10:59 th_en_US.dat
-rw-r--r--    1 root     root       517205 Nov  5 10:59 th_en_US.idx

Any idea?
Comment 6 oldfield 2001-11-05 04:32:11 UTC
Finally, I figured out why the dictionary cannot be found.

I've copied all the files in ./share/wordbook/english to
./share/wordbook/chinese_traditional, and then things 
work.

Any idea?
Comment 7 thomas.lange 2001-11-05 10:16:53 UTC
Setting the correct language attribute for the text is necessary for 
spellcheking to work!
Since you get the red drawings under the text (independent of if the 
results are correct or not) means that the text was spellchecked by 
the program.

Since you indeed do use OpenOffice and the spellchecker by Kevin 
Hendricks you should ask him (khendricks@ivey.uwo.ca) about the wrong 
results or simply post your question to <dev@sw.openoffice.org> (he 
usually reads this group).

Also the bug you listed hints a problem in his spellchecker, or maybe 
your installation (pathes OK?). Ask Kevin if you need to set some 
environment variables or sth like that.

If Kevin can help you, it will work in your 638 version too.


Greetings,
Thomas

Comment 8 oldfield 2001-11-06 01:26:52 UTC
> Since you indeed do use OpenOffice and the spellchecker by Kevin 
> Hendricks you should ask him (khendricks@ivey.uwo.ca) about the wrong 
> results or simply post your question to <dev@sw.openoffice.org> (he 
> usually reads this group).

I guess the problem might not be in the spellchecker, since by relocating
the dictionary files, everything work.  So, maybe OpenOffice passes the
directory wrongly to the spell checker?

> Also the bug you listed hints a problem in his spellchecker, or maybe 
> your installation (pathes OK?). Ask Kevin if you need to set some 
> environment variables or sth like that.

Thanks for your information.

Comment 9 khendricks 2002-01-12 16:08:24 UTC
Hi,

Yes, this is an OOo install problem in Oo638.  For OO641C and later, 
the installation point for dictionaries has changed to 
user/wordbook/  (no extra language directory added).

So for the next release after OO641C, everything should be fixed.

Kevin


Comment 10 michael.ruess 2002-11-07 11:14:30 UTC
Should work with OpenOffice 1.0.1
Comment 11 oldfield 2002-11-07 14:31:29 UTC
Yes, it's solved, many many thanks!