Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In MS Word, consecutive cross-reference links appear to be a single link, and if they span lines, the middle lines aren't announced as links #14956

Open
XLTechie opened this issue Jun 1, 2023 · 5 comments
Labels
app/microsoft-office p3 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority triaged Has been triaged, issue is waiting for implementation.

Comments

@XLTechie
Copy link
Collaborator

XLTechie commented Jun 1, 2023

Steps to reproduce:

There are likely easier ways to cause this, but this is the STR that first prompted me to notice the problem.

Note, that UIA must be set to "Only when necessary" to prompt this behavior. There is an even worse bug for any other UIA setting.

  1. I created a Word document with four headings as follow, with some test text and a blank line below each (see example doc in future comment):
Bad TOC:
First
Second
Third
  1. I went up until I was under "Bad TOC:".
  2. I pressed Alt+Q, and typed "reference", then chose the "Insert cross reference" option from the list of actions which were suggested.
  3. I set the first combobox to "heading", the second to "Heading text", and left "insert as hyperlink" checked.
  4. In "For which heading", I selected "first", then pressed the "insert" button. Without closing the dialog, I swapped back to the document, pressed end then enter to break the line, then repeated by adding cross-references to "second" and "third".

I now had three cross references under "Bad TOC:" containing:

First
Second
Third

Actual behavior:

When reading the document in either Browse or Focus modes, I am presented with the following speech:

Heading level 1  Bad TOC:
Link  First
Second
Third
Out of link

Expected behavior:

When reading the document starting at the first line, I would expect something more similar to the following:

Heading level 1  Bad TOC:
Link  First
Link Second
Link Third
Out of link

System configuration

NVDA installed/portable/running from source:

Doesn't matter, but installed.

NVDA version:

Alpha 2023.2.0.28231

Windows version:

10 Home 22H2
11 Home 23H3

Name and version of other software in use when reproducing the issue:

MS Word 2019 (2304 Build 16.0.16327.20200)

Other information about your system:

Other questions

Does the issue still occur after restarting your computer?

Yes

Have you tried any other versions of NVDA? If so, please report their behaviors.

2024.1RC1

If NVDA add-ons are disabled, is your problem still occurring?

Yes

Does the issue still occur after you run the COM Registration Fixing Tool in NVDA's tools menu?

Yes

@XLTechie XLTechie changed the title Separate links that each occupy a single line, appear to be a single link in MS Word In MS Word, Separate links that each occupy a single line, appear to be a single link, and middle lines aren't announced as links Jun 1, 2023
@seanbudd
Copy link
Member

seanbudd commented Jun 8, 2023

If you can, it would be helpful to have an example doc file uploaded, thanks

@seanbudd seanbudd added app/microsoft-office p3 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority triaged Has been triaged, issue is waiting for implementation. labels Jun 8, 2023
@Adriani90
Copy link
Collaborator

@XLTechie do you mean first, second and third all these three lines together reference to the heading? Or does each of the lines separately reference to the heading?
If the former, then I think this is intended behavior. First, second and third are in a single link which references to the heading. If the three lines are in fact three different links, then I see your point.

@XLTechie
Copy link
Collaborator Author

XLTechie commented Mar 25, 2024 via email

@XLTechie
Copy link
Collaborator Author

XLTechie commented Mar 25, 2024

Here is a sample document, with both normal and reference based tables of contents.

I have noticed something else: this behaves differently based on the UIA setting:

  • With UIA set to "where suitable", or set to "always": the table of contents generated with references (original STR), does not speak as linked at all. It also doesn't work as linked in browse mode. However the normal TOC works and indicates correctly. This is partially covered in bug Cross references in Word not treated as links by NVDA #14957.
  • With UIA set to "only when necessary": both tables of contents behave as in the STR--that is: only the first line indicates as being a link, but on leaving the last line, "out of link" is spoken. This indicates that they are all one link, even though they are three links to separate headings.

CC @seanbudd as you asked for the sample doc.

@XLTechie XLTechie changed the title In MS Word, Separate links that each occupy a single line, appear to be a single link, and middle lines aren't announced as links In MS Word, consecutive cross-reference links appear to be a single link, and if they span lines, the middle lines aren't announced as links Mar 25, 2024
@Adriani90
Copy link
Collaborator

Probably related to #14957 and #5896.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app/microsoft-office p3 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority triaged Has been triaged, issue is waiting for implementation.
Projects
None yet
Development

No branches or pull requests

3 participants