From 3631121841e143e76379490b90e03d413159cb2d Mon Sep 17 00:00:00 2001 From: MMeent Date: Fri, 4 Jun 2021 15:54:52 +0200 Subject: [PATCH] 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. --- web/pdf_find_controller.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web/pdf_find_controller.js b/web/pdf_find_controller.js index 7eeb01e65..0e2e32023 100644 --- a/web/pdf_find_controller.js +++ b/web/pdf_find_controller.js @@ -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