FW: Text frame Boxes MS Word 2016

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

FW: Text frame Boxes MS Word 2016

Cearbhall O'Meadhra

Hi,

 

Re: GitHub REFERENCE: elements in a word document are not read  #5738

 

I have a Word document that contains two appendices which are set out as Text Boxes that NVDA calls Text Frame when it gets into the BOX. The only way that I can find to get into the BOX is to find  A particular word that is known to be contained in the box. I see that this is a problem raised in GitHub and still unassigned. The sample given in the GitHub reference is a perfect illustration of what I mean and so you can replicate the problem from there if you wish.

 

Has anyone found a way to navigate these boxes? I understand that the difficulty is that they can float and so it is difficult for the screen reader to lock on to them.

 

As a matter of interest, I copied the entire document, including the two appendices, into clipboard in hopes of removing the text frames but the Windows cut and paste also failed to trap the contents of the text boxes!

 

I had a sighted person do the same on their machine, and they were surprised to find that the contents of the text boxes, which they could see clearly in the Word document, failed to paste into their notepad session!

 

Any thoughts would be more than welcome.

 

I found the macro below, installed it in Word 2016 and it works like a dream to find each text box in turn.  

 

I wonder if it could be used to guide new NVDA code to find text boxes and give users the option to view the contents of each box in turn?

 

Sub SearchTextBox()

    Dim shp As Shape

    Dim sTemp As String

    Dim iAnswer As Integer

 

    For Each shp In ActiveDocument.Shapes

        If shp.Type = msoTextBox Then

            shp.Select

            Selection.ShapeRange.TextFrame.TextRange.Select

            sTemp = Selection.Text

            sTemp = Left(sTemp,20)

            iAnswer = MsgBox("Box contains text beginning with:" & vbCrLf _

              & sTemp & vbCrLf & "Stop here?", vbYesNo, "Located Text Box")

            If iAnswer = vbYes Then Exit For

        End If

    Next

End Sub  

 

Source:

http://wordribbon.tips.net/T012249_Finding_Text_Boxes.html

by Allen Wyatt (last updated May 27, 2015)

 

All the best,

 

Cearbhall

 

m +353 (0)833323487 Ph: _353 (0)1-2864623 e: [hidden email]

 

 

 


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: FW: Text frame Boxes MS Word 2016

Brian's Mail list account BY
I have come across this sort of issue. A recent word format diet sheet from
the NHS had text in boxes and although find could find words, neither cut
and paste or anything else let me read the text in these boxes.
 In the end the local GP manager managed to extract the text into separate
paragraphs and remove the boxes.
 I don't know enough about the way Word does this trick, but it seems that
in this instance not t even cut and paste of a whole document will work, so
goodness knows how these objects are constructed in the accessible sense.
 Brian

[hidden email]
Sent via blueyonder.
Please address personal email to:-
[hidden email], putting 'Brian Gaff'
in the display name field.
----- Original Message -----
From: "Cearbhall O'Meadhra" <[hidden email]>
To: <[hidden email]>
Sent: Thursday, November 10, 2016 3:14 PM
Subject: [Nvda-devel] FW: Text frame Boxes MS Word 2016


> Hi,
>
>
>
> Re: GitHub REFERENCE: "elements in a word document are not read  #5738"
>
>
>
> I have a Word document that contains two appendices which are set out as
> "Text Boxes" that NVDA calls "Text Frame" when it gets into the BOX. The
> only way that I can find to get into the BOX is to find  A particular word
> that is known to be contained in the box. I see that this is a problem
> raised in GitHub and still unassigned. The sample given in the GitHub
> reference is a perfect illustration of what I mean and so you can
> replicate
> the problem from there if you wish.
>
>
>
> Has anyone found a way to navigate these boxes? I understand that the
> difficulty is that they can float and so it is difficult for the screen
> reader to lock on to them.
>
>
>
> As a matter of interest, I copied the entire document, including the two
> appendices, into clipboard in hopes of removing the text frames but the
> Windows "cut and paste" also failed to trap the contents of the text
> boxes!
>
>
>
> I had a sighted person do the same on their machine, and they were
> surprised
> to find that the contents of the text boxes, which they could see clearly
> in
> the Word document, failed to paste into their notepad session!
>
>
>
> Any thoughts would be more than welcome.
>
>
>
> I found the macro below, installed it in Word 2016 and it works like a
> dream
> to find each text box in turn.
>
>
>
> I wonder if it could be used to guide new NVDA code to find text boxes and
> give users the option to view the contents of each box in turn?
>
>
>
> Sub SearchTextBox()
>
>    Dim shp As Shape
>
>    Dim sTemp As String
>
>    Dim iAnswer As Integer
>
>
>
>    For Each shp In ActiveDocument.Shapes
>
>        If shp.Type = msoTextBox Then
>
>            shp.Select
>
>            Selection.ShapeRange.TextFrame.TextRange.Select
>
>            sTemp = Selection.Text
>
>            sTemp = Left(sTemp,20)
>
>            iAnswer = MsgBox("Box contains text beginning with:" & vbCrLf _
>
>              & sTemp & vbCrLf & "Stop here?", vbYesNo, "Located Text Box")
>
>            If iAnswer = vbYes Then Exit For
>
>        End If
>
>    Next
>
> End Sub
>
>
>
> Source:
>
> http://wordribbon.tips.net/T012249_Finding_Text_Boxes.html
>
> by Allen Wyatt (last updated May 27, 2015)
>
>
>
> All the best,
>
>
>
> Cearbhall
>
>
>
> m +353 (0)833323487 Ph: _353 (0)1-2864623 e: [hidden email]
> <mailto:[hidden email]>
>
>
>
>
>
>
>
>


--------------------------------------------------------------------------------


> ------------------------------------------------------------------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi


--------------------------------------------------------------------------------


> _______________________________________________
> Nvda-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/nvda-devel
>


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
Loading...