Can't find word on Firefox PDF viewer
Categories
(Firefox :: PDF Viewer, defect, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr91 | --- | unaffected |
| firefox-esr102 | --- | fixed |
| firefox101 | --- | wontfix |
| firefox102 | --- | wontfix |
| firefox103 | --- | verified |
People
(Reporter: gybeom8008, Assigned: calixte)
References
(Regression)
Details
(Keywords: regression, Whiteboard: [pdfjs-text-search] )
Attachments
(3 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0
Steps to reproduce:
- Open a Korean PDF: https://www.korean.go.kr/nkview/nklife/1998_4/1998_0402.pdf
- Ctrl+F, and type, for instance: 박경래, which is apparantly the auther of this paper, written at the title.
Actual results:
It cannot locate nor highlight the right word, while it seems it can count the number of words.
Expected results:
It should be highlighted right under the title of the first chapter.
I don't know if it is Korean only issue, but it is reproduced on every Korean PDFs I have used, and failed to reproduced on any English PDFs I have.
Comment 1•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::PDF Viewer' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
| Assignee | ||
Comment 2•3 years ago
|
||
It's a regression from:
https://github.com/mozilla/pdf.js/commit/1f41028fcbb21bd5af98810847d1892a51862bd0
Some characters in Korean are composed of several chars which are not diacritics
"특".normalize("NFD").split("") === [ "ᄐ", "ᅳ", "ᆨ" ]
and since we now normalize the text:
https://github.com/mozilla/pdf.js/blob/e6a0a953e840a16c02f48b373efcde4a92e4f963/web/pdf_find_controller.js#L138
those composed characters induce some unexpected shifting.
| Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
Comment 3•3 years ago
|
||
Comment 4•3 years ago
|
||
Comment 5•3 years ago
|
||
Set release status flags based on info from the regressing bug 1754585
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 6•3 years ago
|
||
Reproduce with Firefox 100.
Issue is no longer reproducible on Firefox Nightly 104 from 29.06.2022.
Updated•3 years ago
|
Description
•