mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Add normalization for Hyphen -> Hyphen-minus
Previously these two characters were not searchable interchangably, even when Hyphen-Minus is being changed to Hyphen in some text to PDF pipelines.
This commit is contained in:
parent
3b502f7e07
commit
3631121841
1 changed files with 1 additions and 0 deletions
|
@ -29,6 +29,7 @@ const MATCH_SCROLL_OFFSET_TOP = -50; // px
|
|||
const MATCH_SCROLL_OFFSET_LEFT = -400; // px
|
||||
|
||||
const CHARACTERS_TO_NORMALIZE = {
|
||||
"\u2010": "-", // Hyphen
|
||||
"\u2018": "'", // Left single quotation mark
|
||||
"\u2019": "'", // Right single quotation mark
|
||||
"\u201A": "'", // Single low-9 quotation mark
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue