SpellChecker problem [WAS] [ANN 1.1] One-Click 1.1 release

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

SpellChecker problem [WAS] [ANN 1.1] One-Click 1.1 release

Mariano Martinez Peck


On Tue, Jul 27, 2010 at 5:09 AM, Serge Stinckwich <[hidden email]> wrote:
I added the following methods:

RBMacSpellChecker>>primitiveSetLanguage: data
       <primitive: 'primitiveSetLanguage' module: 'SpellingPlugin'>
       self primitiveFailed

RBMacSpellChecker>>primitiveGetLanguage
       <primitive:'primitiveGetLanguage' module: 'SpellingPlugin'>

       self primitiveFailed

I do not understand why :

checker := RBMacSpellChecker new.
checker primitiveSetLanguage: 'fr'.
result := checker check: 'How are you ?'.
checker primitiveSetLanguage: 'en'.
result

returns an OrderedCollection()

and :

checker := RBMacSpellChecker new.
checker primitiveSetLanguage: 'fr'.
checker primitiveGetLanguage.
result := checker check: 'How are you ?'.
checker primitiveSetLanguage: 'en'.
result

returns the correct answer: an OrderedCollection('How' 'you')

Any ideas ? Something wrong with the SpellingPlugin ?


On Mon, Jul 26, 2010 at 3:46 PM, Serge Stinckwich
<[hidden email]> wrote:
> On Mon, Jul 26, 2010 at 2:05 PM, Serge Stinckwich
> <[hidden email]> wrote:
>> 2010/7/25 Mariano Martinez Peck <[hidden email]>:
>>>
>>>
>>> On Sun, Jul 25, 2010 at 4:02 PM, Adrian Lienhard <[hidden email]> wrote:
>>>>
>>>> Hm, the link doesn't work for me. I just get an empty response...
>>>>
>>>
>>> https://gforge.inria.fr/frs/download.php/27303/Pharo-1.1-OneClick.zip
>>>
>>> works ok here
>>
>> Works ok for me also.
>>
>> 9764 tests, 9693 passes, 53 expected failures, 17 failures, 1 error
>> on Mac OS X 10.6.4. Most of the failures reported are inside RBSpellingRuleTest.
>> Tests like:
>>
>> testPerfectSentence
>>        | result |
>>        result := self checker
>>                check: 'This is an english sentence without problems.'.
>>        self assert: result isCollection.
>>        self assert: result isEmpty
>>
>> could not work on my machine, because by default i'm using the french
>> speller ...
>> I made some modifications to switch the speller to english and came
>> back to the original language after the tests. I put my modifications
>> here: http://code.google.com/p/pharo/issues/detail?id=2714
>>
>> After that all RBSpellingRuleTest are green.
>
> Hum in fact no ... there is still some problems.
>
> --
> Serge Stinckwich
> UMI UMMISCO 209 (IRD/UPMC), Hanoi, Vietnam
> Every DSL ends up being Smalltalk
> http://doesnotunderstand.org/
>



--
Serge Stinckwich
UMI UMMISCO 209 (IRD/UPMC), Hanoi, Vietnam
Every DSL ends up being Smalltalk
http://doesnotunderstand.org/

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project