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
@ -29,6 +29,7 @@ const MATCH_SCROLL_OFFSET_TOP = -50; // px
|
|||||||
const MATCH_SCROLL_OFFSET_LEFT = -400; // px
|
const MATCH_SCROLL_OFFSET_LEFT = -400; // px
|
||||||
|
|
||||||
const CHARACTERS_TO_NORMALIZE = {
|
const CHARACTERS_TO_NORMALIZE = {
|
||||||
|
"\u2010": "-", // Hyphen
|
||||||
"\u2018": "'", // Left single quotation mark
|
"\u2018": "'", // Left single quotation mark
|
||||||
"\u2019": "'", // Right single quotation mark
|
"\u2019": "'", // Right single quotation mark
|
||||||
"\u201A": "'", // Single low-9 quotation mark
|
"\u201A": "'", // Single low-9 quotation mark
|
||||||
|
Loading…
x
Reference in New Issue
Block a user