You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open the attached file "compound_word_with_line_break_after_hyphen.pdf"
Search for the letter "o"
What is the expected behavior?
The letter "o" should be highlighted
What went wrong?
Because of the normalization the index is off by 1 and the letter "n" is highlighted
The span for the highlight contains only the letter "n" instead of "o"
Link to a viewer
No response
Additional context
It seems that during normalization in pdf_find_controller.js the position calculated for the case "Compound word with a line break after the hyphen." is wrong.
The text was updated successfully, but these errors were encountered:
Attach (recommended) or Link to PDF file
compound_word_with_line_break_after_hyphen.pdf
Web browser and its version
Firefox 133
Operating system and its version
Windows 10
PDF.js version
v4.8.69
Is the bug present in the latest PDF.js version?
Yes
Is a browser extension
No
Steps to reproduce the problem
What is the expected behavior?
The letter "o" should be highlighted
What went wrong?
Because of the normalization the index is off by 1 and the letter "n" is highlighted
The span for the highlight contains only the letter "n" instead of "o"
Link to a viewer
No response
Additional context
It seems that during normalization in pdf_find_controller.js the position calculated for the case "Compound word with a line break after the hyphen." is wrong.
The text was updated successfully, but these errors were encountered: