Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 51183 - aspell-0.50.3 not working with opera-7.50
Summary: aspell-0.50.3 not working with opera-7.50
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Heinrich Wendel (RETIRED)
URL: http://www.opera.com/support/tutorial...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-16 01:14 UTC by adr
Modified: 2004-07-03 14:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
opera-7.50-spellcheck.patch (opera-7.50-spellcheck.patch,1.17 KB, patch)
2004-05-26 07:30 UTC, Boris
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description adr 2004-05-16 01:14:15 UTC
aspell-0.50.3 is not working with opera-7.50 (emerged aspell-nl-0.50.2 too).

Reproducible: Always
Steps to Reproduce:
1.emerge opera, aspell and aspell-<lang>
2.start opera
3.try to check a new composed e-mail

Actual Results:  
error box, saying that spell checker is not available. plus redirect to URL (see 
above) for information.

Expected Results:  
spell checking.

Aspell is working correctly in KDE editors such as Kate, KWrite and KEdit.
Comment 1 adr 2004-05-16 12:22:51 UTC
hmm... i found this file: /opt/opera/lib/opera/7.50-20040511.5/spellcheck.so
????!

Kind regards.
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2004-05-16 21:30:15 UTC
what version of aspell worked for you?
Comment 3 adr 2004-05-17 00:36:33 UTC
Hi, thanks.

Opera using aspell is a new feature, so this is the first try.
Seems to me that aspell is working correctly (in the KDE editors), and that Opera must be the problem. Maybe it can't find aspell, or it is platform specific. There are no settings that can't be changed from within Opera or the ini-files... at least I can't find them, and the Opera URL says that everything should work automatically....

Kind regards.
Comment 4 adr 2004-05-17 01:49:41 UTC
P.S.

I tried to change /opt/opera/share/opera/ini/spellcheck.ini too, and even copied it to the opera and opera/mail dirs in my home-directory. The default language is "en" but I need "nl". Tried some different encodings too. My language file for Opera is "ou721_480nl.lng" (latest, but old version) if that could be of any influence.
Comment 5 Boris 2004-05-24 06:25:50 UTC
Did you set the "Spell Check Engine"? I think this is not set by default.
I have got this in my /opt/opera/share/opera/ini/spellcheck.ini and it worked fine for me. I think it _should_ do with aspell-nl similar...

--------------/opt/opera/share/opera/ini/spellcheck.ini--------------
[Spell Check] 
Spell Check Engine=/opt/opera/lib/opera/7.50-20040511.5/spellcheck.so 
Default Language=de 
Default Encoding=iso8859-15
Comment 6 Heinrich Wendel (RETIRED) gentoo-dev 2004-05-24 06:32:12 UTC
works with opera-7.50-r1 now, to change the language emerge app-text/aspell-language and edit /opt/opera/share/opera/ini/spellcheck.ini
Comment 7 adr 2004-05-24 11:17:25 UTC
The little things in life... :)
It's working now!

Danke sch
Comment 8 adr 2004-05-24 11:17:25 UTC
The little things in life... :)
It's working now!

Danke schön Boris. (checked in German)
Comment 9 adr 2004-05-24 15:20:41 UTC
One small bug left: the default "iso8859-1" must be "iso-8859-1" or it won't check words with accents. For iso-8859-15 and others the same thing.
Comment 10 adr 2004-05-24 23:56:01 UTC
Hmm... please skip my last comment. It will only give a text box, saying that spellcheck is done, but text won't be checked at all. This little bug remains. Words with 
Comment 11 adr 2004-05-24 23:56:01 UTC
Hmm... please skip my last comment. It will only give a text box, saying that spellcheck is done, but text won't be checked at all. This little bug remains. Words with ö, ë, é etc. are selected partly, and are considered to be misspelled always. (In the KDE-editors it's working correctly.)
Comment 12 Heinrich Wendel (RETIRED) gentoo-dev 2004-05-25 07:17:03 UTC
/me is confused, what's working and what is not working?
Comment 13 adr 2004-05-25 12:05:30 UTC
OK, here is an example. Try to spell check this German sentence in both Opera and in any other editor using aspell-de: "Die B
Comment 14 adr 2004-05-25 12:05:30 UTC
OK, here is an example. Try to spell check this German sentence in both Opera and in any other editor using aspell-de: "Die Bücher werden gelezen." (I don't think there are English words containing composed characters...)
 
Only the word "gelezen" is misspelled (must be "gelesen"). This will be detected, and the entire word will be highlighted in both Opera and for instance KWrite. That's correct.

Opera however, will highlight the last part of the common word Bücher ("cher") aswell. Spell checking will fail on any other word containing diacritical signs. I tried this with aspell-en and aspell-nl too, and with different encoding settings for spellcheck.ini and my Opera mail compose setting (iso8859-1, iso8859-15 or utf-8).
Comment 15 Boris 2004-05-26 07:30:05 UTC
Created attachment 32072 [details, diff]
opera-7.50-spellcheck.patch

This is a slightly Offtopic, but I would find it nice to use the USE-Flag
"spell" in the ebuild, because opera runs fine without it and not everyone
wants to install aspell. (like me on my box at work).

I made a patch that adds the USE-Flag "spell" to the ebuild, perhaps you can
apply it.
Comment 16 adr 2004-05-26 10:08:12 UTC
Nice idea. I'm just a simple Gentoo user, but would it be possible to expand this to include the downloading of the latest language file(s) [ http://www.opera.com/download/languagefiles/ ] for Opera and the right dictionaries for aspell at the same time? :-)
Maybe via the "LANG='xx' emerge opera" mechanism or another USE flag.
Comment 17 Heinrich Wendel (RETIRED) gentoo-dev 2004-05-26 14:20:56 UTC
reopening, will take a look at it on friday
Comment 18 Heinrich Wendel (RETIRED) gentoo-dev 2004-07-03 01:46:14 UTC
spell use flag is added, the other one is a bit more complicated, if you can come up with a patch reopen this bug or open a new one
Comment 19 adr 2004-07-03 14:07:27 UTC
Hi,

Just found another solution for the Path bug, here:

http://list.opera.com/pipermail/opera-linux/2004-June/007907.html

<snip>
Below is what I have added in my /usr/bin/opera script 
(the OPERA_BINARYDIR should not be needed but I have had 
problems when it was not included - I will look into that)

Add it at the bottom of the script, just before the opera binary is started.

LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${OPERA_BINARYDIR}":/opt/aspell/lib
export LD_LIBRARY_PATH 
</snip>

I don't know which fix is preferable... Both the implemented and this solution works. The implemented one looks easier.

Will post on the Character bug, when I find something...

Regards.