Open Bug 1669335 Opened 6 years ago Updated 1 month ago

Replacement Text (AccSupp ActualText entry) Support

Categories

(Firefox :: PDF Viewer, enhancement, P3)

Firefox 81
enhancement

Tracking

()

People

(Reporter: 123123geek, Unassigned)

References

Details

(Keywords: access, Whiteboard: [pdfjs-text-selection][pdfjs-accessibility])

Attachments

(5 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36

Steps to reproduce:

We noticed that your PDF viewer doesn't have AccSupp ActualText support. This means that copy-pasting technical text such as shellscripts and programming code, does not work in your PDF viewer and this greatly restrains the use of your whole program.

According to the tests made using PDFs produced by pdflatex using the package accsupp, the replacement text support seems to be unreliable at the moment for copy and paste. Those tests are available on the referenced accsupp github page in the end of this text.

We kindly request better support of the replacement text support, because the copy and paste directly from the PDF document is not reliable.

Please also refer to these two pages for further discussion:
https://tex.stackexchange.com/questions/563803/how-make-a-latex-document-that-generates-a-pdf-from-which-copy-paste-works-corre
https://github.com/ho-tex/accsupp/issues/2

Setting a component for this enhancement in order to get the dev team involved.
If you feel it's an incorrect one please feel free to change it to a more appropriate one.

Status: UNCONFIRMED → NEW
Component: Untriaged → Graphics: Text
Ever confirmed: true
Product: Firefox → Core
Component: Graphics: Text → PDF Viewer
Product: Core → Firefox

Could you attach a PDF here, so it's easier for us?

Flags: needinfo?(123123geek)
Whiteboard: [pdfjs-triage-needed]
Whiteboard: [pdfjs-triage-needed] → [pdfjs-text-selection]
Keywords: access
Whiteboard: [pdfjs-text-selection] → [pdfjs-text-selection][pdfjs-accessibility]

Redirect a needinfo that is pending on an inactive user to the triage owner.
:calixte, since the bug has recent activity, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(123123geek) → needinfo?(cdenizet)
Severity: -- → S3
Flags: needinfo?(cdenizet)
Priority: -- → P3
Attached file test_accsup_basic.pdf —

Test file for basic accsup support

Attached file test_accsup_large.pdf —

Test file for accsup support with long strings (32816 characters).

Attached file test_accsup_basic.tex —

LaTeX file to generate test_accsup_basic.pdf

Attached file test_accsup_large.tex —

LaTeX file to generate test_accsup_large.pdf

(In reply to Marco Castelluccio [:marco] from comment #2)

Could you attach a PDF here, so it's easier for us?

I have attached two PDFs for testing based on the LaTeX code from 123geek: https://github.com/ho-tex/accsupp/issues/2#issue-708295695
Try to copy & paste "copyme" from the PDF and paste it somewhere.

  • test_accsup_basic.pdf should read It worked if you can read this.
  • test_accsup_large.pdf should read With this sentence we have a total of 000056 characters.With this sentence we have a total of 000112 characters.[...]With this sentence we have a total of 032760 characters.With this sentence we have a total of 032816 characters

With recent massive improvements in PDF accessibility handling, lack of ActualText Support has become somewhat more noticeable.

Attatched actual.pdf is a small file with a LaTeX logo (which in recent LaTeX has ActualTeX of LaTeX by default in tagged pdf) and a square with ActualText of Square

in firefox nightly (149.0a1 (2026-01-15) (64-bit)) NVDA produces the speech

ActualText  heading    level 1
heading    level 1  ActualText
L  A  TEX
one
two
clickable

Acrobat+NVDA produces

heading    level 1  page 1  ActualText
LaTeX
one square two

"LaTeX" being pronounced as lay-tech as it's an existing entry in a recommended speech dictionary, as opposed to ell-ay-tecs in firefox

Attached file actual.pdf —

attachment actual.pdf as described in previous comment

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: