To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=87426





------- Additional comments from [EMAIL PROTECTED] Fri May 16 13:32:16 +0000 
2008 -------
> Hmm, if I read the log correctly, line 1969 of the log is the result 
> of the window-deactivate message the 
> document frame sends. The "state-changed:focused" event, that triggered 
> orca the first time, is in line 2081 (and line 2082 claims that Orca has 
> found the spell check dialog hierarchy). 

Yes you are correct. Sorry about that. Lack of sleep is my only excuse.
What's happening the second time (for some unknown reason), was that Orca
was failing to recognize that there was (still) misspelt words, even though
the accessible component hierarchy is correct.

I've now looked at that a little deeper. It was failing to say something
the second time because there is a chunk of code in the readMisspeltWord()
 method in .../soffice/script.py (about line 923) that goes:

        # Note that we often get two or more of these focus or property-change
        # events each time there is a new misspelt word. We extract the
        # length of the line of text, the misspelt word, the start and end
        # offsets for that word and compare them against the values saved
        # from the last time this routine was called. If they are the same
        # then we ignore it.

        debug.println(self.debugLevel, \
            "StarOffice.readMisspeltWord: type=%s  word=%s(%d,%d)  len=%d" % \
            (event.type, badWord, startOff, endOff, textLength))

        if (textLength == self.lastTextLength) and \
           (badWord == self.lastBadWord) and \
           (startOff == self.lastStartOff) and \
           (endOff == self.lastEndOff):
            return
If I comment out that if statement and the return, we nicely hear the
misspelt word context again.

So, it should it looks like you've nicely fixed the problem.

I haven't retried with the new (OPTION_PANE) version. Will, could you try
that one please? The only change you should need to make to the
.../soffice/script.py file is the commenting out of that if statement and the
return (about line 934).

Thanks.




---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to