After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 418147 - [pending] Error spelling words or lines
[pending] Error spelling words or lines
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: general
2.18.x
Other All
: Normal normal
: ---
Assigned To: Willie Walker
Orca Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-03-14 08:13 UTC by Javier
Modified: 2007-04-20 18:29 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
Patch to make sure we treat characters as characters and not as bytes (1.08 KB, patch)
2007-04-10 18:16 UTC, Willie Walker
committed Details | Review

Description Javier 2007-03-14 08:13:29 UTC
Please describe the problem:
Trying to speel a word or line only a few letters are spoken.

Steps to reproduce:
1. Flat review a line of text or word.
2. Press kp8 twice to spell complete line or kp5 to spell current word.

 


Actual results:
Orca only speaks a few letters of the text.

Expected results:
Complete line or word should be spelled/spoken.

Does this happen every time?
Yes

Other information:
Using Ubuntu Feisty with latest Orca trunk
Comment 1 Rich Burridge 2007-03-19 17:41:18 UTC
Javier, I just tried this with gedit with latest Ubuntu Feisty and Orca from
SVN trunk/HEAD. I was able to spell the current line and/or word correctly.

Does this worj for you now? If not, can you give me more detailed steps on
what application you are using etc? ...

Thanks.
Comment 2 Javier 2007-03-21 11:24:35 UTC
I am using Ubuntu Feisty upgraded to the latest packages. I upgraded the distro from edgy to Feisty.
Using the latest trunk Orca head, I can reproduce the problem yet.
Now I think that It might be with the speech synthesizer. 
I use IBMTTS and the spelling doesn't work well, if I use espeak however, the spelling of the word or line is done okay.
Another issue if with extra characters, e.g ñ: typing the spanish word niño and spell it only n, i  is spoken. This occurs with both synthesizers.
Comment 3 Willie Walker 2007-04-10 17:12:02 UTC
Looks like a conversion problem.  :-(  Here's a stack trace I get when flat reviewing this page and when telling Orca to spell out niño:

SPEECH OUTPUT: 'n'
SPEECH OUTPUT: 'i'
SPEECH OUTPUT: 'Ã'

Traceback (most recent call last):
  • File "/usr/lib/python2.5/site-packages/orca/input_event.py", line 178 in processInputEvent
    consumed = self._function(script, inputEvent)
  • File "/usr/lib/python2.5/site-packages/orca/default.py", line 3533 in reviewCurrentItem
    self._reviewCurrentItem(inputEvent, targetCursorCell, clickCount)
  • File "/usr/lib/python2.5/site-packages/orca/default.py", line 3591 in _reviewCurrentItem
    self.spellCurrentItem(string)
  • File "/usr/lib/python2.5/site-packages/orca/default.py", line 3549 in spellCurrentItem
    speech.speak(character)
  • File "/usr/lib/python2.5/site-packages/orca/speech.py", line 154 in speak
    _speechserver.speak(text, __resolveACSS(acss), interrupt)
  • File "/usr/lib/python2.5/site-packages/orca/gnomespeechfactory.py", line 827 in speak
    self.__speak(text, acss, interrupt)
  • File "/usr/lib/python2.5/site-packages/orca/gnomespeechfactory.py", line 786 in __speak
    text = self.__addVerbalizedPunctuation(text)
  • File "/usr/lib/python2.5/site-packages/orca/gnomespeechfactory.py", line 667 in __addVerbalizedPunctuation
    oldText = oldText.decode("UTF-8")
  • File "encodings/utf_8.py", line 16 in decode
UnicodeDecodeError: 'utf8' codec can't decode byte 0xc3 in position 0: unexpected end of data

Comment 4 Willie Walker 2007-04-10 17:18:53 UTC
Here's some experimentation with Python to see what it does with niño:

wwalker@wwalker-laptop:~$ python
Python 2.5 (release25-maint, Mar 29 2007, 11:14:31) 
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> a = "ñ"
>>> a
'\xc3\xb1'
>>> a.decode("UTF-8")
u'\xf1'
>>> b = "niño"
>>> b
'ni\xc3\xb1o'
>>> b.decode("UTF-8")
u'ni\xf1o'

Seems to do OK.  So...I'll debug some more with Orca.
Comment 5 Willie Walker 2007-04-10 18:16:24 UTC
Created attachment 86125 [details] [review]
Patch to make sure we treat characters as characters and not as bytes

Turns out we had a bug where we were treating a string was a sequence of bytes and not characters.  The only thing that remains, however, is how to get the character name for ñ and other characters: should this be an Orca responsibility or a speech synthesizer responsibility?
Comment 6 Willie Walker 2007-04-20 18:29:57 UTC
> character name for ñ and other characters: should this be an Orca
> responsibility or a speech synthesizer responsibility?

Closing this bug.  I think that we need to allow the translators to handle this.  See also bug 416971.