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 138091 - multiline text reading in yelp works only at start of paragraph
multiline text reading in yelp works only at start of paragraph
Status: RESOLVED FIXED
Product: gnopernicus
Classification: Deprecated
Component: speech
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Alexandra Telescu
padraig.obriain
AP2
Depends on: 143502
Blocks:
 
 
Reported: 2004-03-25 13:28 UTC by david.hawthorne
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch for gtkhtml2 (4.13 KB, patch)
2004-05-05 09:41 UTC, padraig.obriain
none Details | Review

Description david.hawthorne 2004-03-25 13:28:25 UTC
using gnopernicus from CVS HEAD 22 Mar

- launch yelp
- launch gnopernicus
- access a help page within yelp
- press F7 to enable caret navigation

.gnopernicus speaks 'Multiline text' and reads out a paragraph when the caret is
at the first word of a paragraph, ok.
If however one presses 'down', only the first word of the paragraph line is output.
I would expect the rest of the paragraph to be spoken, regardless of whether
it's the first word or not.  Finding the beginning of the paragraph could be
difficult.
Comment 1 bill.haneman 2004-03-25 13:50:05 UTC
I'd be inclined to think this is AP2.
Comment 2 david.hawthorne 2004-04-21 12:53:32 UTC
Yes, it shouldn't get lost with less important AP3s.
Comment 3 Alexandra Telescu 2004-04-29 08:32:31 UTC
I tried to reproduce this bug and i notice that on a change between paragraphs
gnopernicus reads out the paragraph even the cursor is or not at the beginning
of the paragraph. This is ok.

If the cursor is not at the beginning of the paragraph and press 'down',
gnopernicus reads out the word that "contains" the cursor.

The difference is that not "only the first word of the paragraph line is
output", but gnopernicus outputs the word that "contains" the cursor.


Comment 4 padraig.obriain 2004-04-29 10:12:24 UTC
Alexandra's comment is correct.

The question is whether gnopernicus is usable for a blind user trying to
determine what text is on the screen.

It seems that a blind user needs to memorize the entire text spoken for a
paragraph and it is not possible to read by line.
Comment 5 Dana Ormenisan 2004-05-03 13:27:37 UTC
I made some investigations and I believe this is not a gnopernicus issue.

The problem is that function AccessibleText_getTextAtOffset does not return the
correct start/end position for a text line.

When you move using up/down arrow keys between the paragraph lines, gnopernicus
speaks only one word because it reads the text between some ranges which are not
correct.
Comment 6 padraig.obriain 2004-05-04 09:40:45 UTC
Dana,

Can you give me an example of where the function AccessibleText_getTextAtOffset
does not return the correct start/end position for a text line?
Comment 7 Dana Ormenisan 2004-05-04 14:24:59 UTC
In yelp, if the cursor is at the begining of a multi line text and you press
down arrow key, the function AccessibleText_getTextAtOffset will return the
start/end position for the first word in the line and not for the entire text line.
Comment 8 padraig.obriain 2004-05-04 14:43:16 UTC
What parameters are you calling AccessibleText_getTextAtOffset with and what
start/end values are returned?
Comment 9 padraig.obriain 2004-05-05 09:41:55 UTC
Created attachment 27387 [details] [review]
Proposed patch for gtkhtml2

The proposed patch corrects the behavior of getText when LINE_START or LINE_END
is specified.
Comment 10 padraig.obriain 2004-05-05 09:43:03 UTC
As this patch does not fix the reportyed problem I am transferring this bug back
to gnopernicus.
Comment 11 remus draica 2004-05-21 13:35:37 UTC
Padraig, I can see the correct behaviour on my computer with your patch. I
restarted the computer to see the effect. First (before restarting, but with
patch applied) the behaviour was the same as described in bug.

Please check again.
Comment 12 padraig.obriain 2004-05-21 14:22:21 UTC
I ran yelp; activated the links "Desktop", "GnomeDisplayManagerReference Manual"
and "About this Article".

The frist line of the paragraph containing the first link is read , i.e.
Permission is granted to copy, distribute and/or modify this "

