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 582028 - Character pronunciations are not used when navigating by line
Character pronunciations are not used when navigating by line
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: speech
unspecified
Other All
: Normal normal
: 2.26.3
Assigned To: Willie Walker
Orca Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-05-10 01:12 UTC by Willie Walker
Modified: 2009-05-25 11:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch (1.33 KB, patch)
2009-05-10 01:15 UTC, Willie Walker
none Details | Review
Patch committed to master and gnome-2-26 (1.22 KB, patch)
2009-05-25 11:12 UTC, Willie Walker
committed Details | Review

Description Willie Walker 2009-05-10 01:12:07 UTC
Go to http://bugzilla.gnome.org/show_bug.cgi?id=575614#c3 after applying the patch for the bug.  Arrow up and down.  The characters are not spoken.
Comment 1 Willie Walker 2009-05-10 01:15:40 UTC
Created attachment 134340 [details] [review]
Patch

This patch makes the following adjustments to the code (not sure they are actually the right thing to do, but they seem to fix some issues I found while testing the patch for bug #575614):

1) Modifies pronunciation_dict.py to try chnames.py:getCharacterName if it cannot find a pronunciation for the word passed in.  The use case for this is when reading a line where the character is surrounded by whitespace.  Without this, character pronunciations are not used when reading a line.

2) Modifies default.py:adjustForPronunciation to include the single and double quote characters as word delimiters.  Doing this for double quotes seems safe enough, but I'm not sure single quotes is really safe because the single quote is used for contractions such as "I'm" and "ain't" and "isn't", etc.  However, the use case is when a character appears in single or double quotes and you are arrowing up and down by line.
Comment 2 Willie Walker 2009-05-10 23:38:37 UTC
(In reply to comment #1)
> 1) Modifies pronunciation_dict.py to try chnames.py:getCharacterName if it
> cannot find a pronunciation for the word passed in.  The use case for this is
> when reading a line where the character is surrounded by whitespace.  Without
> this, character pronunciations are not used when reading a line.

Anyone know any reason why we didn't do this before?  I wonder if it was on purpose or if it is a bug.

> 2) Modifies default.py:adjustForPronunciation to include the single and double
> quote characters as word delimiters.  Doing this for double quotes seems safe
> enough, but I'm not sure single quotes is really safe because the single quote
> is used for contractions such as "I'm" and "ain't" and "isn't", etc.  However,
> the use case is when a character appears in single or double quotes and you are
> arrowing up and down by line.

I'm wondering if we should look for a pattern of "x" or 'x' instead of looking at things a character at a time.  This would probably be safer.
Comment 3 Willie Walker 2009-05-25 11:12:15 UTC
Created attachment 135308 [details] [review]
Patch committed to master and gnome-2-26

I committed the pronunciation dictionary portion of the patch, but not the portion that adds ' and " as delimiters when looking for words.  I thought that was too risky because of contracted words and such.  We can always open a new bug for those if people raise that as an issue.