Skip to content

Use OffsetConverter for OffsetTextInfo find#16657

Merged
seanbudd merged 2 commits into
nvaccess:masterfrom
LeonarddeR:findFix
Jun 6, 2024
Merged

Use OffsetConverter for OffsetTextInfo find#16657
seanbudd merged 2 commits into
nvaccess:masterfrom
LeonarddeR:findFix

Conversation

@LeonarddeR

@LeonarddeR LeonarddeR commented Jun 5, 2024

Copy link
Copy Markdown
Collaborator

Link to issue number:

Fixes #16317

Summary of the issue:

Find in browse mode (Virtual Buffers) can be inaccurate when a python character spans two character offsets in the underlying TextInfo, such as when emojis come in to play.

Description of user facing changes

Find functionality is now accurate when a page contains emoji characters and similar.

Description of development approach

Use an OffsetConverter to correct offsets.

Testing strategy:

Tested test case as provided by @CyrilleB79 in #16317 (comment)

Known issues with pull request:

None known

Code Review Checklist:

  • Documentation:
    • Change log entry
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English
  • API is compatible with existing add-ons.
  • Security precautions taken.

@AppVeyorBot

Copy link
Copy Markdown

See test results for failed build of commit 6e30d0c549

@LeonarddeR LeonarddeR marked this pull request as ready for review June 5, 2024 14:14
@LeonarddeR LeonarddeR requested a review from a team as a code owner June 5, 2024 14:14
@LeonarddeR LeonarddeR requested a review from gerald-hartig June 5, 2024 14:14
@seanbudd

seanbudd commented Jun 6, 2024

Copy link
Copy Markdown
Member

Thanks @LeonarddeR

@seanbudd seanbudd merged commit c124435 into nvaccess:master Jun 6, 2024
@LeonarddeR LeonarddeR deleted the findFix branch August 23, 2025 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Find in webpages inaccurate in the presence of certain characters

3 participants