After pressing F7 nothing is spoen as the cursor is moved unless in the
paragraph containing the link. 
Comment 13 remus draica 2004-05-25 10:33:36 UTC
Padraig, please check on "Desktop", "GnomeDisplayManagerReference Manual" and
"Terms and conventions used in this manual". Seems to be a problem if user moves
from a text which is a link to a text which is not a link.
Comment 14 padraig.obriain 2004-05-25 10:58:27 UTC
I am not seeing anything spoken here when I move the cursor. Do I need a patch
for gnopernicus?
Comment 15 remus draica 2004-06-01 13:45:37 UTC
This bug depends on bug 143502.
Comment 16 bill.haneman 2004-06-01 15:50:22 UTC
I think the logic for accepting/rejecting caret events when using caret
navigation needs to be relaxed/extended in order to support this case.
Comment 17 Alexandra Telescu 2004-06-04 12:03:04 UTC
I applied padraig's patch from this bug and from #bug 143502 and for me
gnopernicus reports:
If I press:
  a)Up/Down key:
    1. "multi line text  <first line of the paragraph>" -if the line that  
        'contains' the cursor is from a new paragraph that the previous;
    2. " <current line> " - if the new line is from the same paragraph 
         as the one before .
   b) Left/Right:
     1. " <current character> " 
     2. " <current word> " --if I press Ctrl+Left/Right.
I think that those are the correct behaviors.
  
So, for me this bug is fixed, please check it.
Comment 18 Alexandra Telescu 2004-06-04 12:12:13 UTC
I used gnopernicus from CVS HEAD (June 04) and gtkhtml2 from CVS HEAD (June 04)
with the two patches applied.
Comment 19 Alexandra Telescu 2004-06-04 13:32:52 UTC
But, I observe a "strange" behavior.
In the following situation:
"   This is the fist paragraph of the example, named paragraph A.
    This is another paragraph, paragraph B.
    <Link>... [this should be paragraph C and it has a link as "fist word". "
Paragraph C can be replace with a link only.]"

Moving with caret enable from paragraph A to B and from there to C, every thing
is ok. 
Press right until the cursor is 'on' the link, now press Up, paragraph B is not
reported, press Up again until paragraph A, paragraph A is reported. 
 So, when moving Up from a paragraph with link as 'first word', the new
paragraph is not reported.
 This kind of paragraphs can be found in Yelp, the link can be one of those
placed at the bottom of the page. Or launch Yepl-> Desktop-> System
Administration Guide -> Using GConf ->GConf Command Line Tool.



Comment 20 korn 2004-06-05 01:56:16 UTC
Just to confirm, Gnopernicus saying "multi-line text" in these cases happens
only in Verbose mode, right?  In "normal" mode it is completely silent, right? 
From what I've seen in traffic on gnome-accessibility-list, this is one of the
more objected-to aspects of the Gnopernicus user interface (lots of "multi-line
text" speech)
Comment 21 padraig.obriain 2004-06-07 07:41:28 UTC
Alexandra,

Is the "strange" bevahior you describe a bug in gnopernicus or gtkhtml2? If
gtkhtml2, can you specify what function call is giving unexpected result?
Comment 22 Alexandra Telescu 2004-06-07 08:03:25 UTC
Gnopernicus outputs "multi-line-text" for bought situations. 
 In default mode, for 'multi-line-text' gnopernicus outputs:
   <name> <role> <text>
 In verbose mode:
   <name> <description> <role> <text>.
Comment 23 Alexandra Telescu 2004-06-07 12:00:05 UTC
 About the "strange" behavior, I'm still investigating.
Comment 24 korn 2004-06-07 17:11:48 UTC
Given the feedback we've seen from users, I think in default mode for
'multi-line-text', Gnopernicus should output: <name> <text> (and NOT <role>).
Comment 25 padraig.obriain 2004-06-08 10:50:48 UTC
gtkhtml2 patch committed to CVS HEAD.
Comment 26 Dana Ormenisan 2004-06-08 15:03:20 UTC
I made some changes in CVS to report only '<name><text>' in default mode for
multi-line-text.
Comment 27 remus draica 2004-06-09 09:22:49 UTC
The remained issue (comment #19) is subject of bug 143502 comment #13.
Comment 28 Alexandra Telescu 2004-06-09 14:56:04 UTC
Please see bug 143502 comment #15, for more example of "strange" behaviour.
Comment 29 Alexandra Telescu 2004-06-11 08:28:11 UTC
This bug is solved with Remus's patch from #bug 143502.